Stats. money and score wont work (please help me)
#1

Hello!

I edited "Don_pepe ( Badboy )" stats thing, added score and money.
But it wont add score and dont show money there.. even if i got any.




Here i all thing http://pastebin.com/uSE6gYPn Please help me.



(Sorry for bad english, i hope you can understand me)
Reply
#2

I'm not seeing you assigned anything to the Scores and Money variable actually
try this maybe:
pawn Код:
public StatsInfromation() {
    new str[128];
        for(new i=0;i<MAX_PLAYERS;i++)
        {
                if (IsPlayerConnected(i))
            {
                PlayerData[i][Scores] = GetPlayerScore(i);//THIS AND THE LINE BELOW
                PlayerData[i][Money] = GetPlayerMoney(i);
                format(str, sizeof(str), "~r~kills: ~w~%d  ~n~~r~deaths: ~w~%d  ~n~~r~score: ~w~%d   ~n~~g~Money: ~w~%d" , PlayerData[i][Kills], PlayerData[i][Deaths], PlayerData[i][Scores],  PlayerData[i][Money]);
                TextDrawSetString(PlayerStats[i],str);
        }
        }
        return 1;
}
Reply
#3

Thank you, works!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)