Registration/Logging system wrong?
#7

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Change :
PHP код:
if(udb_hash(inputtext) == PlayerInfo[playerid][pPassword]) 
to
PHP код:
if(!strcmp((udb_hash(inputtext), PlayerInfo[playerid][pPassword]))) 
The password is a variable.

Anyways, you got that at the register dialog:
Код:
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "{FF8000}:: || Registro || ::","{FFFFFF}Tu cuenta no esta registrada, porfavor escribe una nueva contraseсa para registrarla","Register","");
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Money",0);
                INI_WriteInt(File,"Admin",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_Close(File);
As you can see these are in English, like Password, Money, etc, but when you load an account you are trying to get a value from the non-English ones. Like for example when you register money is stored in "Money", but when you load the account, you are trying to get the value from "Dinero". Same with OnPlayerDisconnect they are in English there.

EDIT: I just noticed that Dayrion already said that, but I see you got с in a word there, can it even write and read these kind of characters?
Reply


Messages In This Thread
Registration/Logging system wrong? - by MrTostada - 19.11.2016, 03:53
Re: Registration/Logging system wrong? - by Dayrion - 19.11.2016, 05:03
Re: Registration/Logging system wrong? - by itsCody - 19.11.2016, 05:24
Respuesta: Re: Registration/Logging system wrong? - by MrTostada - 19.11.2016, 15:49
Re: Registration/Logging system wrong? - by Dayrion - 19.11.2016, 17:13
Respuesta: Registration/Logging system wrong? - by MrTostada - 19.11.2016, 18:37
Re: Registration/Logging system wrong? - by GoldenLion - 19.11.2016, 19:09
Re: Registration/Logging system wrong? - by AndySedeyn - 19.11.2016, 19:18
Respuesta: Registration/Logging system wrong? - by MrTostada - 19.11.2016, 20:32

Forum Jump:


Users browsing this thread: 1 Guest(s)