Scripting command questions
Re: Scripting command questions
you have to wrap the whole statement in another pair of brackets
yur sa'nok ngeyä
-
- Hitman
- Posts: 120
- Joined: 06 Dec 2011, 16:54
Re: Scripting command questions
Finally, it works! Thank you!
What is the maximum amount of lines code one can have in a script again?
It seems like the standard code for no reload times doesn't work on vehicle weapons.
EDIT: Found it, you have to use the "IS_CHAR_IN_MODEL" command for it to work.
What is the maximum amount of lines code one can have in a script again?
It seems like the standard code for no reload times doesn't work on vehicle weapons.
EDIT: Found it, you have to use the "IS_CHAR_IN_MODEL" command for it to work.
Re: Scripting command questions
(LIMITATION) Maximum of code lines in a script is 3014
yur sa'nok ngeyä
Re: Scripting command questions
But that was only the official compiler limitation? IIRC there is another limitation about script commands which is higher than the lines limitation.elypter wrote:(LIMITATION) Maximum of code lines in a script is 3014
My GTA2 related projects:
Re: Scripting command questions
I've found the address 0x5EAD76 in 9.6f or 11.44 which stores the boolean value (1 byte) for displaying names. Here is an example of toggling on/off displaying player names dynamically:
Code: Select all
COUNTER show_player_name_add = 6204790
COUNTER player_name_toggle = 0
// some coding stuff...
toggle_name_display:
IF (player_name_toggle = 0)
SET in = 1
SET player_name_toggle = 1
CHANGE_GANG_CHAR_RESPECT (show_player_name_add, in ,111)
RETURN
ENDIF
IF (player_name_toggle = 1)
SET in = 0
SET player_name_toggle = 0
CHANGE_GANG_CHAR_RESPECT (show_player_name_add, in ,111)
RETURN
ENDIF
RETURN