Register/login system problem using Dini
#1

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

I have tryed almost everything, but doesnt work...
Reply
#3

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

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

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

Other ideas? xD
Reply
#7

No one else knows?
Reply
#8

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

I did. Maybe someone could test it out for me...
Reply
#10

Cus i did what he said...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)