Raised This Month: $51 Target: $400
 12% 

Does amxmodx PAWN compiler have limited feature support?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
damage220
Member
Join Date: Jul 2022
Location: Ukraine
Old 07-16-2022 , 20:52   Does amxmodx PAWN compiler have limited feature support?
Reply With Quote #1

I was looking for some kind of struct in PAWN and did use enum for a while.
PHP Code:
enum style {
    
Float:x,
    
Float:y,
    
channel,
}; 
The problem is it pollutes global namespace. In the guide for PAWN language I found so called symbolic substript (page 23) "that allow to assign specific tag names or ranges to individual array elements". It looks like this
PHP Code:
new msg[.text{40}, .priority
but the compiler gives me an error:
PHP Code:
error 029invalid expressionassumed zero 
Could someone please explain me why does this code not compile? Do we have limited feature set in compiler shipped with amxmodx?
damage220 is offline
Mistrick
Senior Member
Join Date: Aug 2012
Location: Russia
Old 07-16-2022 , 21:04   Re: Does amxmodx PAWN compiler have limited feature support?
Reply With Quote #2

AMXX has been using a fork of PAWN since around 2005 and has not been updated to the features of the latest PAWN versions.
Mistrick is offline
damage220
Member
Join Date: Jul 2022
Location: Ukraine
Old 07-16-2022 , 22:55   Re: Does amxmodx PAWN compiler have limited feature support?
Reply With Quote #3

Oh, I see. Thanks.
damage220 is offline
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 00:06.


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