SA-MP Forums Archive
What's wrong AGAIN :( - 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: What's wrong AGAIN :( (/showthread.php?tid=227279)



What's wrong AGAIN :( - sekol - 17.02.2011

So it's weird but i have next error with my register login system... It doesn't seem to load/save correctly player files with "_" (James_Jameson) It saves only password which sets by
pawn Код:
djSetInt(accname,"player/password",udb_hash(inputtext),false);
But it doesnt save variables in PlayerInfo enum...
When i create a simple player name i.e "sekol" it saves/loads everything perfectly! What's wrong? :P


Re: What's wrong AGAIN :( - (SF)Noobanatior - 17.02.2011

thats hashing the password where do you create and load the file?


Re: What's wrong AGAIN :( - legodude - 17.02.2011

the _ is not right interpretted in djson then. use the str_replace included with it
Код:
str_replace("_",""[2]");
Example(probably won't compile)


Re: What's wrong AGAIN :( - sekol - 17.02.2011

Yeah, it hashes it while registering and unhashes to check if its good while logging in... Ic an login normally with James_Jameson nick but it doesn't write/load variables... I'll show you something
Код:
{"player":{"AdminLevel":6,"Faction":1,"FactionRank":0,"FactionSkin":0,"SpawnPlace":1,"kasa":400,"password":****}}

THAT'S THE "SEKOL" PLAYER FILE
And that's the James_Jameson
Код:
{"player":{"kasa":0,"password":****}}
Maybe i should rewrite my script to work with dini?


Re: What's wrong AGAIN :( - sekol - 17.02.2011

Quote:
Originally Posted by legodude
Посмотреть сообщение
the _ is not right interpretted in djson then. use the str_replace included with it
Код:
str_replace("_",""[2]");
Example(probably won't compile)
Can you explain me where to put this?


Re: What's wrong AGAIN :( - sekol - 19.02.2011

BUMP!