Guest User

Untitled

a guest
Jan 20th, 2013
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. if(mysql_player_exist(playerid))
  2. {
  3. SetPVarInt(playerid, "gPlayerAccount",1);
  4. return true;
  5. }
  6. else
  7. {
  8. new iniFile = ini_openFile(string);
  9. new pregis;
  10. ini_getInteger(iniFile, "Registered", pregis);
  11. if(fexist(string)&&pregis == 1)
  12. {
  13. new query[600];
  14. format(query,sizeof(query),"INSERT INTO players (Name,Password) VALUES ('%s','%s')",plname,dini_Get(string,"Key"));
  15. mysql_query(query);
  16. ini_getInteger(iniFile, "Level", PlayerInfo[playerid][pLevel]);
  17. mysql_player_update_int(playerid,"Level",PlayerInfo[playerid][pLevel]);
  18. ini_getInteger(iniFile, "AdminLevel", PlayerInfo[playerid][pAdmin]);
  19. mysql_player_update_int(playerid,"AdminLevel",PlayerInfo[playerid][pAdmin]);
  20. и т.д.....
  21. ini_closeFile(iniFile);
  22. mysql_free_result();
  23. SetPVarInt(playerid, "gPlayerAccount",1);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment