23.11.2010, 19:13
(
Последний раз редактировалось Kitten_Blind; 23.11.2010 в 19:14.
Причина: lol wtf, reason ? WTF? but title was wrong... -.- rofl
)
Hello! Ive tried to make my own /saveloc and /loadloc command.. for my stunt server, but i get 4 errors !
This is the command:
and errors:
This is the command:
Код:
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.