15.05.2014, 22:14
when i remove playerid from Stock i got this errors
Edit:
does not matter did it like that, without Stock
PHP код:
D:\Downloads\ZombieWorld\pawno\include\SRB.inc(154) : error 017: undefined symbol "playerid"
D:\Downloads\ZombieWorld\filterscripts\reality.pwn(396) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
does not matter did it like that, without Stock
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), "{FF0000}[Radio]{ADD8E6}%s",text);
for(new loopplayers = 0; loopplayers<MAX_PLAYERS; loopplayers ++)
{
if(IsPlayerConnected(loopplayers))
{
if(RLTnfo[loopplayers][Radio] == 1)
{
if(RLTnfo[loopplayers][RadioHZ] == RLTnfo[playerid][RadioHZ])
{
SendClientMessage(loopplayers,COLOR_LIGHTBLUE,textmessage);
}
}
}
}
}
return 1;
}