20.02.2016, 15:40
Hello all i have a problemm today 
I have a City System that every week the city change!
But this is not working properly the city dont change!
This is my Clock system where the city should change!
Pleaase i need help

I have a City System that every week the city change!
But this is not working properly the city dont change!
This is my Clock system where the city should change!
Pleaase i need help
PHP код:
forward GameModeClock();
public GameModeClock()
{
new string[256],string2[128];
GameMinute ++;
if (GameMinute == 60)
{
GameMinute = 0;
GameHour ++;
SetWorldTime(GameHour);
GameWeather ++;
if (GameWeather == 3)
{
new weatherid = random(MAX_WEATHER);
SetWeather(RandomWeather[weatherid][0]);
GameWeather = 0;
}
}
if (GameHour == 24)
{
GameMinute = 0;
GameHour = 0;
GameDay ++;
}
format(string, sizeof(string), "%s",WeekDays[GameDay]);
TextDrawSetString(DaysOfWeek, string);
if (GameHour < 10)
format(string, sizeof(string), "0%d",GameHour);
else
format(string, sizeof(string), "%d",GameHour);
if (GameMinute < 10)
format(string, sizeof(string), "%s:0%d",string,GameMinute);
else
format(string, sizeof(string), "%s:%d",string,GameMinute);
TextDrawSetString(Clock, string);
if (GameHour < 10)
format(string, sizeof(string), "%s, 0%d",WeekDays[GameDay],GameHour);
else
format(string, sizeof(string), "%s, %d",WeekDays[GameDay],GameHour);
if (GameMinute < 10)
format(string, sizeof(string), "%s:0%d",string,GameMinute);
else
format(string, sizeof(string), "%s:%d",string,GameMinute);
if (GameMinute == 0)
{
format(string, sizeof(string), "%s",string);
//printf(string);
format(string2, sizeof(string2), "worldtime %s",string);
SendRconCommand(string2);
format(string, sizeof(string), "{FFFFFF}Game Time: {BDBDBD}%s",string);
SendClientMessageToAll(COLOR_SERVER_MAIN_MSG, string);
}
if(GameDay == 6 && GameHour == 23 && GameMinute == 0)
{
switch(CurentCity)
{
case LasVenturas:
{
GameTextForAll("~w~GameWeek Is Almost ~r~Over~n~Be Ready For The Next City",5000,3);
CurentCity = LosSantos;
return 1;
}
case LosSantos:
{
GameTextForAll("~w~GameWeek Is Almost ~r~Over~n~Be Ready For The Next City",5000,3);
CurentCity = SanFierro;
return 1;
}
case SanFierro:
{
GameTextForAll("~w~GameWeek Is Almost ~r~Over~n~Be Ready For The Next City",5000,3);
CurentCity = LasVenturas;
return 1;
}
}
}
if(GameDay == 6 && GameHour == 23 && GameMinute == 59)
{
switch(CurentCity)
{
case LasVenturas:
{
SendRconCommand("gmx");
GameTextForAll("~w~Server Is Changing ~b~City~n~~w~Please Wait ...",5000,3);
return 1;
}
case LosSantos:
{
SendRconCommand("gmx");
GameTextForAll("~w~Server Is Changing ~b~City~n~~w~Please Wait ...",5000,3);
return 1;
}
case SanFierro:
{
SendRconCommand("gmx");
GameTextForAll("~w~Server Is Changing ~b~City~n~~w~Please Wait ...",5000,3);
return 1;
}
}
}
return 1;
}