[HELP] Can't figure it out!
#2

You use format in your /stats command, do the same with your textdraw.
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);

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:
pawn Код:
format(str, sizeof(str), "Stuff");
SendClientMessage(playerid, -1, str);
format(str, sizeof(str), "Stuff");
SendClientMessage(playerid, -1, str);
Which only needs to allocate memory to 1 array.
Instead of using multiple arrays:
pawn Код:
format(str, sizeof(str), "Stuff");
format(str2, sizeof(str2), "Stuff");
SendClientMessage(playerid, -1, str);
SendClientMessage(playerid, -1, str2);
Reply


Messages In This Thread
[HELP] Can't figure it out! - by Fantje - 13.03.2015, 13:50
Re: [HELP] Can't figure it out! - by CalvinC - 13.03.2015, 14:01
Re: [HELP] Can't figure it out! - by Fantje - 13.03.2015, 14:02
Re: [HELP] Can't figure it out! - by CalvinC - 13.03.2015, 14:10
Re: [HELP] Can't figure it out! - by Fantje - 13.03.2015, 14:13
Re: [HELP] Can't figure it out! - by CalvinC - 13.03.2015, 14:19
Re: [HELP] Can't figure it out! - by Fantje - 13.03.2015, 14:22
Re: [HELP] Can't figure it out! - by CalvinC - 13.03.2015, 14:31
Re: [HELP] Can't figure it out! - by Fantje - 13.03.2015, 14:32
Re: [HELP] Can't figure it out! - by Fantje - 13.03.2015, 14:43

Forum Jump:


Users browsing this thread: 3 Guest(s)