who can help me please
#2

Hey man, there's probably a better way to do it but I think this should work, assuming that the function works but shows numbers instead of the word.

Код:
public StatsShow(playerid,targedid) 
{ 

new a = PlayerInfo[playerid][Pass]; 
new b = PlayerInfo[playerid][Cash]; 
new c = PlayerInfo[playerid][Admin]; 
new d = PlayerInfo[playerid][Kills]; 
new e = PlayerInfo[playerid][Deaths]; 
new f = PlayerInfo[playerid][Xp]; 
new g = PlayerInfo[playerid][Infect]; 
new h = PlayerInfo[playerid][Rank]; 
new i = PlayerInfo[playerid][Mute]; 

new pName[MAX_PLAYER_NAME]; 
GetPlayerName(targedid, pName, sizeof(pName)); 

new message[128]; 
new message2[128]; 
new message3[128]; 
new message4[128];
format (message, sizeof(message), "Player:%s || Password:%i || Cash:%i",pName, a , b ); 
format (message2, sizeof(message2), "Admin Level:%i || Kills:%i || Deaths:%i",c, d , e ); 
if(h == 1)
{
format (message3, sizeof(message3), "XP Points:%i || Infected:%i || Rank:Soldier",f, g );
}
else if(h == 2)
{
format (message3, sizeof(message3), "XP Points:%i || Infected:%i || Rank:General",f, g );
}
else if(h == 3)
{
format (message3, sizeof(message3), "XP Points:%i || Infected:%i || Rank:Marshall",f, g ); 
}
format (message4, sizeof(message4), "Muted:%i",i );
SendClientMessage(playerid, white, "Player Stats"); 
SendClientMessage(playerid, aqua, message); 
SendClientMessage(playerid, aqua, message2); 
SendClientMessage(playerid, aqua, message3); 
SendClientMessage(playerid, aqua, message4); 
return 1;
}
Hope it works for you, good luck.
Reply


Messages In This Thread
who can help me please - by rumen98 - 05.09.2012, 18:34
Re: who can help me please - by [FAT]Klabauter[LST] - 06.09.2012, 05:05

Forum Jump:


Users browsing this thread: 2 Guest(s)