- 0
Problema LogIn
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Punct.
Nick: Punct.
Problema: Cand ma loghez pe server, orice parola as introduce in dialog ma logheaza.
Erori / warnings: -
Lini/script:
[pawn]
if(strcmp(inputtext, PlayerInfo[playerid][pPassword]) == 0)
//if(!strcmp(hpass, PlayerInfo[playerid][pPassword])) //remember we have loaded player's password into this variable, PlayerInfo[playerid][pPassword] earlier. Now let's use it to compare the hashed password with password that we load
{ //if the hashed password matches with the loaded password from database
mysql_format(mysql, query, sizeof(query), "SELECT * FROM `players` WHERE `Username` = '%e' LIMIT 1", Name[playerid]);
mysql_tquery(mysql, query, "OnAccountLoad", "i", playerid);
}
else //if the hashed password didn't match with the loaded password(PlayerInfo[playerid][pPassword])
{
ShowPlayerDialog(playerid, D_Login, DIALOG_STYLE_INPUT, "Login", "Parola introdusa este incorecta.", "Login", "Kick");
}
[/pawn]
Ai incercat sa rezolvi singur ?: da..
Nu mai deschideti in pu*a mea servere de SA:MP !
Jucati-va pe cele care sunt ! Sunt suficiente !
Reguli de bun simt:
My work
:::http://pastebin.com/VRNRcaAs14 answers to this question
Recommended Posts