I am not passing a integer - 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: I am not passing a integer (
/showthread.php?tid=522822)
I am not passing a integer -
Stereotype - 29.06.2014
Hi guys, once again, on my kick command
CallDelayedKick(giveplayer);
giveplayer must be executed, not the playerid. I cannot use Kick(giveplayer); because server wont send message to the giveplayer. I tried using timer and they are not working with this i created
pawn Код:
stock CallDelayedKick(giveplayer) {
KillTimer(kick_gTimer[giveplayer]);
kick_gTimer[giveplayer] = SetTimerEx("DelayedKick", 1000, false, "i", giveplayer);
return 1;
}
pawn Код:
forward DelayedKick(giveplayer);
public DelayedKick(giveplayer) {
if (!IsPlayerConnected(giveplayer)) return 1;
Kick(giveplayer);
return 1;
}
Also not working..
Re: I am not passing a integer -
Vanter - 29.06.2014
Here's my /kick
pawn Код:
//under /kick command
SetTimerEx("KickPlayer",1000,false,"i",ID);
forward KickPlayer(ID);
public KickPlayer(ID)
{
Kick(ID);
return 1;
}
Re: I am not passing a integer -
Stereotype - 29.06.2014
Dude i just realised that i used
CallDelayedKick(
giveplayer);
wich is
pawn Код:
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
instead of CallDelayedKick(
giveplayerid);
Nevermind, thanks for support LOL