02.07.2012, 10:55
MadeMan when ever i put code in case 0: i get errors
C:\Users\Sony\Desktop\United States Roleplay\gamemodes\RP.pwn(442) : error 014: invalid statement; not in switch
C:\Users\Sony\Desktop\United States Roleplay\gamemodes\RP.pwn(442) : warning 215: expression has no effect
C:\Users\Sony\Desktop\United States Roleplay\gamemodes\RP.pwn(442) : error 001: expected token: ";", but found ":"
C:\Users\Sony\Desktop\United States Roleplay\gamemodes\RP.pwn(442) : error 029: invalid expression, assumed zero
C:\Users\Sony\Desktop\United States Roleplay\gamemodes\RP.pwn(442) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
and the code which i inserted was
i dont know why this happens
C:\Users\Sony\Desktop\United States Roleplay\gamemodes\RP.pwn(442) : error 014: invalid statement; not in switch
C:\Users\Sony\Desktop\United States Roleplay\gamemodes\RP.pwn(442) : warning 215: expression has no effect
C:\Users\Sony\Desktop\United States Roleplay\gamemodes\RP.pwn(442) : error 001: expected token: ";", but found ":"
C:\Users\Sony\Desktop\United States Roleplay\gamemodes\RP.pwn(442) : error 029: invalid expression, assumed zero
C:\Users\Sony\Desktop\United States Roleplay\gamemodes\RP.pwn(442) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
and the code which i inserted was
Код:
case 253: { if(!response) { SendClientMessage(playerid, 0xFF0000FF, "You Canceled"); return 1; } switch(listitem) { case 0: { if(GetPlayerMoney(playerid) > 500 ) { GivePlayerWeapon(playerid,23,280); SendClientMessage(playerid,COLOR_LAWNGREEN,"You Bought a Silencer with 280 Rounds"); } else { SendClientMessage(playerid,COLOR_PINK2,"You do not have Enought Money"); } case 1: { // AK-47 $2000 } case 2: { // M4 $3000 } } } }