- 0
Problema LogIn
-
Similar Content
-
- 11 replies
- 339 views
-
- 3 answers
- 766 views
-
Problema turf
By Soryn.,
- 2 answers
- 212 views
-
- 1 reply
- 167 views
-
Problema
By ImJustSlim,
- 3 answers
- 279 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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/VRNRcaAsLink to comment
Share on other sites
14 answers to this question
Recommended Posts