Derrekgamer
Active member
Here is my code
Now if i add the
0B65: samp 2@ = player 1@ score
If 2@ >= 20
it crashes at game start, why??
this is the code with that and it crash at server starting.. :
[/CODE]
Why ifi add that feature to get player level the game crash?..
Code:
{$CLEO}
0662: "get" //Ruby.Nephrite.RO
thread "all players"
wait 2500
0B34: samp register_client_command "getplayers" to_label @toggle
WHILE TRUE
WAIT 0
if 30@ == 1 //if you type that command it will change variable to 1
then
0C8A: samp 1@ = get_max_player_id streamed_only 0
FOR 0@ = 0 TO 1@
IF
0B23: samp is_player_connected 0@
THEN
0AF9: "/id %d" 0@
WAIT 1000 // DELAY
END
END
END
end
:toggle //command
0B12: 30@ = 30@ XOR 1
if 30@ == 0
then
print "~r~>off" 2000
else
print "~r~>on" 2000
end
SAMP.CmdRet()
Now if i add the
0B65: samp 2@ = player 1@ score
If 2@ >= 20
it crashes at game start, why??
this is the code with that and it crash at server starting.. :
Code:
[CODE]{$CLEO}
0662: "get" //Ruby.Nephrite.RO
thread "all players"
wait 2500
0B34: samp register_client_command "getplayers" to_label @toggle
WHILE TRUE
WAIT 0
if 30@ == 1 //if you type that command it will change variable to 1
then
0C8A: samp 1@ = get_max_player_id streamed_only 0
FOR 0@ = 0 TO 1@
IF
0B23: samp is_player_connected 0@
THEN
0B65: samp 2@ = player 0@ score
If 2@ >= 20
Then
0AF9: "/id %d" 0@
WAIT 1000 // DELAY
END
END
END
end
:toggle //command
0B12: 30@ = 30@ XOR 1
if 30@ == 0
then
print "~r~>off" 2000
else
print "~r~>on" 2000
end
SAMP.CmdRet()
Why ifi add that feature to get player level the game crash?..