03.10.2014, 21:53
I'm getting errors on this line.
Help please.
pawn Код:
stock GetAdminName(playerid)
{
new adminname[129];
if ( PlayerInfo [ playerid ] [ Level ] > 0)
{
case 1: adminname = "Admininstrator";
case 2: adminname = "General Admininstrator";
case 3: adminname = "Senior Admininstrator";
case 4: adminname = "Head Admininstrator";
case 5: adminname = "Chief";
case 6: adminname = "Server Owner";
}
return adminname;
}
pawn Код:
C:\Users\Dell\Desktop\Stunt Evolution v4\gamemodes\SEv4.pwn(3393) : error 014: invalid statement; not in switch
C:\Users\Dell\Desktop\Stunt Evolution v4\gamemodes\SEv4.pwn(3393) : warning 215: expression has no effect
C:\Users\Dell\Desktop\Stunt Evolution v4\gamemodes\SEv4.pwn(3393) : error 001: expected token: ";", but found ":"
C:\Users\Dell\Desktop\Stunt Evolution v4\gamemodes\SEv4.pwn(3393) : error 029: invalid expression, assumed zero
C:\Users\Dell\Desktop\Stunt Evolution v4\gamemodes\SEv4.pwn(3393) : fatal error 107: too many error messages on one line