03.02.2011, 00:18
When i use the code like this, then the "Try to short down your text, Please" work (but not the code under)
If i use the colde like this:
Then the "Unknown: (0) Yoo wazzup.
work
//look under "//code under" ther is my code
i want it to work like this:
Unknown(0): Your text...
but now it is like this
Unknown: (0) Your text...
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128];
if(text[72] > 72)
{
SendClientMessage(playerid, 0xFF0000FF, "Try to short down your text, Please");
return 0;
}
//(code under)
format(string, sizeof(string), "(%d) %s", playerid, text);
SendPlayerMessageToAll(playerid, string);
return 0;
}
Then the "Unknown: (0) Yoo wazzup.
work
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128];
/*if(text[72] > 72)
{
SendClientMessage(playerid, 0xFF0000FF, "Try to short down your text, Please");
return 0;
}*/
//(code under)
format(string, sizeof(string), "(%d) %s", playerid, text);
SendPlayerMessageToAll(playerid, string);
return 0;
}
i want it to work like this:
Unknown(0): Your text...
but now it is like this
Unknown: (0) Your text...