Dateban, checking date
#1

Well, I'm in need of some help to check if the date is overpassed with another date. The DB gives the date to be unbanned and pawn gives the current date.

So, here's the code.
PHP код:
if( (sDay == uDay && sMonth == uMonth && sYear == uYear) || ( sDay >= uDay && sMonth == uMonth && sYear == uYear) || (sMonth >= uMonth && sYear >= uYear) || (sYear uYear)  )
                        {
                            
formatquery 256 "UPDATE `recordinfo` SET `lifted`=1, `liftreason`='Ban Expirado' WHERE `cid`=%d AND `index`=%d" playerInfo[playerid][pCid] , );
                            
mysql_queryquery );
                            continue;
                        } 
I've been testing the 'if' and I put the unban date 2013/10/10 but it doesn't Kick the player.
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=254915
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)