29.02.2012, 19:39
Hello guys , Im facing allot of problems from this command { /r }
SCRIPT::
My Errors::
If you know the reason please tell me thanks!!
SCRIPT::
Код:
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.