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



Help Please - Ugaustin - 09.12.2015

PHP код:
new hour,minute,seconds;
                                        
gettime(hour,minute,seconds);
                                        if(
hour >= 16 && hour <= 20)
                                        {
                                            
SendClientMessage(iCOLOR_RED"    two points!");
                                            new 
playerexp PlayerInfo[i][pExp]; //RP
                                            
PlayerInfo[i][pExp] = playerexp 2;
                                        }
                                        else if(
hour >= 21 && hour <= 15)
                                        {
                                            
SendClientMessage(iCOLOR_RED"    one point!");
                                            
PlayerInfo[i][pExp]++;
                                        } 
how can I make so it goes non-stop ?like over night too..


Re: Help Please - Ugaustin - 09.12.2015

edit. I made mistake sorry delete this..


Re: Help Please - SickAttack - 09.12.2015

What does this exactly do, when is it used and what do you want to do (be specific)?


Re: Help Please - Ugaustin - 10.12.2015

it has to go over night too.. but it isn't it goes only from hour 16-20 and 21-15 .. and over night it dosent give rep..


Re: Help Please - PrO.GameR - 10.12.2015

How old are you ?
CHANGE THOSE 4 NUMBERS GOD DAMN IT
have you seen a clock ? or even had math at first grade ? A number can't be higher than 21 and lower than 15 at same time.
I don't even know what the hell is going on anymore, seems like less than 0.5% of sa-mp server owners are older than 10.


Re: Help Please - Ugaustin - 10.12.2015

and then what number do I put??


Re: Help Please - feedme - 10.12.2015

PHP код:
new hour,minute,seconds
                                        
gettime(hour,minute,seconds); 
                                        if(
hour >= 16 && hour <= 20
                                        { 
                                            
SendClientMessage(iCOLOR_RED"    two points!"); 
                                            new 
playerexp PlayerInfo[i][pExp]; //RP 
                                            
PlayerInfo[i][pExp] = playerexp 2
                                        } 
                                        else if((
hour >= 21 && hour <= 24) || (hour >= && hour <= 15)) 
                                        { 
                                            
SendClientMessage(iCOLOR_RED"    one point!"); 
                                            
PlayerInfo[i][pExp]++; 
                                        } 
not tested, but should work.


Re: Help Please - Sithis - 11.12.2015

Quote:
Originally Posted by PrO.GameR
Посмотреть сообщение
How old are you ?
CHANGE THOSE 4 NUMBERS GOD DAMN IT
have you seen a clock ? or even had math at first grade ? A number can't be higher than 21 and lower than 15 at same time.
I don't even know what the hell is going on anymore, seems like less than 0.5% of sa-mp server owners are older than 10.
I feel you, lol. Especially this guy isn't willing to work nor actually THINK for himself. Check his topic history and you'll find out why any help you offer him is wasted. All he cares about is 'asking questions' while expecting people to script for him.