SA-MP Forums Archive
Function to detect if a number is Natural or not - 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: Function to detect if a number is Natural or not (/showthread.php?tid=597619)



Function to detect if a number is Natural or not - NeTSk8 - 02.01.2016

Is there any function to detect if a number is natural or not? Because I want to do an individual player saving stats system that can also work with a tax pay system. My idea was with a timer increment player variables and check if it is divisible with 360 (6 minutes), if there is a better way in doing that more efficiently I would like to know.
Thanks.