13.07.2009, 09:56
Hai there...
I have found my problem already and only need some info!
I wanted to calculate the decimal value of IP-Adresses (which is 32 Bit obviously).
But PAWN wiki's and tutorials say, that all PAWN variable types use these 32 for + and - !! (32nd Bit as flag for negative)
This means i can only use 31 Bit of these variables for positive values - values bigger than 2,147,483,648 switch to negative values... So i can never get the right decimal value if it is bigger than that.![confused](images/smilies/confused.gif)
Now is there any variable type in PAWN that uses ALL its 32 Bits for positive values? Or any other suggestion?
In the end i need the decimal value of the IP-Adress as a string, to put it into a mySQL-query string...
Thx for ur time
TuNe
(littlefisheys training fun, 85.17.200.135:9800)
I have found my problem already and only need some info!
I wanted to calculate the decimal value of IP-Adresses (which is 32 Bit obviously).
But PAWN wiki's and tutorials say, that all PAWN variable types use these 32 for + and - !! (32nd Bit as flag for negative)
This means i can only use 31 Bit of these variables for positive values - values bigger than 2,147,483,648 switch to negative values... So i can never get the right decimal value if it is bigger than that.
![confused](images/smilies/confused.gif)
Now is there any variable type in PAWN that uses ALL its 32 Bits for positive values? Or any other suggestion?
In the end i need the decimal value of the IP-Adress as a string, to put it into a mySQL-query string...
Thx for ur time
TuNe
(littlefisheys training fun, 85.17.200.135:9800)