16.09.2014, 18:06
i delete it now and i get this error
and this command arrest
Quote:
C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(4) : error 017: undefined symbol "PlayerSeconds" C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(6) : error 017: undefined symbol "format" C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(6) : warning 215: expression has no effect C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(6) : warning 215: expression has no effect C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(6) : warning 215: expression has no effect C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(6) : error 017: undefined symbol "PlayerSeconds" C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(6) : error 029: invalid expression, assumed zero C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(6) : fatal error 107: too many error messages on one line |
PHP код:
CMD:arrest(playerid, params[])
{
new targetid;
if(sscanf(params, "u", targetid))
{
SendClientMessage(playerid,COLOR_ERROR,"USAGE: /Arrest (Player Name/PlayerID)");
return 1;
}
new Float:x, Float:y, Float:z;
GetPlayerPos(targetid, x, y, z);
if(!IsPlayerInRangeOfPoint(targetid, 5.0, x, y, z)) return SendClientMessage(playerid, COLOR_RED, "You aren't near that player.");
if(GetPlayerWantedLevel(targetid) < 4) return SendClientMessage(playerid, COLOR_RED, "That player is not wanted!");
SetPlayerInterior(targetid, 3);
new RandomG = random(sizeof(RandomSpawnCLIVINS));
SetPlayerPos(targetid, RandomSpawnJail[RandomG][0], RandomSpawnJail[RandomG][1], RandomSpawnJail[RandomG][2]);
SetPlayerFacingAngle(targetid, RandomSpawnJail[RandomG][3]);
GivePlayerMoney(playerid, 1000+random(9000));
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
SetPlayerScore(targetid, GetPlayerScore(targetid) - 1);
SetPlayerHealth(targetid, 10000000000.0);
SetPlayerWantedLevel(targetid, 0);
ResetPlayerWeapons(targetid);
TextDrawShowForPlayer(playerid, JailTimer0);
TextDrawShowForPlayer(playerid, JailTimer1);
TextDrawShowForPlayer(playerid, JailTimer2);
TextDrawShowForPlayer(playerid, JailTimer3);
TextDrawShowForPlayer(playerid, JailTimer4);
PlayerSeconds[playerid] = 10;//Just to make sure its 10 seconds.
PlayerTimer[playerid] = SetTimerEx("JailTimer",1000,true,"i",playerid);
return 1;
}