SA-MP Forums Archive
Lotto - 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: Lotto (/showthread.php?tid=442270)



Lotto - Akcent_Voltaj - 06.06.2013

I dont see the lotto start..how can I make it start at payday??

PHP код:
SyncTime
            
if(tmphour == 20 && tmpminute == && tmpsecond == 0)
                    {
                        
SendClientMessageToAll(COLOR_WHITE"Lottery News:  Over 5 minutes it's time the Lottery Election.");
                        
SendClientMessageToAll(COLOR_WHITE"Lottery News:  Use /lotto [number] to put a number. Good Luck !");
                    }
                    if(
tmphour == 20 && tmpminute == && tmpsecond == 0)
                    {
                        new 
rand random(80);
                           if(
rand 77) { rand += 3; }
                        
Lotto(rand);
                    } 



Re: Lotto - Akcent_Voltaj - 06.06.2013

whyplease help!


Re: Lotto - Akcent_Voltaj - 06.06.2013

bump


Re: Lotto - thefatshizms - 06.06.2013

Make sure the variables are set before using the if statement or it will never return to true.


Re: Lotto - Akcent_Voltaj - 06.06.2013

fixed!