05.01.2019, 11:40
Код HTML:
[WARNING] mysql_connect: no password specified [ERROR] cache_get_value_name_int: no active cache
Код HTML:
forward Query_LoadCharacter(playerid); public Query_LoadCharacter(playerid) { new rows = cache_num_rows(); if(!rows) { printf("[SERVER]: No clans were loaded from the MYSQL Database."); return 0; } for (new i = 0; i < rows; i ++) { cache_get_value_name_int(i, "char_ID", CharacterInfo[i][cID]); cache_get_value_name_int(i, "char_Admin", CharacterInfo[i][cAdmin]); cache_get_value_name_int(i, "char_Skin", CharacterInfo[i][cSkin]); cache_get_value_float(i, "char_PosX", CharacterInfo[i][cPos][0]); cache_get_value_float(i, "char_PosY", CharacterInfo[i][cPos][1]); cache_get_value_float(i, "char_PosZ", CharacterInfo[i][cPos][2]); cache_get_value_float(i, "char_PosA", CharacterInfo[i][cPos][3]); cache_get_value_name_int(i, "char_Interior", CharacterInfo[i][cInterior]); cache_get_value_name_int(i, "char_VW", CharacterInfo[i][cVW]); cache_get_value_name_int(i, "char_Age", CharacterInfo[i][cAge]); cache_get_value_float(i, "char_Health", CharacterInfo[i][cHealth]); cache_get_value_float(i, "char_Armour", CharacterInfo[i][cArmour]); cache_get_value_name_int(i, "char_Money", CharacterInfo[i][cMoney]); } TogglePlayerSpectating(playerid, false); LoadCharacter(playerid); return 1; }