Raised This Month: $ Target: $400
 0% 

Solved ArrayGetString problem.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-23-2020 , 15:42   Re: ArrayGetString problem.
Reply With Quote #1

Quote:
Originally Posted by Natsheh View Post
Short case scenario menu info string each cell holds 1 byte unsigned int. A value from (0 to 255)
Quote:
Originally Posted by Shadows Adi View Post
So, I need to declare variable as signed int to hold negative and positive values, isn't that?
This makes 0 sense. Each variable is 32 bits and there are no data types(so no signed/unsigned int/short whatever).
__________________
HamletEagle is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-23-2020 , 19:08   Re: ArrayGetString problem.
Reply With Quote #2

Quote:
Originally Posted by HamletEagle View Post
This makes 0 sense. Each variable is 32 bits and there are no data types(so no signed/unsigned int/short whatever).

There aren't any in pawn but surely there is in the modules c++/c#


I already tested it when you pass a single cell with a value that negative one for example in the menu_additem ,it will return in the menu handler when you retrieve the info data with menu_item_getinfo a value equals to 255.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 06-23-2020 at 19:12.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode