13.05.2016, 17:24
C:\Users\user\Desktop\relog.pwn(1) : error 017: undefined symbol "Kick"
C:\Users\user\Desktop\relog.pwn(23) : warning 203: symbol is never used: "OnPlayerCommandText"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
pls help guys how to fix this
C:\Users\user\Desktop\relog.pwn(23) : warning 203: symbol is never used: "OnPlayerCommandText"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
PHP Code:
OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/kickme", true) == 0)
{
// Kick the player who executed this command.
// First, send them a message.
SendClientMessage(playerid, 0xFF0000FF, "You Kicked.");
// Actually kick them a second later on a timer.
SetTimerEx("DelayedKick", 1000, false, "i", playerid);
return 1;
}
return 0;
}
forward DelayedKick(playerid);
public DelayedKick(playerid)
{
Kick(playerid);
return 1;
}