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

a lot of question [ Must See lol ]


Post New Thread Reply   
 
Thread Tools Display Modes
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 04-26-2015 , 11:27   Re: a lot of question [ Must See lol ]
Reply With Quote #11

Quote:
Question Number 14 ( about #emit ... ):
Forget about it. It's useless for 99.99% of plugins. This directive is connected to the assembly. Can't remember exactly though. But there are no tutorials about it in AMXX (only in SA-MP). I only rememvber this has something to do with registers.

Quote:
#assert
This checks if constant expression is true and if not halts the compile.

This is ok:
Code:
#define SOMETHING 10
#assert SOMETHING > 5
This is not:
Code:
#define SOMETHING 1
#assert SOMETHING > 5
Before asking, try searching or at least reading Pawn Language Guide - it has explanations about preprocessor directives.
__________________


Last edited by NiHiLaNTh; 04-26-2015 at 11:31.
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 04-26-2015 , 13:24   Re: a lot of question [ Must See lol ]
Reply With Quote #12

Quote:
Originally Posted by NiHiLaNTh View Post
Forget about it. It's useless for 99.99% of plugins. This directive is connected to the assembly. Can't remember exactly though. But there are no tutorials about it in AMXX (only in SA-MP). I only rememvber this has something to do with registers.


This checks if constant expression is true and if not halts the compile.

This is ok:
Code:
#define SOMETHING 10
#assert SOMETHING > 5
This is not:
Code:
#define SOMETHING 1
#assert SOMETHING > 5
Before asking, try searching or at least reading Pawn Language Guide - it has explanations about preprocessor directives.
Alright thanks , reading Pawn Language Guide is so bored ... , i've search but i didn't found an exact answer for what i want !
thanks anyway !
Freezo Begin is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-26-2015 , 13:33   Re: a lot of question [ Must See lol ]
Reply With Quote #13

It would probably be easier to read tutorials by other forum members since it will be in a more user friendly and AMX-X oriented relevance.
__________________
Bugsy is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-26-2015 , 13:37   Re: a lot of question [ Must See lol ]
Reply With Quote #14

Quote:
Originally Posted by Bugsy View Post
It would probably be easier to read tutorials by other forum members since it will be in a more user friendly and AMX-X oriented relevance.
And download like 1,000 Approved Plug-ins, read them all and try to understand what they do.
Question #6 - Because there is less code to execute rather format.
__________________

Last edited by claudiuhks; 04-26-2015 at 13:39.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 04-26-2015 , 13:55   Re: a lot of question [ Must See lol ]
Reply With Quote #15

Quote:
Originally Posted by Bugsy View Post
It would probably be easier to read tutorials by other forum members since it will be in a more user friendly and AMX-X oriented relevance.
Oke , this questions you will not found it in a tuto ( Some of it ) because its a simple and small things it will be found just in scripts ...

Quote:
Originally Posted by claudiuhks View Post
And download like 1,000 Approved Plug-ins, read them all and try to understand what they do.
Question #6 - Because there is less code to execute rather format.
lol yea this would be easier , thanks .
Freezo Begin is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-26-2015 , 14:02   Re: a lot of question [ Must See lol ]
Reply With Quote #16

Is there anything above that has not been answered?
__________________
Bugsy is offline
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 04-26-2015 , 14:06   Re: a lot of question [ Must See lol ]
Reply With Quote #17

Quote:
Originally Posted by Bugsy View Post
Is there anything above that has not been answered?
12 .
Freezo Begin is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-26-2015 , 14:25   Re: a lot of question [ Must See lol ]
Reply With Quote #18

From sourcepawn guide: static function = The scope of this function is restricted to the current file, can be used in combination with stock.

https://wiki.alliedmods.net/Introduc...wn#Functions_2

Stock means the function will only be compiled into the binary (.amxx file) if the function is used/called in the code.
__________________

Last edited by Bugsy; 04-26-2015 at 14:27.
Bugsy is offline
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 04-26-2015 , 14:40   Re: a lot of question [ Must See lol ]
Reply With Quote #19

Alright thanks a lot , also thanks for the wiki !
Freezo Begin is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-26-2015 , 14:52   Re: a lot of question [ Must See lol ]
Reply With Quote #20

I would not resort to that wiki for amxmodx.
__________________
Bugsy 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 21:32.


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