Raised This Month: $ Target: $400
 0% 

Error in AMX MOD X: Static variable is not a static!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-15-2021 , 06:23   Re: Error in AMX MOD X: Static variable is not a static!
Reply With Quote #4

Why are you pre incrementing the variable i.

I can't remember if the 0 id is being Skipped but other than that everything seems fine.

Also luna declaration of a static variable with a starting constant value is valid.


So this is valid!

PHP Code:
static pluginid = -1

Also for the OP Try using server_print instead of log_amx and see if the thing is outputted, but make sure to call the function more than once.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 10-15-2021 at 06:34.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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:31.


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