SA-MP Forums Archive
How do i fix this - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do i fix this (/showthread.php?tid=189303)



How do i fix this - yarrum3 - 11.11.2010

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";
                }
            }



Re: How do i fix this - (SF)Noobanatior - 11.11.2010

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)


Re: How do i fix this - yarrum3 - 11.11.2010

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