user info not saving
#1

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

*bump
Reply
#3

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[])
Reply
#4

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

So forward it:

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

am new to this lol still trying to learn
Reply
#7

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

fixed the double info but now passwords dont work
Reply
#9

Y_ini doesn't like spaces in tags.

EDIT: How doesn't the password work?
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)