pawno error 028
#1

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++;
                }
            }
Reply
#2

Код:
	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++;
				}
			}
the problem is Adminlevel[i] would you show any command for admin you have to we know your admin level permission?
Reply
#3

if(pInfo[playerid][Adminlevel] >= 1)
Reply
#4

Change AdminLevel[i] to pInfo[i][Adminlevel].
Reply
#5

Quote:
Originally Posted by Sjn
Посмотреть сообщение
Change AdminLevel[i] to pInfo[i][Adminlevel].
thanks man rep+++
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)