Long Integer - 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: Long Integer (
/showthread.php?tid=352695)
Long Integer -
Cody_Maverak - 20.06.2012
Hi again,
In C#, I am able to do
long code;. I need the same datatype in PAWNO but I can't find it. Any help would be appreciated.
Cody_Maverak
Re: Long Integer -
iggy1 - 20.06.2012
You can only have 32bit integers in PAWN.
Re: Long Integer -
Cody_Maverak - 20.06.2012
But isn't long a 32bit integer that can store larger numbers?
Re: Long Integer -
iggy1 - 20.06.2012
Just a signed integer -2147483648 through 2147483647. You cannot store values lower/larger than that.
EDIT:
Quote:
Originally Posted by Cody_Maverak
But isn't long a 32bit integer that can store larger numbers?
|
Yes it seems it is, i thought it was larger. But the above values are MAX for PAWN.
Re: Long Integer -
Cody_Maverak - 20.06.2012
Thank you...i didn't know pawn had restrictions on these things.
Oh well