4 errors
#4

You should provide the hole function, rather than that, it should look like this:

pawn Код:
public Something()/*or stock or whatever*/
{
    switch(/*blabla*/)
    {
        case 20:
        {
            switch(PlayerInfo[playerid][pRank])
            {
                case 1: rank = "Deputy";
                case 2: rank = "Deputy (II)";
                case 3: rank = "Sergeant";
                case 4: rank = "Lieutenant";
                case 5: rank = "Captain";
                case 6: rank = "Commander";
                case 7: rank = "Deputy Commisioner";
                case 8: rank = "Commisioner";
                default: rank = "Cadet";
            }

            switch(PlayerInfo[playerid][pDivision])
            {
                case 1: division = "(PATROL) ";
                case 2: division = "(CIB) ";
                case 3: division = "(TRAFFIC) ";
                case 4: division = "(TNT) ";
                case 5: division = "(HVE) ";
                default: division = "";
            }

            format(string, sizeof(string), "** %s%s %s: %s **", rank, division, GetPlayerNameEx(playerid), params);
            SendRadioMessage(19, RADIO, string);
        }
        default:
        {
            SendClientMessageEx(playerid, COLOR_GRAD2, "You're not in a faction.");
            break;
        }
    }
   
    format(string, sizeof(string), "(radio) %s", params);
    SetPlayerChatBubble(playerid, string, COLOR_WHITE, 15.0, 5000);
    return 1;
}
Reply


Messages In This Thread
4 errors - by MrCallum - 13.10.2014, 18:01
Re: 4 errors - by ]Rafaellos[ - 13.10.2014, 18:05
Re: 4 errors - by MrCallum - 13.10.2014, 18:08
Re: 4 errors - by ]Rafaellos[ - 13.10.2014, 18:12
Re: 4 errors - by YanLanger - 13.10.2014, 18:12
Re: 4 errors - by MrCallum - 13.10.2014, 18:16

Forum Jump:


Users browsing this thread: 2 Guest(s)