Raised This Month: $ Target: $400
 0% 

Plugin not compiling...


  
 
 
Thread Tools Display Modes
Author Message
edeloa
Member
Join Date: Mar 2007
Location: Redwood City, Ca
Old 02-24-2008 , 17:49   Plugin not compiling...
#1

My plugin over at:
http://forums.alliedmods.net/showthread.php?t=67417

thinks it's funny by not compiling. It laughs at me. You'll get the following error:

Quote:
Plugin failed to compile! Please try contacting the author.Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/alliedmodders/forums/files/2/6/2/3/2/23947.attach(100) : error 088: number of arguments does not match definition

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/compiled3/23947.amx (compile failed).
Thing is, it compiles just fine using PawnStudio, and even compiled for a few hours yesterday using the web compiler.
I was wondering if they issue is with the web compiler?
__________________
"To be a student and not be a revolutionary is a contradiction." -Salvador Allende
edeloa is offline
Send a message via AIM to edeloa Send a message via MSN to edeloa
edeloa
Member
Join Date: Mar 2007
Location: Redwood City, Ca
Old 02-24-2008 , 17:54   Re: Plugin not compiling...
#2

I just noticed the web compiler is using AMX Mod X 1.76. AMXX 1.8 updated the get_user_weapon function so it only needs to take one argument, rather than three.

Guess I'll have to roll back my code until the compiler is updated.
__________________
"To be a student and not be a revolutionary is a contradiction." -Salvador Allende
edeloa is offline
Send a message via AIM to edeloa Send a message via MSN to edeloa
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-24-2008 , 17:58   Re: Plugin not compiling...
#3

Because of ' get_user_weapon ( index, &clip, &ammo )'.

With Amxx 1.8.x, 'clip' and 'ammo' are optionnals now.

Since the web compiler is not yet up-to-date for amxx 1.8, that's why you have this error.

Just do :

Code:
new dummy; weapID = get_user_weapon(id, dummy, dummy);

or

Code:
  #if AMXX_VERSION_NUM < 180     new dummy;     new weapID = get_user_weapon( id, dummy, dummy );   #else     new weapID = get_user_weapon( id );   #endif
__________________

Last edited by Arkshine; 02-24-2008 at 18:02.
Arkshine is offline
Roach
Writes love letters to sawce Daily
Join Date: Jul 2006
Location: Internet
Old 02-24-2008 , 18:29   Re: Plugin not compiling...
#4

Or just compile locally with the 1.80 Compiler and not worry about using the web compiler for right now. We have been a little busy squashing other bugs as of late.

Web compiler output and output on your local output are going to be the same thing, so I wouldn't worry too much.

Wanna pester someone? Bother Bailopan about it.
__________________
Quote:
Originally Posted by Brad View Post
That sounds like a really good idea!
Now replace the word "good" with "dumb".
What was your rationale for proposing such a thing?
Roach is offline
 



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 08:09.


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