23.05.2009, 16:02
Quote:
|
Originally Posted by Farse
Код:
public SendPlayerFormattedText(playerid, const str[], define)
{
new tmpbuf[256];
format(tmpbuf, sizeof(tmpbuf), str, define);
SendClientMessage(playerid, 0xFF004040, tmpbuf);
}
_________________________________________________ put at the end of script ,this code: Код:
forward SendPlayerFormattedText(playerid, const str[], define);
public SendPlayerFormattedText(playerid, const str[], define)
{
new tmpbuf[256];
format(tmpbuf, sizeof(tmpbuf), str, define);
SendClientMessage(playerid, 0xFF004040, tmpbuf);
}
_________________________________________________ for new warning(warning 209: function "OnPlayerCommandText" should return a value) : Put after all commands return 0;} |
and put new cmd[256]; and cmd = strtok(cmdtext, idx); after OnPlayerCommandText(playerid,cmdtext[]){

