error 028: invalid subscript (not an array or too many subscripts): "pInfo"
#1

i got this problem when i add admin names:


heres the code:
PHP код:
stock AdminLevelName(playerid)
{
    new 
staffname[256];
    switch(
pInfo[playerid][pAdmin]) //line of proble, the pInfo thing
    
{
        case 
0staffname "Member";
        case 
1staffname "Helper";
        case 
2staffname "Moderator";
        case 
3staffname "Manager";
        case 
4staffname "Head Admin";
        case 
5staffname "Founder";
    }
    return 
staffname;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)