Posts: 512
Threads: 121
Joined: Sep 2013
11.03.2014, 13:56
(
Последний раз редактировалось gotwarzone; 13.03.2014 в 06:28.
)
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
Posts: 1,241
Threads: 67
Joined: Dec 2013
Show the Dialog of login pls
Posts: 512
Threads: 121
Joined: Sep 2013
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 )
Posts: 134
Threads: 7
Joined: Feb 2013
Reputation:
0
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.
Posts: 512
Threads: 121
Joined: Sep 2013
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