27.05.2009, 23:46
Ok the main points are that you don't need to GetPlayerName more than once, just keep using the same one throughout.
Also, when you need to format and send 2 strings, reuse the old one. For example:
This uses 1 less string, and if you use string throughout your script you'll have a smaller list of new's and a happier server. Also when using if statements try to use curly brackets, they aid in clarity alot.
Also, when you need to format and send 2 strings, reuse the old one. For example:
pawn Код:
format(string, sizeof(string), "bob");
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "joe");
SendClientMessage(playerid, COLOR_RED, string);