pawno error 028 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: pawno error 028 (
/showthread.php?tid=589400)
pawno error 028 -
1fret - 18.09.2015
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++;
}
}
Re: pawno error 028 -
jlalt - 18.09.2015
Код:
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?
Re: pawno error 028 -
1fret - 18.09.2015
if(pInfo[playerid][Adminlevel] >= 1)
Re: pawno error 028 -
Sjn - 18.09.2015
Change AdminLevel[i] to pInfo[i][Adminlevel].
Re: pawno error 028 -
1fret - 18.09.2015
Quote:
Originally Posted by Sjn
Change AdminLevel[i] to pInfo[i][Adminlevel].
|
thanks man rep+++