Errors
#2

Try this:

pawn Код:
command(fbi, playerid, params[])
{
        if (Player[playerid][Group] == 7)
        {
            new string[128];
            switch(Player[playerid][undercover])
            {
                case 0:
                {
                    Player[playerid][undercover] = 1;
                    format(string, sizeof(string), "* %s clips his ID card on", GetName(playerid));
                    NearByMessage(playerid, NICESKY, string);
                    SendClientmessage(playerid, WHITE, "You are now working as an undercover agent for the F.B.I");
                    Player[playerid][FBIduty] = 1;
                }
                case 1:
                {
                    Player [playerid][undercover] = 0;
                    format(string, sizeof(string), "* %s unclips his ID card", GetName(playerid));
                    NearByMessage(playerid, NICSKY, string);
                    Player[playerid][FBIduty] = 0;
                    SendClientMessage(playerid, WHITE, "You are now a civilian again");

                }
            }
        }
        return 1;
}
Reply


Messages In This Thread
Errors - by Joshswag - 02.11.2012, 22:32
AW: Errors - by Skimmer - 02.11.2012, 23:01
Re: Errors - by Joshswag - 02.11.2012, 23:41
Re: Errors - by Joshswag - 03.11.2012, 06:00
Re: Errors - by Glad2BeHere - 03.11.2012, 06:03
Respuesta: Errors - by ThePhenix - 03.11.2012, 06:06
Re: Errors - by Joshswag - 03.11.2012, 08:50

Forum Jump:


Users browsing this thread: 3 Guest(s)