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

Compile error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 03-05-2023 , 02:34   Compile error
Reply With Quote #1

PHP Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// basebuilder54.sma
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(62) : error 001: expected token: "=", but found "["
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(67) : error 010: invalid function or declaration
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(72) : error 017: undefined symbol "register_command"
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(72) : warning 215: expression has no effect
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(72) : warning 215: expression has no effect
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(72) : error 001: expected token: ";", but found ")"
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(72) : error 029: invalid expression, assumed zero
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(72) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 6 Errors.
// Could not locate output file C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\compiled\basebuilder54.amx (compile failed).
//
// Compilation Time: 0,42 sec
// ----------------------------------------

Press enter to exit ... 
PHP Code:
const g_color_codes[][] =
{
    
"red""green""blue""cyan""magenta""yellow""white""black""gray",
    
"olive""purple""teal""navy""silver""maroon""lime""aqua",
    
"fuchsia""orange""brown""pink""indigo""turquoise""gold"
};

public 
plugin_init()
{
    
register_plugin("Color Changer""1.0""Your Name");
    
register_command("colors""change the color of your build""Usage: /colors [color code]"ADMIN_PLAYER"colors"true);

__________________
CS:CZ > CS 1.6

Last edited by Ace67; 03-05-2023 at 02:53.
Ace67 is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 03-05-2023 , 10:13   Re: Compile error
Reply With Quote #2

Quote:
PHP Code:
const g_color_codes[][] 
=>
PHP Code:
new const g_color_codes[][] 
+
Quote:
PHP Code:
register_command("colors""change the color of your build""Usage: /colors [color code]"ADMIN_PLAYER"colors"true); 
=>
PHP Code:
register_clcmd("/colors""colors"ADMIN_USER"change the color of your build^nUsage: /colors [color code]", -1true); 
__________________
My plugin:
Celena Luna is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 03-05-2023 , 10:56   Re: Compile error
Reply With Quote #3

Quote:
Originally Posted by Celena Luna View Post
+
PHP Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// basebuilder54.sma
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(63) : error 009: invalid array size (negative or zero)
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(67) : error 010: invalid function or declaration
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(72) : error 088: number of arguments does not match definition
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(79) : error 017: undefined symbol "ADMIN_PLAYER"
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(85) : error 017: undefined symbol "get_arg_string"
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(85) : error 088: number of arguments does not match definition
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(91) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(95) : error 017: undefined symbol "find_substring"
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(99) : error 017: undefined symbol "get_user_grenade_ent"
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(111) : error 035: argument type mismatch (argument 1)
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(112) : error 017: undefined symbol "ENTMESS_NUM"
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(112) : error 088: number of arguments does not match definition
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(114) : error 017: undefined symbol "BASEBUILDER_CHANGECOLOR"
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(114) : error 088: number of arguments does not match definition
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuilder54.sma(198) : error 021: symbol already defined: "plugin_init"
//
// 14 Errors.
// Could not locate output file C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\compiled\basebuilder54.amx (compile failed).
//
// Compilation Time: 0,47 sec
// ----------------------------------------

Press enter to exit ... 
__________________
CS:CZ > CS 1.6
Ace67 is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 03-05-2023 , 11:20   Re: Compile error
Reply With Quote #4

You didn’t copy correctly. Check again

For example, I changed ADMIN_PLAYER to ADMIN_USER but it still ADMIN_PLAYER in the log

There might be other place too but I don’t know what you change so it better for you to check it yourself

Edit: Wait… why you add 2 plugin_init? Do you know what you you doing?
__________________
My plugin:

Last edited by Celena Luna; 03-05-2023 at 11:23.
Celena Luna is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 03-05-2023 , 11:38   Re: Compile error
Reply With Quote #5

Quote:
Originally Posted by Celena Luna View Post
You didn’t copy correctly. Check again

For example, I changed ADMIN_PLAYER to ADMIN_USER but it still ADMIN_PLAYER in the log

There might be other place too but I don’t know what you change so it better for you to check it yourself

Edit: Wait… why you add 2 plugin_init? Do you know what you you doing?
Let me send you my SMA
Attached Files
File Type: sma Get Plugin or Get Source (basebuilder54.sma - 41 views - 52.6 KB)
__________________
CS:CZ > CS 1.6
Ace67 is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 03-06-2023 , 12:39   Re: Compile error
Reply With Quote #6

Can I ask where did you get the code?
I don't think it work even when create on seprate plugins since it missing a lot of variable and method
__________________
My plugin:
Celena Luna is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 03-06-2023 , 15:21   Re: Compile error
Reply With Quote #7

Quote:
Originally Posted by Celena Luna View Post
Can I ask where did you get the code?
I don't think it work even when create on seprate plugins since it missing a lot of variable and method
My friend maded it for me, He used 6.5 lines and edit for 5.4 basebuilder versio,
__________________
CS:CZ > CS 1.6
Ace67 is offline
Reply



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 18:51.


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