if (strcmp("/loadpos", cmdtext, true, 10) == 0) { if(Saved[playerid]==0)return SendClientMessage(playerid,0xFF0D13FF,"ERROR: You have not yet saved a location. (/savepos)"); else if(GetPlayerState(playerid)==2) { SendClientMessage(playerid,0xFF0D13FF,"Position loaded."); SetVehiclePos(GetPlayerVehicleID(playerid),SavedPos[playerid][0],SavedPos[playerid][1],SavedPos[playerid][2]); } else { SetPlayerPos(playerid,SavedPos[playerid][0],SavedPos[playerid][1],SavedPos[playerid][2]); SendClientMessage(playerid,0xFF0D13FF,"Position loaded."); } return 1; } if (strcmp("/savepos", cmdtext, true, 10) == 0) { GetPlayerPos(playerid,SavedPos[playerid][0],SavedPos[playerid][1],SavedPos[playerid][2]); Saved[playerid]=1; SendClientMessage(playerid,0xFF0D13FF,"Position saved."); return 1; }
C:\Documents and Settings\Administratцr\Skrivbord\SAMP server\gamemodes\Stuntrevolution.pwn(123) : error 017: undefined symbol "Saved" C:\Documents and Settings\Administratцr\Skrivbord\SAMP server\gamemodes\Stuntrevolution.pwn(123) : warning 215: expression has no effect C:\Documents and Settings\Administratцr\Skrivbord\SAMP server\gamemodes\Stuntrevolution.pwn(123) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Administratцr\Skrivbord\SAMP server\gamemodes\Stuntrevolution.pwn(123) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administratцr\Skrivbord\SAMP server\gamemodes\Stuntrevolution.pwn(123) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
if(!strcmp("/loadpos",cmdtext,true))
{
if(Saved[playerid] == 0) return SendClientMessage(playerid,0xFF0D13FF,"ERROR: You have not yet saved a location. (/savepos)");
else if(GetPlayerState(playerid) == 2)
{
SendClientMessage(playerid,0xFF0D13FF,"Position loaded.");
SetVehiclePos(GetPlayerVehicleID(playerid),SavedPos[playerid][0],SavedPos[playerid][1],SavedPos[playerid][2]);
}
else
{
SetPlayerPos(playerid,SavedPos[playerid][0],SavedPos[playerid][1],SavedPos[playerid][2]);
SendClientMessage(playerid,0xFF0D13FF,"Position loaded.");
}
return 1;
}
if(!strcmp("/savepos",cmdtext,true))
{
GetPlayerPos(playerid,SavedPos[playerid][0],SavedPos[playerid][1],SavedPos[playerid][2]);
Saved[playerid] = 1;
SendClientMessage(playerid,0xFF0D13FF,"Position saved.");
return 1;
}
if(Saved[playerid]==0)return SendClientMessage(playerid,red,"ERROR: You have not yet saved a location. (/savepos)");
This is line 123:
Код:
if(Saved[playerid]==0)return SendClientMessage(playerid,red,"ERROR: You have not yet saved a location. (/savepos)"); |
new Saved[MAX_PLAYERS];