What's wrong AGAIN :(
#1

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

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

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

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

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

BUMP!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)