Cant get to load account settings.
#1

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?
Reply
#2

How are you saving the player files? MySql or Files? We also would need to see the script, atleast the saving/loading portion.
Reply
#3

here is the whole thing please help T_T
Reply
#4

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]);
Reply
#5

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.
Reply
#6

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
Reply
#7

heyy it worked thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)