Register System Problem
#1

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

Show the Dialog of login pls
Reply
#3

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)