Quote:
Originally Posted by grand.Theft.Otto
I doubt that code is going to work and looks wrong.
Use this:
pawn Код:
new PlayerName[MAX_PLAYER_NAME]; // new variable to store the players name GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); // gets the name of PlayerName (the var we created) format(text, 1024, "%s (%d): {FFFFFF}%s", PlayerName, playerid, text); // formats the output of the message SendClientMessageToAll(GetPlayerColor(playerid), text); // sends the message to the whole server
|
You're right mine wouldn't work, I'll remember not to post as soon as I get up. (copied out of my default RP chat)