Quote:
Originally Posted by Beginnercoder
These codes give me errors, are you sure they are correct?
Edit:
PHP код:
public OnPlayerText(playerid, text[])
{
if(!strcmp(text, "10-0", true))
{
SendClientMessageToAll(0xFF0000FF, "CAUTION");
return 0;
}
return 1;
}
Ok I got that to work but I had to delete to get it to work but in game when I type it, it just says CAUTION, it doesn't say who said it, how do I get it to say who said it?
|
LoL i knew if would be errors if you had other things under "OnPlayerText" (I thought you knew that, how to fix it i mean..)
pawn Код:
public OnPlayerText(playerid, text[])
{
if(!strcmp(text, "10-0", true))
{
SendClientMessageToAll(0xFF0000FF, "CAUTION");
return 0;
}
//Rest of code
//Rest of code
//Rest of code
return 1;
}