04.06.2015, 13:54
Приветствую всех!
Очень странная проблема, после рестарта не показывает зоны, но если пере зайти в игру их покажет...
В OnGameModeInit:
OnPlayerConnect:
Логи:
Но если пере зайти будет все окей, почему так?
Заранее спасибо!
Очень странная проблема, после рестарта не показывает зоны, но если пере зайти в игру их покажет...
PHP код:
else if(strcmp(cmd, "/gmx", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 11)
{
for(new q; q < 10; q++)
{
SendClientMessage(playerid,COLOR_WHITE," ");
}
SendClientMessageToAll(COLOR_YELLOW2,"{ffcc00}Обрати внимание! {1e90ff}В данный момент происходит рестарт сервера, это займет менее 8 секунд");
SendClientMessageToAll(COLOR_YELLOW2,"{00FF00}Администрация Ultra приносит извинения, за предоставленные неудобства.");
GameTextForAll("~r~SERVER RESTARTING", 9000, 5);
GameModeExitFunc();
}
return true;
}
PHP код:
stock GameModeExitFunc()
{
KillTimer(reklamatimer);
KillTimer(synctimer);
KillTimer(TT);
KillTimer(TUPDATET);
KillTimer(pickuptimer);
SaveGZ();
SaveCop();
OnPropUpdate();
SaveAccounts();
save_materials_frac();
save_bank_mafia();
save_bank_fractions();
SaveHomeSbizz();
GameModeExit();
return true;
}
PHP код:
public OnGameModeExit()
{
DestroyPickup(EnterPick);
DestroyPickup(ExitPick);
DestroyPickup(HealPick);
DestroyPickup(InfoPick);
KillTimer(casetimer);
mysql_close(connect_to_sql);
return 1;
}
PHP код:
connect_to_sql = mysql_connect(SQL_CONNECT_INFO);
mysql_log(LOG_ALL);
load_gang_zone();
load_bank_mafia();
load_bank_fractions();
load_materials_fraction();
PHP код:
stock load_gang_zone() return mysql_function_query(connect_to_sql, "SELECT * FROM `"TABLE_GANG_ZONE_BAND"`", true, "callback_load_gang_zone_band", "");
PHP код:
forward callback_load_gang_zone_band();
public callback_load_gang_zone_band()
{
new
rows,
fields,
time_load_gang_zone_band = GetTickCount();
cache_get_data(rows, fields);
if(!rows) return print("[Загрузка ганг зон банд]: В базе данных не найдено записей!");
else if(rows != sizeof(GZInfo)) return printf("[Загрузка ганг зон банд]: Массив GZInfo(%d) не равен количеству записей в базе данных (%d)", sizeof(GZInfo), rows);
for(new iterator_load_gz = 0; iterator_load_gz != rows; iterator_load_gz ++)
{
GZInfo[iterator_load_gz][gCoords][0] = cache_get_field_content_float(iterator_load_gz, "coordinates_west_side_gangzone");
GZInfo[iterator_load_gz][gCoords][1] = cache_get_field_content_float(iterator_load_gz, "coordinates_south_side_gangzone");
GZInfo[iterator_load_gz][gCoords][2] = cache_get_field_content_float(iterator_load_gz, "coordinates_east_side_gangzone");
GZInfo[iterator_load_gz][gCoords][3] = cache_get_field_content_float(iterator_load_gz , "coordinates_north_side_gangzone");
GZInfo[iterator_load_gz][gFrakVlad] = cache_get_field_content_int(iterator_load_gz, "id_band");
GZInfo[iterator_load_gz][gID] = GangZoneCreate(GZInfo[iterator_load_gz][gCoords][0],GZInfo[iterator_load_gz][gCoords][1],GZInfo[iterator_load_gz][gCoords][2],GZInfo[iterator_load_gz][gCoords][3]);
printf("GZInfo[iterator_load_gz][gID]: %d", GZInfo[iterator_load_gz][gID]);
}
return printf("[Загрузка ганг зон банд]: Успешная загрузка ганг зон - загружено %d ганг зон за %d м.с", rows, GetTickCount() - time_load_gang_zone_band);
}
PHP код:
for(new i = 0, sizeof_array_GZ_info = sizeof(GZInfo); i != sizeof_array_GZ_info; i ++)
{
printf("GangZoneShowForPlayer(%d, %d, %d)", playerid, GZInfo[i][gID], GetGangZoneColor(GZInfo[i][gFrakVlad]));
GangZoneShowForPlayer(playerid, GZInfo[i][gID], GetGangZoneColor(GZInfo[i][gFrakVlad]));
}
PHP код:
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
[16:44:36] GangZoneShowForPlayer(0, 0, -16843094)
Заранее спасибо!


