Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(mysql_player_exist(playerid))
- {
- SetPVarInt(playerid, "gPlayerAccount",1);
- return true;
- }
- else
- {
- new iniFile = ini_openFile(string);
- new pregis;
- ini_getInteger(iniFile, "Registered", pregis);
- if(fexist(string)&&pregis == 1)
- {
- new query[600];
- format(query,sizeof(query),"INSERT INTO players (Name,Password) VALUES ('%s','%s')",plname,dini_Get(string,"Key"));
- mysql_query(query);
- ini_getInteger(iniFile, "Level", PlayerInfo[playerid][pLevel]);
- mysql_player_update_int(playerid,"Level",PlayerInfo[playerid][pLevel]);
- ini_getInteger(iniFile, "AdminLevel", PlayerInfo[playerid][pAdmin]);
- mysql_player_update_int(playerid,"AdminLevel",PlayerInfo[playerid][pAdmin]);
- и т.д.....
- ini_closeFile(iniFile);
- mysql_free_result();
- SetPVarInt(playerid, "gPlayerAccount",1);
- }
Advertisement
Add Comment
Please, Sign In to add comment