C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(6186) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(6409) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(9602) : error 017: undefined symbol "Logged"
C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(9602) : warning 215: expression has no effect
C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(9602) : error 001: expected token: ";", but found "]"
C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(9602) : error 029: invalid expression, assumed zero
C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(9602) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
CMD:savestats(playerid, params)
{
if(Logged[playerid] != 1) return SendClientMessage(playerid, -1, "Not logged in");
SaveStats(playerid);
return 1;
}
You've defined PlayerName as a variable more than once.
You have used Logged but have not defined it anywhere. |
C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(6187) : error 001: expected token: "-identifier-", but found "["
C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(6188) : error 029: invalid expression, assumed zero
C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(6188) : warning 215: expression has no effect
C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(6188) : error 001: expected token: ";", but found ")"
C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(6188) : error 029: invalid expression, assumed zero
C:\Users\shalev\Desktop\Samp Server\gamemodes\codwaw32.pwn(6188) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
#define Logged
#define PlayerName
new Logged[MAX_PLAYERS];
Never do that because all you do is causing more errors. Remove those two lines from the script completely.
This should be declared as global array: pawn Код:
|
new PlayerName[MAX_PLAYER_NAME], string[128]; //file[256];
That's what I said - it's declared as global and local array. Remove it from globally and keep the above (locally) only.
|