У меня возникла ошибка при загрузке GangZone. При запуске сервера, 1 gz не показывается, после /rcon gmx она показывается, в чем проблема ?
PHP код:
public LoadGangZone()
{
new fields;
cache_get_data(TotalGangZones, fields);
new time = GetTickCount();
for(new i = 0; i != sizeof(GZInfo); i++)
{
GZInfo[i][gCoords][0] = cache_get_field_content_float(i, "X", dbHandle);
GZInfo[i][gCoords][1] = cache_get_field_content_float(i, "Y", dbHandle);
GZInfo[i][gCoords][2] = cache_get_field_content_float(i, "XX", dbHandle);
GZInfo[i][gCoords][3] = cache_get_field_content_float(i , "YY", dbHandle);
GZInfo[i][gMemberZone] = cache_get_field_content_int(i, "Member", dbHandle);
GZInfo[i][gID] = GangZoneCreate(GZInfo[i][gCoords][0],GZInfo[i][gCoords][1],GZInfo[i][gCoords][2],GZInfo[i][gCoords][3]);
GangZoneShowForAll(GZInfo[i][gID], GetGangZoneColor(i));
}
return printf("\nТерриторий загружено %i. [Длительность загрузки: %d ms]", TotalGangZones, GetTickCount() - time);
}
Территорий загружено 104. [Длительность загрузки: 187 ms]
[12:12:39] RCON (In-Game): Player [NAME] sent command: gmx
[12:12:51]
[12:12:51]
[12:12:51]
[12:12:51] =======================================
[12:12:51] | |
[12:12:51] | YSI version 3.09.0684 |
[12:12:51] | By Alex "Y_Less" Cole |
[12:12:51] | |
[12:12:51] =======================================
[12:12:51]
[12:12:51] Number of vehicle models: 14
[12:12:51]
Территорий загружено 104. [Длительность загрузки: 178 ms]