/stats doesn't work... Why? please :D
#1

Okey, I just made this /stats command and i don't understand why it aint working.. but i'm sure some of you do

pawn Код:
dcmd_stats(playerid)
    {
        new pName[MAX_PLAYER_NAME],string[256];
        GetPlayerName(playerid,pName,sizeof(pName));
        format(string,sizeof(string),"EQRP/Players/%s.ini",pName);
        new Bank,Money,DriverLic,WeaponLic,Faction,AdminLVL,Skin,Jailed,Leader;
       
        Bank = dini_Int(string,"Bank");
        Money = GetPlayerMoney(playerid);
        DriverLic = dini_Int(string,"DriverLic");
        WeaponLic = dini_Int(string,"WeaponLic");
        Faction = dini_Int(string,"Faction");
        AdminLVL = dini_Int(string,"AdminLVL");
        Skin = dini_Int(string,"Skin");
        Jailed = dini_Int(string,"Jailed");
        Leader = dini_Int(string,"Leader");
       
        new string1[256], string2[256], string3[256];
        format(string1,sizeof(string1),"Bank($%s) Money($%s) DriverLic(%s)",Bank,Money,DriverLic);
        format(string2,sizeof(string2),"WeaponLic(%s) Faction(%s) AdminLVL(%s)",WeaponLic,Faction,AdminLVL);
        format(string3,sizeof(string3),"Skin(%s) Jailed(%s) Leader(%s)",Skin,Jailed,Leader);
       
        SendClientMessage(playerid,COLOR_GREEN,"__________PlayerStats__________");
        SendClientMessage(playerid,COLOR_WHITE,string1);
        SendClientMessage(playerid,COLOR_WHITE,string2);
        SendClientMessage(playerid,COLOR_WHITE,string3);
        SendClientMessage(playerid,COLOR_GREEN,"_______________________________");
        return 1;
    }
Reply


Messages In This Thread
/stats doesn't work... Why? please :D - by introzen - 10.03.2009, 09:20
Re: /stats doesn't work... Why? please :D - by ICECOLDKILLAK8 - 10.03.2009, 09:22
Re: /stats doesn't work... Why? please :D - by Dujma - 10.03.2009, 09:25
Re: /stats doesn't work... Why? please :D - by introzen - 10.03.2009, 09:28
Re: /stats doesn't work... Why? please :D - by ICECOLDKILLAK8 - 10.03.2009, 09:30
Re: /stats doesn't work... Why? please :D - by Dujma - 10.03.2009, 09:31
Re: /stats doesn't work... Why? please :D - by introzen - 10.03.2009, 09:35

Forum Jump:


Users browsing this thread: 1 Guest(s)