Raised This Month: $208 Target: $400
 52% 

Solved [FLOAT] Invalid function or declaration


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ultimatgold
Member
Join Date: Jan 2013
Location: In the Air
Old 11-19-2018 , 05:14   [FLOAT] Invalid function or declaration
Reply With Quote #1

Hi!

What is the problem?

PHP Code:
Float:operator*(Float:,_:)(Float:oper1oper2);
{
    return 
oper1 float(oper2);
}; 
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Invalid function or declaration on line 482
Error: Number of operands does not fit the operator on line 482
Error: Invalid function or declaration on line 482
Error: Too many error messages on one line on line 482

Compilation aborted.
4 Errors.
Could not locate output file E:\AMX Mod X\test.amx (compile failed).
__________________
Hungary's TOP1 server:

Last edited by ultimatgold; 11-20-2018 at 09:19.
ultimatgold is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-19-2018 , 07:54   Re: [FLOAT] Invalid function or declaration
Reply With Quote #2

Look at one of the many thousands of functions in the scripting help threads and you will quickly see what your problems are.
__________________
Bugsy is online now
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-19-2018 , 08:23   Re: [FLOAT] Invalid function or declaration
Reply With Quote #3

Actually the problem is you trying to compile a decompiled plugin.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
ultimatgold
Member
Join Date: Jan 2013
Location: In the Air
Old 11-19-2018 , 13:05   Re: [FLOAT] Invalid function or declaration
Reply With Quote #4

Decompiled plugin, no compile amxx? Why?

Quote:
Originally Posted by OciXCrom View Post
Actually the problem is you trying to compile a decompiled plugin.
__________________
Hungary's TOP1 server:

Last edited by ultimatgold; 11-19-2018 at 13:05.
ultimatgold is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 11-19-2018 , 13:30   Re: [FLOAT] Invalid function or declaration
Reply With Quote #5

Quote:
Originally Posted by ultimatgold View Post
Decompiled plugin, no compile amxx? Why?
Whatever you used to decompile the plugin decompiled it to something an amxx compiler doesn't understand. No use of what you have there without anything else.
__________________
Discord: wEight#6773

Hobbies:
- Map Designing (Any Half-Life 1 Engine Game)
- Pawn (Intermediate / Counter-Strike 1.6 only)
- C#/VB for .Net (Intermediate / Winforms)
- Java (Mostly Android Application Development)
redivcram is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-19-2018 , 15:35   Re: [FLOAT] Invalid function or declaration
Reply With Quote #6

Decompilers won't give you plugins with 100% of perfectly, that means, you'll need to remake the plugin. Besides, as you have only .amxx, probrably it is a private plugin? If it's a private plugin you cannot decompile without author's permission.
__________________
Accepting private $$$ plugins requests.

@Steam: crazy770
@Discord: CrazY.#5317

Website | Channel


Last edited by CrazY.; 11-19-2018 at 15:38.
CrazY. is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-19-2018 , 16:15   Re: [FLOAT] Invalid function or declaration
Reply With Quote #7

Quote:
Originally Posted by CrazY. View Post
Decompilers won't give you plugins with 100% of perfectly, that means, you'll need to remake the plugin. Besides, as you have only .amxx, probrably it is a private plugin? If it's a private plugin you cannot decompile without author's permission.
Actually private plugins are illegal.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-19-2018 , 16:43   Re: [FLOAT] Invalid function or declaration
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
Actually private plugins are illegal.
Depends what you understand by "private". You can sell plugins, the only restriction is that you have to provide the sma file, without charging extra for it. Also the person that buys your private plugin can then release it for free.

Quote:
Originally Posted by CrazY. View Post
If it's a private plugin you cannot decompile without author's permission.
Oh the hypocrisy. You are using reverse engineered software and telling others they have to ask for the author permission in order to do the same thing.
__________________

Last edited by HamletEagle; 11-19-2018 at 16:43.
HamletEagle is offline
ultimatgold
Member
Join Date: Jan 2013
Location: In the Air
Old 11-19-2018 , 17:03   Re: [FLOAT] Invalid function or declaration
Reply With Quote #9

How can I not make the whole plugin functional?
The guy I bought the plugin is no longer dealing with amxx. You lost your sma file. That's why we want to work again.
I have bad English knowledge! Sorry

Quote:
Originally Posted by HamletEagle View Post
Depends what you understand by "private". You can sell plugins, the only restriction is that you have to provide the sma file, without charging extra for it. Also the person that buys your private plugin can then release it for free.


Oh the hypocrisy. You are using reverse engineered software and telling others they have to ask for the author permission in order to do the same thing.
__________________
Hungary's TOP1 server:
ultimatgold is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-20-2018 , 04:20   Re: [FLOAT] Invalid function or declaration
Reply With Quote #10

You can't. Find the guy and ask for the sma.
__________________
HamletEagle is offline
Reply


Thread Tools
Display Modes

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 19:41.


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