SA-MP Forums Archive
Register/login system problem using Dini - 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: Register/login system problem using Dini (/showthread.php?tid=237335)



Register/login system problem using Dini - sim_sima - 09.03.2011

Hello guys.
I have a minor problem with my gamemode, where i made a login/register system.
It works almost perfect. Players are able to register and log in.
But the only problem is;
When a player connects to the server for first time, a dialog appears, and asks him to register.
If he closes the dialog, he will get kicked. But... The script still creates a user file for him, and just sets "Password=0".
I want it to only create the file if he registers.

Here is the script in pastebin: http://pastebin.com/LWUAjVsv
Its also attached below, if you want to download it in stead.
Its a small script, so it shouldnt take long time to read.

Hope someone would be very kind, and take a look at it. Thanks.


Re: Register/login system problem using Dini - sim_sima - 09.03.2011

I have tryed almost everything, but doesnt work...


Re: Register/login system problem using Dini - Zh3r0 - 09.03.2011

Because you set both, button 1 and button 0 to take action. So make a return, to stop it, and kick the player.

This goes on top of the dialog
pawn Код:
if ( !response ) return SendClientMessage( playerid, -1, "Kicked!" ), Kick( playerid ) ;



Re: Register/login system problem using Dini - Unknown123 - 09.03.2011

i recommend you to use "Y_ini" or "MySQL"
Dini is outdated.

Think about it :P

Ank IDK how to fix ur porblim if u still want to use dini


Re: Register/login system problem using Dini - sim_sima - 09.03.2011

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
Because you set both, button 1 and button 0 to take action. So make a return, to stop it, and kick the player.

This goes on top of the dialog
pawn Код:
if ( !response ) return SendClientMessage( playerid, -1, "Kicked!" ), Kick( playerid ) ;
Still the same problem


Re: Register/login system problem using Dini - sim_sima - 09.03.2011

Other ideas? xD


Re: Register/login system problem using Dini - sim_sima - 09.03.2011

No one else knows?


Re: Register/login system problem using Dini - Medal Of Honor team - 09.03.2011

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
Because you set both, button 1 and button 0 to take action. So make a return, to stop it, and kick the player.

This goes on top of the dialog
pawn Код:
if ( !response ) return SendClientMessage( playerid, -1, "Kicked!" ), Kick( playerid ) ;
have you understand and did the thing properly what he told? If so then you wouldn't have a problem


Re: Register/login system problem using Dini - sim_sima - 09.03.2011

I did. Maybe someone could test it out for me...


Re: Register/login system problem using Dini - sim_sima - 09.03.2011

Cus i did what he said...