Another question... - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Another question... (
/showthread.php?tid=182615)
Another question... -
KaleOtter - 11.10.2010
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.
Re: Another question... -
Austin - 11.10.2010
When he connects, check then, and make the necessary adjustments.
Re: Another question... -
KaleOtter - 11.10.2010
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
Re: Another question... -
Austin - 11.10.2010
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.
Re: Another question... -
KaleOtter - 11.10.2010
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
}
}
}
}
Re: Another question... -
KaleOtter - 11.10.2010
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.