SA-MP Forums Archive
Register System 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 System Problem (/showthread.php?tid=500089)



Register System Problem - gotwarzone - 11.03.2014

Help me Please Here Vedio:
http://www.youtube.com/watch?v=cSnsd...ature=********* this vedio when i create account
[ame]http://www.youtube.com/watch?v=JfYy1d_GI5A[/ame] THIS Vedio when i relog


Re : Register System Problem - Clad - 11.03.2014

Show the Dialog of login pls


Re: Register System Problem - gotwarzone - 11.03.2014

case LOGIN_THREAD:
{
for(new i;i < rows;i++)
{
new
szPass[129],
szResult[129],
szBuffer[129],
szEmail[256];

cache_get_field_content(i, "Username", szResult, MainPipeline);
if(strcmp(szResult, GetPlayerNameExt(extraid), true) != 0)
{
//g_mysql_AccountAuthCheck(extraid);
return 1;
}

cache_get_field_content(i, "Email", szEmail, MainPipeline);
cache_get_field_content(i, "Pass", szResult, MainPipeline);
GetPVarString(extraid, "PassAuth", szBuffer, sizeof(szBuffer));
WP_Hash(szPass, sizeof(szPass), szBuffer);

if(isnull(szEmail)) SetPVarInt(extraid, "NullEmail", 1);

if((isnull(szPass)) || (isnull(szResult)) || (strcmp(szPass, szResult) != 0)) {
// Invalid Password - Try Again!
ShowMainMenuDialog(extraid, 3);
HideNoticeGUIFrame(extraid);
if(++gPlayerLogTries[extraid] == 2) {
SendClientMessage(extraid, COLOR_RED, "{FF8000}Error{AA3333}: Wrong password, you have been kicked out automatically.");
KickWithMessage(extraid);
}
return 1;
}
DeletePVar(extraid, "PassAuth");
break;
}
HideNoticeGUIFrame(extraid);
g_mysql_LoadAccount(extraid);
return 1;
}
case REGISTER_THREAD:
{
if(IsPlayerConnected(extraid))
{
g_mysql_AccountLoginCheck(extraid);
TotalRegister++;
}
}
that? (its Mysql Script )


Re: Register System Problem - daniscape - 11.03.2014

Umm, I had this problem before. its the missing tables in your .sql file. Btw, i reccomend you to not use ngrp scripts if you dont know how to use it. Its a bit complicated.


Re: Register System Problem - gotwarzone - 12.03.2014

Quote:
Originally Posted by daniscape
Посмотреть сообщение
Umm, I had this problem before. its the missing tables in your .sql file. Btw, i reccomend you to not use ngrp scripts if you dont know how to use it. Its a bit complicated.
can you Teach me How can i fix the Database