CMD:r(playerid, params[]) { new string[128]; if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/r)adio [radio chat]"); new rank[64]; switch (PlayerInfo[playerid][pMember]) { case 1: { switch(PlayerInfo[playerid][pMember]) { case 1: rank = "Sergeant"; case 2: rank = "Risker"; case 3: rank = "Captain"; case 4: rank = "Lieutenant"; case 5: rank = "Under-Leader"; case 6: rank = "Leader"; default: rank = "Trainer"; } format(string, sizeof(string), " %s %s: %s ,over ^", rank, GetPlayerName(playerid), params); SendRadioMessage(1, RADIO, string); } default: { SendClientMessage(playerid,COLOR_GRAD2,"You're not in a faction."); return 1; } } format(string, sizeof(string), "(radio) %s",params); SetPlayerChatBubble(playerid,string,COLOR_WHITE,15.0,5000); return 1; }
C:\Users\BCC\Desktop\ZMRP\gamemodes\ZM-RP.pwn(139) : warning 202: number of arguments does not match definition C:\Users\BCC\Desktop\ZMRP\gamemodes\ZM-RP.pwn(139) : warning 202: number of arguments does not match definition C:\Users\BCC\Desktop\ZMRP\gamemodes\ZM-RP.pwn(140) : error 004: function "SendRadioMessage" is not implemented Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
stock SendToGroup(groupid, colour, string[]) {
if(groupid > 0) {
foreach(Player, i) {
if(playerVariables[i][pStatus] == 1 && playerVariables[i][pGroup] == groupid) {
SendClientMessage(i, colour, string);
}
}
}
return 1;
}
"SendRadioMessage" is no stock
Try adding pawn Код:
How is it suppose to "switch (PlayerInfo[playerid][pMember])" when you haven't even added that IF in the CMD? |
format(string, sizeof(string), " %s %s: %s ,over ^", rank, GetPlayerName(playerid), params);
GetPlayerName(playerid, const name[], len))
stock GetName(playerid)
{
new name[24];
GetPlayerName(playerid,name,sizeof(name));
return name;
}
format(string, sizeof(string), " %s %s: %s ,over ^", rank, GetPlayerName(playerid), params);
GetName(playerid)
C:\Users\BCC\Desktop\ZMRP\gamemodes\ZM-RP.pwn(230) : error 004: function "SendRadioMessage" is not implemented Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
"SendRadioMessage" is no stock
Try adding pawn Код:
How is it suppose to "switch (PlayerInfo[playerid][pMember])" when you haven't even added that IF in the CMD? |