13.03.2015, 14:01
You use format in your /stats command, do the same with your textdraw.
Also, it's just a complete waste to define str, string, str2 and etc. in your /stats command, you can just use 1 like so:
Which only needs to allocate memory to 1 array.
Instead of using multiple arrays:
Quote:
format(str, sizeof(str), "Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f", GetPlayerScore(playerid), Rest of the money, kills deaths and etc. info here); Web = TextDrawCreate(485.000000, 10.000000, str); |
pawn Код:
format(str, sizeof(str), "Stuff");
SendClientMessage(playerid, -1, str);
format(str, sizeof(str), "Stuff");
SendClientMessage(playerid, -1, str);
Instead of using multiple arrays:
pawn Код:
format(str, sizeof(str), "Stuff");
format(str2, sizeof(str2), "Stuff");
SendClientMessage(playerid, -1, str);
SendClientMessage(playerid, -1, str2);