Help with CMD
#1

Hey, I recently put a radio CMD into my script and it keeps on saying 'warning 202: number of arguments does not match definition' here is the script:
CMD:radio(playerid, params[])
{
new string[128];
if(isnull(params)) return SendClientMessage(playerid, WHITE, "USAGE: /r(adio) [message]");

new
rank[64];
switch (PlayerVar[playerid][pLSPD])
{
case 1:
{
switch(PlayerVar[playerid][pFactionRank])
{
case 1: rank = "Cadet";
case 2: rank = "Officer";
case 3: rank = "Corporal";
case 4: rank = "Sergeant";
case 5: rank = "Captain";
case 6: rank = "Chief";
default: rank = "Trainee";
}
format(string, sizeof(string), "[Radio] %s %s: %s, over", rank, GetPlayerName(playerid), params);
SendLSPDMessage(LSPD, string);
}
default:
{
SendClientMessage(playerid, WHITE, "You are not in the LSPD");
return 1;
}
}
format(string, sizeof(string), "(RADIO): %s", params);
SetPlayerChatBubble(playerid, string, WHITE, 15.0, 5000);
return 1;
}
It gets the error here: format(string, sizeof(string), "[Radio] %s %s: %s, over", rank, GetPlayerName(playerid), params);
SendLSPDMessage(LSPD, string);

Please help.
Reply


Messages In This Thread
Help with CMD - by arko123 - 09.11.2012, 07:03
Re: Help with CMD - by Team_PRO - 09.11.2012, 07:08
Re: Help with CMD - by arko123 - 09.11.2012, 07:09
Re: Help with CMD - by Team_PRO - 09.11.2012, 07:11
Re: Help with CMD - by Glad2BeHere - 09.11.2012, 07:13
Re: Help with CMD - by arko123 - 09.11.2012, 07:13
Re: Help with CMD - by B-Matt - 09.11.2012, 07:14
Re: Help with CMD - by arko123 - 09.11.2012, 07:16
Re: Help with CMD - by Team_PRO - 09.11.2012, 07:17
Re: Help with CMD - by Konstantinos - 09.11.2012, 10:07

Forum Jump:


Users browsing this thread: 1 Guest(s)