SA-MP Forums Archive
I need help with my /stats cmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I need help with my /stats cmd (/showthread.php?tid=498615)



I need help with my /stats cmd - JackieJ - 04.03.2014

Hi im working with /stats command but i got one problem when i do /stats in game, it wont show me
how many score+cash i have IG.

Please give me a tips, it would be very helpful .

Код HTML:
{
   new str[128];
   format(str,sizeof(str),"Kills : %d\nScore: %s\nVipLevel: %d\nAdminLevel: %d",PlayerInfo[playerid][Kills],PlayerInfo[playerid][Score],PlayerInfo[playerid][VipLevel],PlayerInfo[playerid][AdminLevel]);
   SendClientMessage(playerid,COLOR,str);
   return 1;
}



Re: I need help with my /stats cmd - JackieJ - 04.03.2014

Can someone help me?


Re: I need help with my /stats cmd - BKarner - 04.03.2014

You haven't got it to show the cash. Can you please copy the message that comes out in game and what you want that message to be please?


Re: I need help with my /stats cmd - HK - 04.03.2014

pawn Код:
{
   new str[128];
   new admin = PlayerInfo[playerid][AdminLevel];
    new vip = PlayerInfo[playerid][VipLevel];
    new score = GetPlayerScore(playerid);
    new kills = PlayerInfo[playerid][Kills];
   format(str,sizeof(str),"Kills : %d\nScore: %d\nVipLevel: %d\nAdminLevel: %d",kills,score,vip,admin);
   SendClientMessage(playerid,COLOR,str);
   return 1;
}
There you go