Raised This Month: $ Target: $400
 0% 

AMXX mysteries?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 12-02-2007 , 00:06   AMXX mysteries?
Reply With Quote #1

There are few things I'd like to understand but ...
funcwiki doesn't contain 'em, nothing on discussion boards, nothing in plugins etc.

Reserved words: assert, defined, sleep
Pre-defined constants: cellbits, cellmax, cellmin, charbits, charmax, charmin, debug
Tags: fixed (e.g. new fixed:my_fixed_variable_lol)
Not sure about what this is: operator

That's it. Anyone knows what these are?
Thank you.
__________________
alien is offline
Send a message via ICQ to alien
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 12-03-2007 , 07:25   Re: AMXX mysteries?
Reply With Quote #2

operator is, I believe, used in overriding operators for certain types.

So you can create a type (like Float) and you can provide a function so that when you add two together, it uses your function instead of just adding them.

"assert x" is a pre-compiler thing, it means "if not x, quit compiling"

defined is used in a #if expression (usually not-ed):

#if !defined charsmax
#define charsmax(%1) sizeof(%1)-1
#endif

EDIT: Did you read the PAWN Language documentation?(here)
(Or is that where you found the words? Pretty sure it explains them)

Last edited by purple_pixie; 12-03-2007 at 07:28.
purple_pixie is offline
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 12-03-2007 , 08:03   Re: AMXX mysteries?
Reply With Quote #3

I found these in syntax highlight file for Crimson editor. I did consult it with Pawn language afterwards ... but got no answer e.g. about sleep. Well I did but it doesn't work the way they describe it ...
__________________
alien is offline
Send a message via ICQ to alien
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 12-03-2007 , 08:41   Re: AMXX mysteries?
Reply With Quote #4

I wouldn't expect it to.

It is really designed for when you have slightly more control about the main process->plugin interaction than you do with HLDS.

(i.e. if you've written both)

(I assume ... nfc, to be totally honest)
purple_pixie 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 11:04.


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