if(dialogid == dialoglogin)
{
if(!response) return Kick(playerid);
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, dialoglogin, DIALOG_STYLE_INPUT, "Greetings!", "{FFFFFF}Welcome.\nPlease login to play.", "Login", "Disconnect");
new userFile[13 + MAX_PLAYER_NAME +1], buffer[129];
format(userFile,sizeof(userFile), rootdir-, PlayerName(playerid));
if(WP_Hash(buffer, sizeof(buffer), inputtext) == INI_String(userFile, "Password")) return OnPlayerLogin(playerid);
else if(!WP_Hash(buffer, sizeof(buffer), inputtext) != INI_String(userFile, "Password"))
{
SendClientMessage(playerid, white, "{AA3333}Wrong password! {FFFFFF}If this is not your account, please disconnect.");
ShowPlayerDialog(playerid, dialoglogin, DIALOG_STYLE_INPUT, "Greetings!", "{FFFFFF}Welcome.{FFFFFF}.\nPlease login to play.", "Login", "Disconnect");
}
}
C:\samp03csvr_R2-2_win32\gamemodes\xs3.pwn(650) : error 017: undefined symbol "INI_String" C:\samp03csvr_R2-2_win32\gamemodes\xs3.pwn(651) : error 017: undefined symbol "INI_String" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
new PlayerPass[129];
WP_Hash(buffer, sizeof(buffer), inputtext);
PlayerPass = INI_String(userFile, "Password");
if(!strcmp(buffer, PlayerPass, true))
{
//Password is correct
}
else
{
//Password is wrong
}
if(dialogid == dialoglogin)
{
if(!response) return Kick(playerid);
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, dialoglogin, DIALOG_STYLE_INPUT, "Greetings!", "{FFFFFF}Welcome.\nPlease login to play.", "Login", "Disconnect");
new userFile[13 + MAX_PLAYER_NAME +1], buffer[129], PlayerPass[129+1];
format(userFile,sizeof(userFile), rootdir-, PlayerName(playerid));
WP_Hash(buffer, sizeof(buffer), inputtext);
PlayerPass[129] = INI_String(userFile, "password");
if(!strcmp(buffer, PlayerPass, true)) return OnPlayerLogin(playerid);
else if (!strcmp(buffer, PlayerPass, false))
{
SendClientMessage(playerid, white, "{AA3333}Wrong password! {FFFFFF}If this is not your account, please disconnect.");
ShowPlayerDialog(playerid, dialoglogin, DIALOG_STYLE_INPUT, "Greetings!", "{FFFFFF}Welcome.\nPlease login to play.", "Login", "Disconnect");
}
}
C:\samp03csvr_R2-2_win32\gamemodes\xs3.pwn(651) : error 017: undefined symbol "INI_String" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |