SA-MP Forums Archive
Need help about kicktimer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help about kicktimer (/showthread.php?tid=618830)



Need help about kicktimer - IceBilizard - 10.10.2016

Hello guys today i am trying to make a delay kick timer but when i use crash detect plugin then show this error help me to fix it.

Errors:

Код:
[15:36:25] [debug] #6 native Kick () from samp-server.exe
[15:36:25] [debug] #7 00031c00 in public DelayedKick (0) from MVT.amx
PHP код:
CMD:kickme(playeridparams[])
{
    
SendClientMessage(playerid0xFF0000FF"You have been kicked!");
    
// Actually kick them a second later on a timer.
    
SetTimerEx("DelayedKick"1000false"d"playerid);
    return 
1;

PHP код:
forward DelayedKick(playerid);
public 
DelayedKick(playerid)
{
    
Kick(playerid);
    return 
1;




Re: Need help about kicktimer - iLearner - 10.10.2016

Not sure but try using "i" instead of "d"


Re: Need help about kicktimer - IceBilizard - 10.10.2016

Fixed it.


Re: Need help about kicktimer - iLearner - 10.10.2016

Glad