Dini account problems.
#3

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
Im not really sure but try:

pawn Код:
GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid));
Try that, btw i think i saw this code i just posted on your TUT 0.0
No, that wouldn't work and it shouldn't be the solution.

You could use an other method.
This is an example of one of my first scripts.
Do not use this, it's not configured to your script
At the begin of the script:
pawn Код:
new money[MAX_PLAYERS];
When you login:
pawn Код:
GetPlayerName(playerid, playername, sizeof(playername));

money[playerid] = dini_Int(playername, "money");
If you want to use this method, you could try this: (configured to your script)
Begin of your script:
pawn Код:
new money[MAX_PLAYERS];
When you login:
pawn Код:
money[playerid] = dini_Int(file, "money");
GivePlayerMoney(playerid, money[playerid]);
Reply


Messages In This Thread
Dini account problems. - by -Rebel Son- - 19.11.2010, 04:43
Re: Dini account problems. - by Lorenc_ - 19.11.2010, 09:54
Re: Dini account problems. - by Biesmen - 19.11.2010, 10:13

Forum Jump:


Users browsing this thread: 2 Guest(s)