Darn Error [Help]
#1

Ok i get these errors
pawn Код:
C:\Documents and Settings\User\Desktop\RP\gamemodes\LS-SW.pwn(3731) : error 002: only a single statement (or expression) can follow each "case"
C:\Documents and Settings\User\Desktop\RP\gamemodes\LS-SW.pwn(3731) : warning 215: expression has no effect
C:\Documents and Settings\User\Desktop\RP\gamemodes\LS-SW.pwn(3732) : warning 209: function "OnDialogResponse" should return a value
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
Here is the codes

pawn Код:
case D_Toy:
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0:
                    {
                        if(GetPlayerScore(playerid) < 8)
                        {
                        SendClientMessage(playerid,C_SKYBLUE,"Not enough score!");
                        return 1;
                        }
                        else
                        SetPlayerAttachedObject( playerid, 0, 356, 1, -0.177908, -0.158685, -0.085900, 0.888899, 13.451434, 0.000000, 1.000000, 1.000000, 1.000000 ); // m4 -
                        SendClientMessage(playerid, COLOR_YELLOW, "Your M4 has been granted!");
                    }
                    case 1:
                    {
                        if(GetPlayerScore(playerid) < 12)
                        {
                        SendClientMessage(playerid,C_SKYBLUE,"Not enough score!");
                        return 1;
                        }
                        else
                        SetPlayerAttachedObject( playerid, 0, 18637, 1, 0.046957, -0.116120, 0.109620, 269.251220, 174.381561, 90.427261, 1.000000, 1.000000, 1.000000 ); // PoliceShield1 - Shield
                        SendClientMessage(playerid, COLOR_YELLOW, "Your Riot Shield has been granted!");
                    }
                    case 2:
                    {
                        if(GetPlayerScore(playerid) < 20)
                        {
                        SendClientMessage(playerid,C_SKYBLUE,"Not enough score!");
                        return 1;
                        }
                        else
                        SetPlayerAttachedObject( playerid, 0, 19078, 1, 0.352603, -0.075285, -0.167187, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // TheParrot1 - Parrot
                        SendClientMessage(playerid, COLOR_YELLOW, "Your Parrot has been granted!");
                    }
                    case 3:
                    {
                        if(GetPlayerScore(playerid) < 50)
                        {
                        SendClientMessage(playerid,C_SKYBLUE,"Not enough score!");
                        return 1;
                        }
                        else
                        SetPlayerAttachedObject( playerid, 0, 2780, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // CJ_SMOKE_MACH - smoke
                        SendClientMessage(playerid, COLOR_YELLOW, "Your Smoke Machine has been granted!");
                    }
                }
            }
+rep for whoever fixes this code!
Reply


Messages In This Thread
Darn Error [Help] - by Infinity90 - 23.05.2012, 09:27
Re: Darn Error [Help] - by Kathleen_Darling - 23.05.2012, 09:29
Re: Darn Error [Help] - by Kitten - 23.05.2012, 09:31
Re: Darn Error [Help] - by Kathleen_Darling - 23.05.2012, 09:31
Re: Darn Error [Help] - by leonardo1434 - 23.05.2012, 09:36
Re: Darn Error [Help] - by Infinity90 - 23.05.2012, 11:09

Forum Jump:


Users browsing this thread: 1 Guest(s)