Money/Score Saving.
#1

------
Reply
#2

------
Reply
#3

i think the problem is with the timer , if you update the players account time to time , you will ofcourse have bugs in Y_INI ... well you need to store the variable as his money rather than writing in file as he disconnects his file will be resaved

like on update the variable will store the current money and onplayerdisconnect it will be saved in file
Reply
#4

Try to put "GivePlayerMoney(playerid,pInfo[playerid][Money]);" on Onplayerspawn instead, And same for the score.
Reply
#5

When saving the money and score, set the values to variables first and then save them. It tends not to work unless you do so.
Reply
#6

pawn Код:
public OnPlayerSpawn(playerid)
{
    GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
    return 1;
}
Reply
#7

------
Reply
#8

------
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)