15.05.2014, 21:41
PHP код:
COMMAND:radio(playerid,params[])
{
new text[256];
if(sscanf(params,"s",text)) return SendClientMessage(playerid,COLOR_RED,"Usage: /radio [Text]");
else
{
new textmessage[256];
format(textmessage, sizeof(textmessage), "%s",text);
SendRadioMessage(playerid,textmessage);
}
return 1;
}
PHP код:
stock SendRadioMessage(playerid,message)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(RLTnfo[i][Radio] == 1)
{
if(RLTnfo[i][RadioHZ] == RLTnfo[playerid][RadioHZ])
{
new sendmessage[256];
format(sendmessage, sizeof(sendmessage), "[Radio Message] %s",message);
SendClientMessage(i,COLOR_RED,sendmessage);
}
}
}
return 1;
}
PHP код:
D:\Downloads\ZombieWorld\filterscripts\reality.pwn(378) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
PHP код:
SendRadioMessage(playerid,textmessage);