Ich habe ein kleines problem der payday funktionert nicht richti mit einen extra befehl geht es aber er kommt nicht automatisch
//
public SyncTime()
{
new string[64];
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
{
format(string, sizeof(string), "SERVER: Es ist jetzt %d:00 Uhr",tmphour);
BroadCast(COLOR_WHITE,string);
ghour = tmphour;
PayDay();
if (realtime)
{
SetWorldTime(tmphour);
if (tmphour==0) { noooc = 0; GameTextForAll("~g~0 Uhr~n~~w~Der ~r~OOC-Chat ~w~wurde geoeffnet", 5000, 5); }
else if (tmphour==6) { noooc = 1; GameTextForAll("~g~6 Uhr~n~~w~Der ~r~OOC-Chat ~w~wurde geschlossen", 5000, 5); }
}
}
}
synctimer = SetTimer("SyncUp", 60000, 1);