SetPlayerCheckpoint(playerid, -1447.2351,1502.1000,1.7366, 6.3);
SetPlayerCheckpoint(playerid, -1454.8569,1489.1010,7.1016, 3.0);
SetPlayerCheckpoint(playerid, -1428.7382,1490.0945,7.1016, 3.0);
SetPlayerCheckpoint(playerid, -1402.7249,1486.1351,7.1016, 3.0);
SetPlayerCheckpoint(playerid, -1382.1962,1480.3761,8.5625, 3.0);
SetPlayerCheckpoint(playerid, -1376.8267,1492.7152,11.2031, 3.0);
SetPlayerCheckpoint(playerid, -1390.7821,1483.1436,1.8672, 3.0);
SetPlayerCheckpoint(playerid, -1434.3047,1483.0374,1.8672, 3.0);
SetPlayerCheckpoint(playerid, -1424.6499,1491.1248,1.8672, 3.0);
SetPlayerCheckpoint(playerid, -1381.9700,1498.3158,8.5625, 3.0);
SetPlayerCheckpoint(playerid, -2392.9497,2312.1875,-0.1095, 6.3);
new CP[MAX_PLAYERS]; |
CP[playerid] = 0; SetPlayerCheckpoint(playerid, -1447.2351,1502.1000,1.7366, 6.3);//First CP |
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;
}
C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(27) : error 017: undefined symbol "CP" C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(27) : warning 215: expression has no effect C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(27) : error 001: expected token: ";", but found "]" C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(27) : error 029: invalid expression, assumed zero C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(27) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
#include <a_samp> #include <zcmd> 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; } |
SetPlayerCheckpoint(playerid, -1447.2351,1502.1000,1.7366, 6.3); SetPlayerCheckpoint(playerid, -1454.8569,1489.1010,7.1016, 3.0); SetPlayerCheckpoint(playerid, -1428.7382,1490.0945,7.1016, 3.0); SetPlayerCheckpoint(playerid, -1402.7249,1486.1351,7.1016, 3.0); SetPlayerCheckpoint(playerid, -1382.1962,1480.3761,8.5625, 3.0); SetPlayerCheckpoint(playerid, -1376.8267,1492.7152,11.2031, 3.0); SetPlayerCheckpoint(playerid, -1390.7821,1483.1436,1.8672, 3.0); SetPlayerCheckpoint(playerid, -1434.3047,1483.0374,1.8672, 3.0); SetPlayerCheckpoint(playerid, -1424.6499,1491.1248,1.8672, 3.0); SetPlayerCheckpoint(playerid, -1381.9700,1498.3158,8.5625, 3.0); SetPlayerCheckpoint(playerid, -2392.9497,2312.1875,-0.1095, 6.3); |
new CP[MAX_PLAYERS];
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. |
#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;
}