How would i to do this?
#21

Well, we just formatted that string to include the rank name (which is dependent on what the code above it sets the "rank" variable to) so, all this code would go into your stats command. When you come to showing the player stats, just include "string" in another formatted string. Like for example, you could write a string to include some basic stats (depending on what you have in your gamemode)

Or if you just want to show the rank... just use
pawn Код:
SendClientMessage(playerid, color, string);
Example of a formatted stat string:

pawn Код:
format(string, sizeof(string), "Kills: %d    Deaths: %d    Player Rank: %s", pKills[playerid], pDeaths[playerid], pRank[playerid]);
Understand?
Reply


Messages In This Thread
How would i to do this? - by Shockey HD - 29.07.2011, 01:08
Re: How would i to do this? - by Famalamalam - 29.07.2011, 01:24
Re: How would i to do this? - by Shockey HD - 29.07.2011, 01:31
Re: How would i to do this? - by Famalamalam - 29.07.2011, 01:38
Re: How would i to do this? - by Shockey HD - 29.07.2011, 01:55
Re: How would i to do this? - by slymatt - 29.07.2011, 02:01
Re: How would i to do this? - by slymatt - 29.07.2011, 02:04
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:07
Re: How would i to do this? - by slymatt - 29.07.2011, 02:07
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:09
Re: How would i to do this? - by slymatt - 29.07.2011, 02:11
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:14
Re: How would i to do this? - by slymatt - 29.07.2011, 02:16
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:22
Re: How would i to do this? - by Shockey HD - 29.07.2011, 02:26
Re: How would i to do this? - by slymatt - 29.07.2011, 02:31
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:33
Re: How would i to do this? - by Shockey HD - 29.07.2011, 02:58
Re: How would i to do this? - by Famalamalam - 29.07.2011, 03:06
Re: How would i to do this? - by Shockey HD - 29.07.2011, 03:21
Re: How would i to do this? - by Famalamalam - 29.07.2011, 03:28
Re: How would i to do this? - by Shockey HD - 29.07.2011, 03:29
Re: How would i to do this? - by Famalamalam - 29.07.2011, 03:32
Re: How would i to do this? - by Shockey HD - 29.07.2011, 03:33

Forum Jump:


Users browsing this thread: 8 Guest(s)