SA-MP Forums Archive
Register Problem - 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)
+--- Thread: Register Problem (/showthread.php?tid=284684)



Register Problem - SpiderWalk - 20.09.2011

Hello everybody i want to give video about my new admin system.But register system wont to show us.None errors and i maked folder in script files and it wont show me in game what to do?Any ideas (i didnt script for a little time and i forgot something)


Re: Register Problem - Issam - 20.09.2011

Quote:
Originally Posted by SpiderWalk
Посмотреть сообщение
Hello everybody i want to give video about my new admin system.But register system wont to show us.None errors and i maked folder in script files and it wont show me in game what to do?Any ideas (i didnt script for a little time and i forgot something)
Is the registeration systeme a DIALOG?


Re: Register Problem - SpiderWalk - 20.09.2011

Yes its in dialogs


Re: Register Problem - Issam - 20.09.2011

Quote:
Originally Posted by SpiderWalk
Посмотреть сообщение
Yes its in dialogs
Is it a Filterscript or on GameMode?


Re: Register Problem - |_ⒾⓇⓄN_ⒹⓄG_| - 20.09.2011

maybe id conflits or ur dialog isn't well made
post the dialog please


Re: Register Problem - Edvin - 20.09.2011

You use SQLite, MySQL, Y_INI or what?


Re: Register Problem - SpiderWalk - 20.09.2011

Here are codes

http://pastebin.com/NMT8nRsw


Re: Register Problem - aRoach - 20.09.2011

pawn Код:
if (!dini_Exists(file))
{
    new String[128];
    format(String, sizeof (String),embed_white"Welcome "embed_green"%s"embed_white"\n\nPlease register your account:", name);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,"Register", String,"Register","Kick");
}
if(fexist(file))
{
    new String[128];
    format(String, sizeof (String),embed_white"Welcome back "embed_green"%s"embed_white"\n\nPlease login into your account:", name);
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT,"Login", String,"Login","Kick");
}
to :
pawn Код:
if (!fexist(file))
{
    new String[128];
    format(String, sizeof (String),embed_white"Welcome "embed_green"%s"embed_white"\n\nPlease register your account:", name);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,"Register", String,"Register","Kick");
}
else
{
    new String[128];
    format(String, sizeof (String),embed_white"Welcome back "embed_green"%s"embed_white"\n\nPlease login into your account:", name);
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT,"Login", String,"Login","Kick");
}



Re: Register Problem - SpiderWalk - 20.09.2011

Quote:
Originally Posted by aRoach
Посмотреть сообщение
pawn Код:
if (!dini_Exists(file))
{
    new String[128];
    format(String, sizeof (String),embed_white"Welcome "embed_green"%s"embed_white"\n\nPlease register your account:", name);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,"Register", String,"Register","Kick");
}
if(fexist(file))
{
    new String[128];
    format(String, sizeof (String),embed_white"Welcome back "embed_green"%s"embed_white"\n\nPlease login into your account:", name);
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT,"Login", String,"Login","Kick");
}
to :
pawn Код:
if (!fexist(file))
{
    new String[128];
    format(String, sizeof (String),embed_white"Welcome "embed_green"%s"embed_white"\n\nPlease register your account:", name);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,"Register", String,"Register","Kick");
}
else
{
    new String[128];
    format(String, sizeof (String),embed_white"Welcome back "embed_green"%s"embed_white"\n\nPlease login into your account:", name);
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT,"Login", String,"Login","Kick");
}
sorrry its not working


Re: Register Problem - Kingunit - 20.09.2011

By the way. Are you serious? You better use MySQL or Y_INI instead of DINI