AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved [FLOAT] Invalid function or declaration (https://forums.alliedmods.net/showthread.php?t=312170)

ultimatgold 11-19-2018 04:14

[FLOAT] Invalid function or declaration
 
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).


Bugsy 11-19-2018 06:54

Re: [FLOAT] Invalid function or declaration
 
Look at one of the many thousands of functions in the scripting help threads and you will quickly see what your problems are.

OciXCrom 11-19-2018 07:23

Re: [FLOAT] Invalid function or declaration
 
Actually the problem is you trying to compile a decompiled plugin.

ultimatgold 11-19-2018 12:05

Re: [FLOAT] Invalid function or declaration
 
Decompiled plugin, no compile amxx? Why?

Quote:

Originally Posted by OciXCrom (Post 2624727)
Actually the problem is you trying to compile a decompiled plugin.


redivcram 11-19-2018 12:30

Re: [FLOAT] Invalid function or declaration
 
Quote:

Originally Posted by ultimatgold (Post 2624752)
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.

CrazY. 11-19-2018 14:35

Re: [FLOAT] Invalid function or declaration
 
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.

OciXCrom 11-19-2018 15:15

Re: [FLOAT] Invalid function or declaration
 
Quote:

Originally Posted by CrazY. (Post 2624784)
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.

HamletEagle 11-19-2018 15:43

Re: [FLOAT] Invalid function or declaration
 
Quote:

Originally Posted by OciXCrom (Post 2624796)
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. (Post 2624784)
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.

ultimatgold 11-19-2018 16:03

Re: [FLOAT] Invalid function or declaration
 
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 (Post 2624798)
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.


HamletEagle 11-20-2018 03:20

Re: [FLOAT] Invalid function or declaration
 
You can't. Find the guy and ask for the sma.


All times are GMT -4. The time now is 18:55.

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