18.05.2014, 09:48
PHP код:
dcmd_jail (playerid, params[])
{
new giveid, time, str[128];
if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You can't use this cmd.");
if (sscanf(params, "ui", giveid, time)) return SendClientMessage(playerid, -1, "USAGE: /jail [ID] [TimeInMilliSeconds]");
if (giveid == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Invalid player ID!");
CagePlayer(giveid);
format(str, sizeof(str), "You are now jailed for %i milliseconds!", time);
SendClientMessage(giveid, -1, str);
jailtimer = SetTimerEx("UnJailPlayer", time, false, "i", giveid);
return 1;
}
PHP код:
:\Documents and Settings\Arlind\Desktop\fsdf\filterscripts\Project.pwn(5980) : error 017: undefined symbol "jailtimer"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.