I know global variables are bugged but...i want to make an activation command for my mod with sampfuncs.
Ex:
And :accept is:
If I use like this, the 3@ local variable it will always be 0...i don't know why it get reset.
P.S: If I use globals it work but if i use globals in more than one mod it get bugged.
Ex:
Code:
0B34: samp register_client_command "arepair" to @accept
Code:
:accept
wait 0
if 3@ == 0
then
3@ = 1
0ACD: show_text_highpriority "Repair & Refill MOD ~g~enabled" time 3000
else
3@ = 0
0ACD: show_text_highpriority "Repair & Refill MOD ~r~disabled~w~" time 3000
end
samp.CmdRet()
goto @OFF
P.S: If I use globals it work but if i use globals in more than one mod it get bugged.