04.06.2017, 06:16
They both do totally different things.
The first one, is used to format and send client message.
instead of doing all that you do
The second one is just checking few variables and prevents sending client message if player is inside menu, inside tutorial or his chatbox is off.
The first one, is used to format and send client message.
pawn Код:
new string[144];
format(string, sizeof(string), "%s %d", someStrVar, someIntVar);
SendClientMessage(playerid, color, string);
pawn Код:
SendClientMessage(playerid, color, "%s %d", someStrVar, someIntVar);
The second one is just checking few variables and prevents sending client message if player is inside menu, inside tutorial or his chatbox is off.