I need help with my /stats cmd
#1

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;
}
Reply
#2

Can someone help me?
Reply
#3

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?
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)