#1

Solved
Reply
#2

Quote:
Originally Posted by Kitten
Посмотреть сообщение
Hello i've searched most of the forum to find whats the problem but i've tried creating a auto restart creator for each 5 hours everything else is fine expect the command

SendRconCommand("gmx"); i've also tried changemode gamemode name that didn't help it either the problem is that it says Server is restarting it does not restart it just gets stuck at that text until that player disconnects and the sever restarts remotely.
Some kind of loop that you have under OnGameModeExit?
Reply
#3

Yes would that cause it?

pawn Код:
Solved
Reply
#4

Do you use R7 MySQL?
Reply
#5

I used to use MySQL few days ago i've converted into y_ini
Reply
#6

So, you get no compiling errors, but the command exists, yet it doesn't execute a gmx, am I correct?
Reply
#7

Set a timer to call a function that contains the restart code. the timer is only to fire every 5 hours so use this as its delay: 18000000

That's five hours in milliseconds.
Reply
#8

iToast i've already got that just when it restarts it gets stuck at restarting the server console is still up but server just like freezes.
Reply
#9

Try this:
pawn Код:
print("STARTED");
for(new i; i < MAX_PLAYERS; i ++)
    {
        TextDrawHideForAll(Logo[i]);
        TextDrawDestroy(Logo[i]);
        TextDrawHideForAll(Logo2[i]);
        TextDrawDestroy(Logo2[i]);
        TextDrawHideForAll(Infected[i]);
        TextDrawDestroy(Infected[i]);
        TextDrawHideForAll(PlayerXP[i]);
        TextDrawDestroy(PlayerXP[i]);
        Delete3DTextLabel(viptag[i]);
        DeletePlayer3DTextLabel(i, spawnmessage[i]);
        for(new bi=0; i<MAX_PLAYER_ATTACHED_OBJECTS; bi++) {
            if(IsPlayerAttachedObjectSlotUsed(i, bi)) RemovePlayerAttachedObject(i, bi);
        }
    }
print("FINISHED");
ґ

And tell me if it prints the "FINISHED"
Reply
#10

Does not print finished the loop is blocking from finishing the restart.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)