[SOLVED]Errors...
#1

C:\Users\Nicola\SA-MP Server Making Kit\filterscripts\Teleports.pwn(127) : error 014: invalid statement; not in switch
C:\Users\Nicola\SA-MP Server Making Kit\filterscripts\Teleports.pwn(127) : warning 215: expression has no effect
C:\Users\Nicola\SA-MP Server Making Kit\filterscripts\Teleports.pwn(127) : error 001: expected token: ";", but found ":"
C:\Users\Nicola\SA-MP Server Making Kit\filterscripts\Teleports.pwn(127) : error 029: invalid expression, assumed zero
C:\Users\Nicola\SA-MP Server Making Kit\filterscripts\Teleports.pwn(127) : fatal error 107: too many error messages on one line

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


5 Errors.

Код:
case 12:
Reply
#2

You case in not within the switch brackets, as this:

Код:
switch(val){
//...
}
case 12:
Reply
#3

I'm sorry, I did not understand.
Reply
#4

Your last (?) case, case 12, is not within the brackets -> { } of switch.

Your code does somehow look like this:

Код:
switch(whateverValue){
   case 1: ..
   case 2: ..
}
After you close the switch clause you throw in another "case 12:".

Код:
switch(whateverValue){
   case 1: ..
   case 2: ..
   ...
} // <- switch-case gets closed

case 12: // case 12 is outside the switch code
However it obv. needs to be within the switch brackets.
Reply
#5

Quote:
Originally Posted by juice.j
Your last (?) case, case 12, is not within the brackets -> { } of switch.

Your code does somehow look like this:

Код:
switch(whateverValue){
   case 1: ..
   case 2: ..
}
This is my code, actually.

Код:
SetPlayerPos(playerid, MOUNTCHILLIAD);
}
case 11:
}
SetPlayerPos(playerid, DONUTSHOP);
}
case 12:
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)