SA-MP Forums Archive
user info not saving - 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)
+--- Thread: user info not saving (/showthread.php?tid=442974)



user info not saving - semaj - 09.06.2013

Hello Folks.

A have added Fbadmin into my GM but its dose'nt seem to save user info just seems to repeat the info and reset values in the user ini file

http://pastebin.com/9ggEfdqX

Can any help in this matter?


Re: user info not saving - semaj - 09.06.2013

*bump


Re: user info not saving - Aly - 09.06.2013

Well you've setted two different tags:
(This one from register)
pawn Код:
INI_SetTag(file,"Player's Data");
and(This one is from onplayerdisconnect)
pawn Код:
INI_SetTag(file,"Player Data");
Does the accounts load?

Try like this:
Replace
pawn Код:
INI_SetTag(file,"Player's Data");
and
pawn Код:
INI_SetTag(file,"Player Data");
with
pawn Код:
INI_SetTag(file,"Data");
Replace
pawn Код:
public loadaccount_user(playerid, name[], value[])
with
pawn Код:
public loadaccount_Data(playerid, name[], value[])



Re: user info not saving - semaj - 09.06.2013

i get this error
C:\Documents and Settings\james\Desktop\Titanium Roleplay GM\Copy of Titanium Roleplay with login\titanium.pwn(282) : warning 235: public function lacks forward declaration (symbol "loadaccount_Data")

and yes my account loads just can set my account as admin as the data do update right


Re: user info not saving - DobbysGamertag - 09.06.2013

So forward it:

pawn Код:
forward loadaccount_Data(playerid, name[], value[]);



Re: user info not saving - semaj - 09.06.2013

am new to this lol still trying to learn


Re: user info not saving - semaj - 09.06.2013

[Player's Data]
Password = 1CB849677BBDBA89154AC52DE02D9B62D08CBB5FA8C05C805A A801948C819B5D9A1518EB5EB9A42E7FDD7D6EE979AAA86C88 0A2CE4B6422A888E883EC3111E4
AdminLevel = 0
VIPLevel = 0
Money = 0
Scores = 0
Kills = 0
Deaths = 0
Warnings = 0
[Player Data]
AdminLevel = 0
VIPLevel = 0
Money = 0
Scores = 0
Kills = 0
Deaths = 0
Warnings = 0

Still getting more than one return on the data


Re: user info not saving - semaj - 09.06.2013

fixed the double info but now passwords dont work


Re: user info not saving - gtakillerIV - 09.06.2013

Y_ini doesn't like spaces in tags.

EDIT: How doesn't the password work?


Re: user info not saving - FunnyBear - 09.06.2013

Hello semaj,

I have read your thread and I understand that you have a problem with my filterscript. can you please explain the problem in more depth, because before I released it, I had noticed no problems at all. Or maybe you should keep the Admin system as a filterscript.