Advertisement
RogerGomesCosta

Untitled

Jul 12th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. new szString[128],
  2. DBResult:ResultQuery,
  3. EnPassword[130];
  4. WP_Hash(EnPassword, sizeof(EnPassword), inputtext);
  5. format(szString, 128, "SELECT * FROM Users WHERE Nick = '%s' AND Password = '%s'", GetPlayerName(playerid), EnPassword);
  6. ResultQuery = db_query(DataBase, szString);
  7. if(db_num_rows(ResultQuery)) // Se existe o nickname e a Senha conferir...
  8. {
  9. new szResult[16];
  10. db_fetch_row_assoc(ResultQuery, "Skin", szResult, 16);
  11. PlayerInfo[playerid][pSkin] = strval(szResult);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement