03.03.2013, 18:28
This is what I have:
These are the errors I NEED help with:
ALL these errors are on this line:
can anyone assist me in correcting this problem
PHP код:
if (strcmp("/t", cmdtext, true, 10) == 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;
}
Код:
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
Код:
format(string,sizeof(string),"[Radio Chat] %s: %s",string,text[1]);