Team Chat
#1

This is what I have:
PHP код:
if (strcmp("/t"cmdtexttrue10) == 0)
    {
        if(
GetPlayerTeam(playerid) == 1)
        {
            new 
string[128]; GetPlayerName(playerid,string,sizeof(string));
            
format(string,sizeof(string),"[Radio Chat] %s: %s",string,text[1]);
            
SendClientMessageToAll(0xFDAC6DAA,string);
        }
        return 
1;
    } 
These are the errors I NEED help with:

Код:
GM.pwn(201) : error 017: undefined symbol "text"
GM.pwn(201) : warning 215: expression has no effect
GM.pwn(201) : error 001: expected token: ";", but found "]"
GM.pwn(201) : error 029: invalid expression, assumed zero
GM.pwn(201) : fatal error 107: too many error messages on one line
ALL these errors are on this line:
Код:
format(string,sizeof(string),"[Radio Chat] %s: %s",string,text[1]);
can anyone assist me in correcting this problem
Reply


Messages In This Thread
Team Chat - by megamind2067 - 03.03.2013, 18:28
Re: Team Chat - by Ryan_Bowe - 03.03.2013, 18:35
Respuesta: Team Chat - by Strier - 03.03.2013, 18:38
Re: Respuesta: Team Chat - by megamind2067 - 03.03.2013, 18:39

Forum Jump:


Users browsing this thread: 1 Guest(s)