How do i fix this
#1

Im trying to add a rank thing and i get this error.

pawn Код:
C:\Users\Ryan\Desktop\virp\gamemodes\virp.pwn(3111) : error 037: invalid string (possibly non-terminated string)
C:\Users\Ryan\Desktop\virp\gamemodes\virp.pwn(3111) : error 036: empty statement
C:\Users\Ryan\Desktop\virp\gamemodes\virp.pwn(3112) : error 014: invalid statement; not in switch
C:\Users\Ryan\Desktop\virp\gamemodes\virp.pwn(3112) : warning 215: expression has no effect
C:\Users\Ryan\Desktop\virp\gamemodes\virp.pwn(3112) : error 001: expected token: ";", but found ":"
C:\Users\Ryan\Desktop\virp\gamemodes\virp.pwn(3112) : error 029: invalid expression, assumed zero
C:\Users\Ryan\Desktop\virp\gamemodes\virp.pwn(3112) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

A bit of the code

pawn Код:
}
            case 10:
            {
                switch(PlayerInfo[playerid][pRank])
                {
                    case 6:  string = "Administrator;
                    case 5:  string = "
Assistant Administrator;
                    case 4:  string = "Field Supervisor";
                    case 3:  string = "Corporalr";
                    case 2:  string = "Officer";
                    default: string = "Cadet";
                }
            }
Reply
#2

pawn Код:
}
            case 10:
            {
                switch(PlayerInfo[playerid][pRank])
                {
                    case 6:  string = "Administrator;
                    case 5:  string = "
Assistant Administrator";
                    case 4:  string = "
Field Supervisor";
                    case 3:  string = "
Corporalr";
                    case 2:  string = "
Officer";
                    default: string = "
Cadet";
                }
            }
missed " at the end of administrator = (possibly non-terminated string)
Reply
#3

Quote:
Originally Posted by (SF)Noobanatior
Посмотреть сообщение
pawn Код:
}
            case 10:
            {
                switch(PlayerInfo[playerid][pRank])
                {
                    case 6:  string = "Administrator;
                    case 5:  string = "
Assistant Administrator";
                    case 4:  string = "
Field Supervisor";
                    case 3:  string = "
Corporalr";
                    case 2:  string = "
Officer";
                    default: string = "
Cadet";
                }
            }
missed " at the end of administrator = (possibly non-terminated string)
Thanks for your help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)