16.03.2013, 22:38
Quote:
@Realcop - I added your RankName stock instead of mine, and replaced your OnPlayerText with mine, but my compiler crashed.
I put back my original stock, and only added your OnPlayerText, and i only got 1 warning. pawn Код:
pawn Код:
|
pawn Код:
public OnPlayerText(playerid, text[]) //In the callback header here
{
SetPlayerChatBubble(playerid, text, C_WHITE, 100.0, 10000);
new
text[128], //And you're also defining it here, how will the compiler know which one from which?
string[128]
;
format(string, sizeof(string), "** %s %s [%d]: %s", RankName(playerid), Name(playerid), playerid, text);
SendClientMessageToAll(C_WHITE, string);
return 0;
}
pawn Код:
public OnPlayerText(playerid, text[]) //In the callback header here
{
SetPlayerChatBubble(playerid, text, C_WHITE, 100.0, 10000);
new
string[128]
;
format(string, sizeof(string), "** %s %s [%d]: %s", RankName(playerid), Name(playerid), playerid, text);
SendClientMessageToAll(C_WHITE, string);
return 0;
}