18.09.2015, 19:04
My friend made an /admins command for me but it has 1 error and i am unable to get to him because he goes to school. Now while trying to complie the script i get this error:
pawn Код:
C:\Users\DJNADAN\Desktop\New folder\sa-mp server\gamemodes\RD.pwn(285) : error 028: invalid subscript (not an array or too many subscripts): "Adminlevel"
C:\Users\DJNADAN\Desktop\New folder\sa-mp server\gamemodes\RD.pwn(285) : warning 215: expression has no effect
C:\Users\DJNADAN\Desktop\New folder\sa-mp server\gamemodes\RD.pwn(285) : error 001: expected token: ";", but found "]"
C:\Users\DJNADAN\Desktop\New folder\sa-mp server\gamemodes\RD.pwn(285) : error 029: invalid expression, assumed zero
C:\Users\DJNADAN\Desktop\New folder\sa-mp server\gamemodes\RD.pwn(285) : 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.
pawn Код:
//here is the lines
new aName[MAX_PLAYER_NAME];
GetPlayerName(i,aName,sizeof(aName));
if(pInfo[i][Hidden] == 0)
{
format(string, sizeof(string), "Level: %d | Name: %s | Rank: %s | Status: %s ",Adminlevel[i], aName, AdminRank,status);//this is line 285
SendClientMessage(playerid,COLOR_YELLOW,string);
count++;
}
}