Another question...
#1

Does something know were I can find a simple datum system, I explain what I mean:

My player got V.I.P Untill example 15-10-2010
I got this:
pS[Day]
pS[Month]
pS[Year]

So now i have to use the GetDate fuction. But how I can see when the date is expired our when it's still not reached?? I can check it like if(pS[Day] == Day... ect
But if the player doesn't come online that day he will get it for lifetime :P
It's alot think work to do this, and I'm not realy in the mood for that atm. So if somebody know were I can find something like this, Thanks.
Reply
#2

When he connects, check then, and make the necessary adjustments.
Reply
#3

omg... Do u know were u talking about? Please only reply if you got a option that can work.
I know I have to check it when he connects, Sir you don't have to tell me that. But now tell me how to detect it
Reply
#4

If you don't like a reply, I don't see why people should attempt to help you.

pawn Код:
if(Year > ExpYear || (Year == ExpYear && Month > ExpMonth) || (Year == ExpYear && Month == ExpMonth && Day > ExpDay))
Something like that maybe.
Reply
#5

Uhm I made this dunno if it works I'm going to try it now.
Код:
				if(pS[Vip] > 0)
				{
					if(CurrentYear >= pS[Year])
					{
					    if(CurrentMonth >= pS[Month])
					    {
					        if(CurrentDay > pS[Day])
					        {
			  					// expired
					        }
						}
					}
				}
Reply
#6

Dam man I always think to difficult lol, Thanks for that Austin. Ofcourse I want people to reply but I don't need people who doesn't even read the question careful.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)