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

Solved [FLOAT] Invalid function or declaration


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ultimatgold
BANNED
Join Date: Jan 2013
Location: https://t.me/pump_upp
Old 11-19-2018 , 04: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).

Last edited by ultimatgold; 11-20-2018 at 08:19.
ultimatgold is offline
Send a message via ICQ to ultimatgold Send a message via AIM to ultimatgold Send a message via Yahoo to ultimatgold Send a message via Skype™ to ultimatgold
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-19-2018 , 06: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 offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-19-2018 , 07: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
BANNED
Join Date: Jan 2013
Location: https://t.me/pump_upp
Old 11-19-2018 , 12: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.

Last edited by ultimatgold; 11-19-2018 at 12:05.
ultimatgold is offline
Send a message via ICQ to ultimatgold Send a message via AIM to ultimatgold Send a message via Yahoo to ultimatgold Send a message via Skype™ to ultimatgold
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 11-19-2018 , 12: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.
redivcram is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-19-2018 , 14: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.
__________________









Last edited by CrazY.; 11-19-2018 at 14:38.
CrazY. is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-19-2018 , 15: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 , 15: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 15:43.
HamletEagle is offline
ultimatgold
BANNED
Join Date: Jan 2013
Location: https://t.me/pump_upp
Old 11-19-2018 , 16: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.
ultimatgold is offline
Send a message via ICQ to ultimatgold Send a message via AIM to ultimatgold Send a message via Yahoo to ultimatgold Send a message via Skype™ to ultimatgold
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-20-2018 , 03: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 15:22.


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