26.11.2014, 10:22
Hi all!
I have AP designs Roleplay gamemode. I start mode and i register for server, the mysql is Save my account. I log off , and I log in and i try write my password and dont work , its write:"incorrect password"
I think problem is:
HELP me, i dont know the problem and don't have error,warning.. :/
I have AP designs Roleplay gamemode. I start mode and i register for server, the mysql is Save my account. I log off , and I log in and i try write my password and dont work , its write:"incorrect password"
I think problem is:
Код:
case DIALOG_LOGIN: { if(!response){ SendClientMessage(playerid, COLOR_RED, "You decided to quit from the server."); Kick(playerid);} if(response) { new query[1000],escapepass[26]; mysql_real_escape_string(inputtext, escapepass); format(query, sizeof(query), "SELECT Tutorial,Level,Cash,Admin,AdminPass,AdminLogged,AdminDuty,Skin,Posx,Posy,Posz,VWorld,Interior,Age,Gender,Kicks,Banned,Bans,Muted,Faction,Rank,Job,House FROM Accounts WHERE Username = '%s' AND Password = '%s'", pName(playerid), escapepass); mysql_query(query); mysql_store_result(); if(mysql_num_rows() != 0) { if(mysql_fetch_row_format(query, "|")) { sscanf(query,"p<|>ddddddddfffdddddddddddd", PlayerInfo[playerid][Tutorial], PlayerInfo[playerid][Level], PlayerInfo[playerid][Cash], PlayerInfo[playerid][Admin], PlayerInfo[playerid][AdminPass], PlayerInfo[playerid][AdminLogged], PlayerInfo[playerid][AdminDuty], PlayerInfo[playerid][Skin], PlayerInfo[playerid][Posx], PlayerInfo[playerid][Posy], PlayerInfo[playerid][Posz], PlayerInfo[playerid][VWorld], PlayerInfo[playerid][Interior], PlayerInfo[playerid][Age], PlayerInfo[playerid][Gender], PlayerInfo[playerid][Kicks], PlayerInfo[playerid][Banned], PlayerInfo[playerid][Bans], PlayerInfo[playerid][Muted], PlayerInfo[playerid][Faction], PlayerInfo[playerid][Rank], PlayerInfo[playerid][Job], PlayerInfo[playerid][House]); } else { ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "Incorrect Password: Input your password", "Login", "Cancel"); }