[Problem]How to autosave Money ( DINI ) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Problem]How to autosave Money ( DINI ) (
/showthread.php?tid=164882)
[Problem]How to autosave Money ( DUDB ) -
Hor1z0n - 02.08.2010
I made a /register and /login commands after the instructions of a Tutorial with Dini and dudb but the money don't save when i exit.Please help me!
Re: [Problem]How to autosave Money ( DINI ) -
Hor1z0n - 02.08.2010
someone?
Re: [Problem]How to autosave Money ( DINI ) -
cofy1 - 02.08.2010
can paste the commands?
Re: [Problem]How to autosave Money ( DINI ) -
GaGlets(R) - 02.08.2010
ahmm.. dini wont save on gmx/disconnect..
my experience..
Re: [Problem]How to autosave Money ( DINI ) -
cofy1 - 02.08.2010
Top of you FS or GM
pawn Код:
enum PlayerData
{
Money,
};
/register
pawn Код:
dUserSetINT(PlayerName2(playerid)).("money",0);
When login:
pawn Код:
PlayerInfo[playerid][Money] = SetPlayerMoney(playerid, dUserINT(PlayerName2(playerid)).("money"));
When Disconnect:
pawn Код:
dUserSetINT(PlayerName2(playerid)).("money",GetPlayerMoney(playerid));
Hope that helps!
Re: [Problem]How to autosave Money ( DINI ) -
Saurik - 02.08.2010
Quote:
Originally Posted by cofy1
Top of you FS or GM
pawn Код:
enum PlayerData { Money, };
/register
pawn Код:
dUserSetINT(PlayerName2(playerid)).("money",0);
When login:
pawn Код:
PlayerInfo[playerid][Money] = SetPlayerMoney(playerid, dUserINT(PlayerName2(playerid)).("money"));
When Disconnect:
pawn Код:
dUserSetINT(PlayerName2(playerid)).("money",GetPlayerMoney(playerid));
Hope that helps!
|
This helped me lol ty
Re: [Problem]How to autosave Money ( DINI ) -
Hor1z0n - 03.08.2010
error 017: undefined symbol "PlayerName2"
Please help
Re: [Problem]How to autosave Money ( DINI ) -
cofy1 - 03.08.2010
pawn Код:
new PlayerName2;
PlayerName2 = GetPlayerName(playerid);
Re: [Problem]How to autosave Money ( DINI ) -
Hor1z0n - 04.08.2010
Now i get this error
Код:
C:\Documents and Settings\user\Desktop\samp03asvr_R8_win32\gamemodes\begwar.pwn(737) : error 012: invalid function call, not a valid address
C:\Documents and Settings\user\Desktop\samp03asvr_R8_win32\gamemodes\begwar.pwn(737) : warning 215: expression has no effect
C:\Documents and Settings\user\Desktop\samp03asvr_R8_win32\gamemodes\begwar.pwn(737) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\user\Desktop\samp03asvr_R8_win32\gamemodes\begwar.pwn(737) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\Desktop\samp03asvr_R8_win32\gamemodes\begwar.pwn(737) : fatal error 107: too many error messages on one line
Line 737 :
Код:
dUserSetINT(PlayerName(playerid)).("Cash",GetPlayerMoney(playerid));
Re: [Problem]How to autosave Money ( DINI ) -
ivex - 04.08.2010
OnPlayerUpdate ... try use that for update stuff