27.08.2014, 09:15
Error
Quote:
C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(39) : error 029: invalid expression, assumed zero C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(43) : error 017: undefined symbol "GivePlayerWantedLevel" C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(46) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
PHP код:
#include <a_samp>
#include <zcmd>
new CP[MAX_PLAYERS];
CMD:robbery(playerid, params[])
{
SendClientMessage(playerid, 0xFF0000, "This text is red.");
SendClientMessage(playerid, 0xFF0000FF, "Wanted Level: 6");
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(CP[playerid] == 0)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -1454.8569,1489.1010,7.1016, 3.0);//Second CP
CP[playerid] = 1;
}
else if(CP[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -1428.7382,1490.0945,7.1016, 3.0);//Third CP
CP[playerid] = 2;
}
else if(CP[playerid] == 2)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -1402.7249,1486.1351,7.1016, 3.0);//Fourth CP
CP[playerid] = 3;
}
//Next checkpoints
else if(CP[playerid] == )//Last CP
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = -1;
GivePlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+6);
GivePlayerMoney(playerid, 40000+random(80001));
}
return 1;
}