Faction Division error
#1

Код:
C:\Users\****\Desktop\HS-RP 0.3x\gamemodes\IRP.pwn(51137) : error 001: expected token: "{", but found ";"
C:\Users\****\Desktop\HS-RP 0.3x\gamemodes\IRP.pwn(51139) : error 014: invalid statement; not in switch
C:\Users\****\Desktop\HS-RP 0.3x\gamemodes\IRP.pwn(51139) : warning 215: expression has no effect
C:\Users\****\Desktop\HS-RP 0.3x\gamemodes\IRP.pwn(51139) : error 001: expected token: ";", but found ":"
C:\Users\****\Desktop\HS-RP 0.3x\gamemodes\IRP.pwn(51139) : error 029: invalid expression, assumed zero
C:\Users\****\Desktop\HS-RP 0.3x\gamemodes\IRP.pwn(51139) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
pawn Код:
line: 51137               switch(PlayerInfo[playerid][pDivision]);
            {
     line: 51139          case 2: division = " (General Duties)";
Reply
#2

No semicolon after a switch statement. The error practically tells you that right on.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
No semicolon after a switch statement. The error practically tells you that right on.
The thing is though, there is..
Reply
#4

pawn Код:
switch(PlayerInfo[playerid][pDivision]); // <<< NO SEMICOLON HERE!
Reply
#5

I've removed the semicolen, but its still givng error's.

Код:
C:\Users\****\Desktop\I-RP lol.pwn(51137) : error 001: expected token: "{", but found ";"
C:\Users\****\Desktop\I-RP lol.pwn(51139) : error 014: invalid statement; not in switch
C:\Users\****\Desktop\I-RP lol.pwn(51139) : warning 215: expression has no effect
C:\Users\****\Desktop\I-RP lol.pwn(51139) : error 001: expected token: ";", but found ":"
C:\Users\****\Desktop\I-RP lol.pwn(51139) : error 029: invalid expression, assumed zero
C:\Users\****\Desktop\I-RP lol.pwn(51139) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
pawn Код:
case 2: division = " (General Duties)"; // Bugged line
Reply
#6

Bump, I really need help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)