please help
#1

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(textmessagesizeof(textmessage), "%s",text);
    
SendRadioMessage(playerid,textmessage);
    }
    return 
1;

PHP код:
stock SendRadioMessage(playerid,message)
{
    for(new 
0MAX_PLAYERSi++)
    {
       if(
RLTnfo[i][Radio] == 1)
       {
            if(
RLTnfo[i][RadioHZ] == RLTnfo[playerid][RadioHZ])
            {
            new 
sendmessage[256];
            
format(sendmessagesizeof(sendmessage), "[Radio Message] %s",message);
             
SendClientMessage(i,COLOR_RED,sendmessage);
            }
        }
    }
    return 
1;
    } 
PHP код:
D:\Downloads\ZombieWorld\filterscripts\reality.pwn(378) : error 035argument type mismatch (argument 2)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Line 378:
PHP код:
    SendRadioMessage(playerid,textmessage); 
I know that the problem is anywhere from, Stock and playerid but I can not fix it, please help
Reply


Messages In This Thread
please help - by rumen98 - 15.05.2014, 21:41
Re: please help - by DavidBilla - 15.05.2014, 22:10
Re: please help - by rumen98 - 15.05.2014, 22:14
Re: please help - by DavidBilla - 15.05.2014, 22:22
Re: please help - by RenSoprano - 15.05.2014, 22:46

Forum Jump:


Users browsing this thread: 2 Guest(s)