13.10.2014, 18:12
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;
}