SA-MP Forums Archive
GMX - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GMX (/showthread.php?tid=369966)



GMX - Kitten - 18.08.2012

Solved


Re: GMX - FireCat - 18.08.2012

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?


Re: GMX - Kitten - 18.08.2012

Yes would that cause it?

pawn Код:
Solved



Re: GMX - Kyle - 18.08.2012

Do you use R7 MySQL?


Re: GMX - Kitten - 18.08.2012

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


Re: GMX - Sandiel - 18.08.2012

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


Re: GMX - iToast - 18.08.2012

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.


Re: GMX - Kitten - 18.08.2012

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.


Re: GMX - FireCat - 18.08.2012

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"


Re: GMX - Kitten - 18.08.2012

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