08.04.2014, 16:10
I had this problem a while ago... but dont remember how i fixed it. The server is not loading the admin level for some reason and I cant figure it out . I dont think it is loading anything from the second part.
Please could someone help?
Will +rep
Thanks
Please could someone help?
Will +rep
Thanks
Код:
enum pInfo { Name[23], Password[24], Cash, Bank, PH, Level, Skin, Float:PosX, Float:PosY, Float:PosZ, Int, VW, Job, Job2, Jail, Bail, Faction, FacRank, Phone, Mats, Pot, Crack, Heroin, VIPLevel, Moderator, Admin }
Код:
stock LoadStats(playerid) { new Query[1024], Query2[1024]; format(Query, sizeof(Query), "SELECT * FROM playerdata WHERE Name = '%s'", GetName(playerid)); mysql_query(Query); mysql_store_result(); mysql_fetch_row_format(Query, "|"); sscanf(Query, "p<|>s[23]s[24]dddddfffdddddd", PlayerInfo[playerid][Name], PlayerInfo[playerid][Password], PlayerInfo[playerid][Cash], PlayerInfo[playerid][Bank], PlayerInfo[playerid][PH], PlayerInfo[playerid][Level], PlayerInfo[playerid][Skin], PlayerInfo[playerid][PosX], PlayerInfo[playerid][PosY], PlayerInfo[playerid][PosZ], PlayerInfo[playerid][Int], PlayerInfo[playerid][VW], PlayerInfo[playerid][Job], PlayerInfo[playerid][Job2], PlayerInfo[playerid][Jail], PlayerInfo[playerid][Bail]); print("Loaded"); mysql_free_result(); format(Query2, sizeof(Query2), "SELECT * FROM playerdata WHERE Name = '%s'", GetName(playerid)); mysql_query(Query2); mysql_store_result(); mysql_fetch_row_format(Query2, "|"); sscanf(Query2, "p<|>dddddddddd", PlayerInfo[playerid][Faction], PlayerInfo[playerid][FacRank], PlayerInfo[playerid][Phone], PlayerInfo[playerid][Mats], PlayerInfo[playerid][Pot], PlayerInfo[playerid][Crack], PlayerInfo[playerid][Heroin], PlayerInfo[playerid][VIPLevel], PlayerInfo[playerid][Moderator], PlayerInfo[playerid][Admin]); print("Loaded 2"); mysql_free_result(); return 1; }