CLEO Help Crashing need help

CLEO related
Status
Not open for further replies.

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
hi why i getting crash in the game?
Code:
{$CLEO .cs}
0000: NOP 
REPEAT
wait 0
until Samp.Available
0B34: samp register_client_command "test" to_label @TEST
2@ = FALSE
while true 
wait 0
end

0B2B: samp 1@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 2@ = get_player_nickname 1@
if
0C14: strcmp string1 2@ string2 "Test_Test"
then
7@ = TRUE
end

:TEST 
if
7@ == TRUE
then
ChatMsg "Test" -1
CmdRet
end
@Parazitas
@Monday
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
[shcode=cpp]
{$CLEO .cs}

0000: NOP

REPEAT
wait 0
until Samp.Available

0B34: samp register_client_command "test" to_label @cmd


while true
wait 0

if
/// put here opcode from list.: "player is spawned"
then
   0B2B: samp 1@ = get_player_id_by_actor_handle $PLAYER_ACTOR
   0B36: samp 2@ = get_player_nickname 1@
   if
   0C14: strcmp string1 2@ string2 "Test_Test"
   then
       7@ = TRUE
   end
end

end

:cmd 
if
7@ == true
then
   ChatMsg "Test" -1
end
CmdRet
[/shcode]
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Parazitas said:
[shcode=cpp]
{$CLEO .cs}

0000: NOP

REPEAT
wait 0
until Samp.Available

0B34: samp register_client_command "test" to_label @cmd


while true
wait 0

if
/// put here opcode from list.: "player is spawned"
then
   0B2B: samp 1@ = get_player_id_by_actor_handle $PLAYER_ACTOR
   0B36: samp 2@ = get_player_nickname 1@
   if
   0C14: strcmp string1 2@ string2 "Test_Test"
   then
       7@ = TRUE
   end
end

end

:cmd 
if
7@ == true
then
   ChatMsg "Test" -1
end
CmdRet
[/shcode]
works thanks.
 
Status
Not open for further replies.
Top