Need help with dialog response
#4

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

Код:
 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
            }
            
        }
    }
}
i dont know why this happens
Reply


Messages In This Thread
Need help with dialog response - by ZBits - 02.07.2012, 09:07
Re: Need help with dialog response - by MadeMan - 02.07.2012, 09:22
Re: Need help with dialog response - by ZBits - 02.07.2012, 09:35
Re: Need help with dialog response - by ZBits - 02.07.2012, 10:55
Re: Need help with dialog response - by ZBits - 02.07.2012, 10:59
Re: Need help with dialog response - by ZBits - 07.07.2012, 05:47
Re: Need help with dialog response - by [MM]RoXoR[FS] - 07.07.2012, 06:43

Forum Jump:


Users browsing this thread: 1 Guest(s)