SA-MP Forums Archive
[HELP] expiration date - 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] expiration date (/showthread.php?tid=584227)



[HELP] expiration date - V4at - 03.08.2015

Hi, I know that this
Код:
time() + (30 * 24 * 60 * 60);
is PHP code but how to do that using pawn because I want to make date with +30 days until you can use admin or VIP..


AW: [HELP] expiration date - Kaliber - 03.08.2015

PHP код:
gettime() + (60*60*24*30



Re: AW: [HELP] expiration date - V4at - 03.08.2015

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
PHP код:
gettime() + (60*60*24*30
What to do?

pawn Код:
GetPVarInt(playerid, "VIP") = gettime() + (60*60*24*30);
Код:
error 022: must be lvalue (non-constant)
warning 215: expression has no effect



AW: [HELP] expiration date - Kaliber - 03.08.2015

To set the time...you should use Set:

PHP код:
SetPVarInt(playerid,"VIP",gettime() + (60*60*24*30));