ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1700

Script Writing Question

by Torxi - 08-21-2019 - 10:12 PM
#1
Hello community!
I have a question about script.csc
My script tries a little bit, just my problem
is when I start the script in modloader and then disable it I can not start it again.

It's my first script which I try.
Can give me a little help. What to consider


Function 0 2 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
CallNative "GET_VEHICLE_AVERAGE_PICKUPS_IPL" 0 1
CallNative "UNK_029D3841" 1 1
push_1
JumpGT @Label_0
Call @Label_1
:Label_0
Return 0 0

:Label_1
Function 0 2 0
push_1
JumpFalse @Label_3
:Label_2
CallNative "PLAYER_PED_ID" 0 1
push_0
CallNative "GET_ENTITY_COORDS" 2 3
push_0
CallNative "REMOVE_PARTICLE_FX_IN_RANGE" 2 0
push_0
CallNative "STOP_FIRE_IN_RANGE" 2 0
push_0
CallNative "WAIT" 1 0
push_1
Not
JumpFalse @Label_2
:Label_3
Return 0 0
Thanks for any Info and Help
Greetings  Torxi :-)
Reply
#2
(08-21-2019 - 10:12 PM)Torxi Wrote: Hello community!
I have a question about script.csc
My script tries a little bit, just my problem
is when I start the script in modloader and then disable it I can not start it again.

It's my first script which I try.
Can give me a little help. What to consider


Function 0 2 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
CallNative "GET_VEHICLE_AVERAGE_PICKUPS_IPL" 0 1
CallNative "UNK_029D3841" 1 1
push_1
JumpGT @Label_0
Call @Label_1
:Label_0
Return 0 0

:Label_1
Function 0 2 0
push_1
JumpFalse @Label_3
:Label_2
CallNative "PLAYER_PED_ID" 0 1
push_0
CallNative "GET_ENTITY_COORDS" 2 3
push_0
CallNative "REMOVE_PARTICLE_FX_IN_RANGE" 2 0
push_0
CallNative "STOP_FIRE_IN_RANGE" 2 0
push_0
CallNative "WAIT" 1 0
push_1
Not
JumpFalse @Label_2
:Label_3
Return 0 0
Thanks for any Info and Help
Greetings  Torxi :-)

Did you create this script? Don't you think it's better to redo it in C / C ++ using the SC-CL project?
[Image: a8keeuutawx01.gif]
Reply
#3
Yes I have created this script, with the help of a tutorial,
was just curious how scripts are created, had the idea to use that in my modloader.
First I had the modloader base of the RF0oDxM0Dz
I found it easier to use with codes, unfortunately I could not compile them.
That's why I try this on this path.

And Now I use the modloader from NotYourDope. And that's why I just wanted to try that.
For single native works, only with the double native I just can not get the way it has a function.

Have to say these are my first attempts with scripts so I am absolutely new to it for the first time.
Reply
#4
(08-24-2019 - 04:53 PM)Torxi Wrote: Yes I have created this script, with the help of a tutorial,
was just curious how scripts are created, had the idea to use that in my modloader.
First I had the modloader base of the RF0oDxM0Dz
I found it easier to use with codes, unfortunately I could not compile them.
That's why I try this on this path.

And Now I use the modloader from NotYourDope. And that's why I just wanted to try that.
For single native works, only with the double native I just can not get the way it has a function.

Have to say these are my first attempts with scripts so I am absolutely new to it for the first time.

I understand almost nothing of ASM, not enough to help you in this case. But I can help you compile scripts using SC-CL if you want.
[Image: a8keeuutawx01.gif]
Reply
#5
ASM is hard to understand I get a headache from that :-),
There is not much help with that from others.
Had once asked in another forum if someone can give me little help.
Apart from offending you did not get any info.

Do you have a good tutorial on how to create scripts with sc-cl?
Thanks for your offer with the help.
Reply
#6
(08-26-2019 - 07:43 AM)Torxi Wrote: ASM is hard to understand I get a headache from that :-),
There is not much help with that from others.
Had once asked in another forum if someone can give me little help.
Apart from offending you did not get any info.

Do you have a good tutorial on how to create scripts with sc-cl?
Thanks for your offer with the help.

It's really hard and really, people are very aggressive, prefer to offend rather than help.

After the high level compiler has leaked, I no longer need to work with ASM. There is no simple tutorial to follow, I will try to make one here that will work on windows 10.
[Image: a8keeuutawx01.gif]
Reply
#7
yes give exactly the sayings if someone asks something. I had that on ngu. experienced. here it is only annoying if someone is leaked and not even heard him or wants to fish so credits. that's fair.
Reply
#8
did u fixed it or not??
Reply
#9
Did not make it, works only with one native
Reply

Users browsing: 1 Guest(s)