I have this piece of code, my problem with it is that it sends /mdc commands too fast, i want there to be a delay between sending commands but "wait" doesn't do anything even if i put wait 10000 the commands are still being sent instantly.
What am i doing wrong? :imoverit:
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
thread "mdcstream"
const
COLOR = 0xFFE3336D
end
:mdcc_1
wait 0
if
SAMP.Available
else_jump @mdcc_9
0B34: samp register_client_command "mdcc" to_label @mdcc_8823
:mdcc_390
wait 0
jump @mdcc_390
:mdcc_1
0@ = -1
:mdcc_2
wait 0
0@ += 1
not 0@ == 1000
else_jump @mdcc_3
SAMP.IsPlayerConnected(0@)
else_jump @mdcc_2
1@ = SAMP.GetActorHandleByPlayerID(0@)
if
056D: actor 1@ defined
else_jump @mdcc_2
2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@)
16@ = SAMP.GetPlayerColor(0@)
if
16@ == COLOR
else_jump @mdcc_2
0AF9: samp say_msg "/mdc %d" 0@
wait 1000
jump @mdcc_2
:mdcc_3
chatmsg "DONE" -1
SAMP.CmdRet
What am i doing wrong? :imoverit: