Cant get to load account settings. - 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: Cant get to load account settings. (
/showthread.php?tid=274208)
Cant get to load account settings. -
cacauagiar - 05.08.2011
oka so Im making a rp gm from the beginning but i cant get to load My money from the bank any suggestions of what could it be?
Re: Cant get to load account settings. -
Krx17 - 05.08.2011
How are you saving the player files? MySql or Files? We also would need to see the script, atleast the saving/loading portion.
Re: Cant get to load account settings. -
cacauagiar - 05.08.2011
here is the whole thing please help T_T
Re: Cant get to load account settings. -
Krx17 - 05.08.2011
pawn Код:
dini_IntSet(file, "Dinheiro",PlayerInfo[playerid][pDinheiro] = SDINHEIRO);
I'm not sure but I think that sets pDinheiro to 520 AFTER you already set it in the file, I could be wrong. Break it down.
pawn Код:
PlayerInfo[playerid][pDinheiro] = SDINHEIRO;
dini_IntSet(file, "Dinheiro",PlayerInfo[playerid][pDinheiro]);
Re: Cant get to load account settings. -
cacauagiar - 05.08.2011
no ... the money loads when i join the game but the problem is the pBanco witch is the bank when i log in and try to /withdraw the money it says that i have no money because it didnt load from the file.
Re: Cant get to load account settings. -
Krx17 - 05.08.2011
Under dialog case 2, you are never load the variable Banco, which will always stay at 0.
pawn Код:
PlayerInfo[playerid][Banco] = dini_Int(file, "Banco
Add that under this line:
pawn Код:
PlayerInfo[playerid][pAdminLevel] = dini_Int(file, "AdminLevel");
//Add it here
Re: Cant get to load account settings. -
cacauagiar - 05.08.2011
heyy it worked thanks!