Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot open.mp Questions and Suggestions [Suggestion] Unsigned integers

 
  • 0 Vote(s) - 0 Average
Suggestion Unsigned integers
EvilShadeZ
Offline

Burgershot Member
Posts: 21
Threads: 5
Joined: Apr 2019
Reputation: 2
#1
2020-05-31, 12:57 PM
I have had a few times where I've been running in the signed integer limit and thought it would be beneficial to have unsigned ones.
They could have their own tag just like floating-point variables have their 'Float' tag.

If this was implemented, functions such as format would have to have their own specifiers i.e '%u' and have their own math operator implementations probably.
[Image: qPwh60X.png]
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#2
2020-05-31, 09:48 PM
afaik that's not up to them

That's PAWN limitation
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
EvilShadeZ
Offline

Burgershot Member
Posts: 21
Threads: 5
Joined: Apr 2019
Reputation: 2
#3
2020-06-01, 04:18 AM
Correct me if I'm wrong but isn't it a case that a 32 bit variable doesn't care what's stored in them and that we can already define custom tagged operators in pawn itself? And we've always been extending the language with plugins, adding new features and such.

Simply look at how float operators are defined in a_float.inc

There's these functions: floatadd, floatsub, floatmult and floatdiv. Surely similar ones could be integrated in the server package for unsigned integers.
[Image: qPwh60X.png]
Josh
Offline

Administrator

Posts: 129
Threads: 1
Joined: Feb 2019
Reputation: 20
#4
2020-06-06, 07:42 PM
(2020-05-31, 09:48 PM)Pinch Wrote: afaik that's not up to them

That's PAWN limitation

This would be true if we were still limited to SA-MP's pawn VM implementation. Now we use the updated VM from the community compiler repo.
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#5
2020-08-05, 08:32 AM
(2020-06-06, 07:42 PM)Josh Wrote:
(2020-05-31, 09:48 PM)Pinch Wrote: afaik that's not up to them

That's PAWN limitation

This would be true if we were still limited to SA-MP's pawn VM implementation. Now we use the updated VM from the community compiler repo.
That's cool!
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode