Raised This Month: $ Target: $400
 0% 

ZE|Error function


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DreNK
Junior Member
Join Date: Sep 2019
Location: Romania
Old 12-29-2021 , 14:08   ZE|Error function
Reply With Quote #1

Hello there, i am disperate of this few plugins, i tried everything i knew to fix them.
I had error with reavi, fixed.
Now when it finally reads the plugins, i get others.
I am using amxmodx 1.9.0 linux

[AMXX] Plugin "ze_fire.amxx" failed to load: Plugin uses an unknown function (name "amx_save_setting_string") - check your modules.ini.
[AMXX] Plugin "ze_frost.amxx" failed to load: Plugin uses an unknown function (name "cs_set_player_weap_model") - check your modules.ini.
[AMXX] Plugin "ze_extra_frost_nade.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
[AMXX] Plugin "ze_extra_fire_nade.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.

I don't undertand how could i write the specific function in modules.ini..
Every plugin i use about ze now, doesn't work, not a plugin. Gives the same errors, different function..
I got a beer in advance for that one who could help
Attached Files
File Type: sma Get Plugin or Get Source (ze_fire.sma - 101 views - 16.1 KB)
File Type: sma Get Plugin or Get Source (ze_frost.sma - 113 views - 21.0 KB)
File Type: sma Get Plugin or Get Source (ze_extra_frost_nade.sma - 98 views - 1.3 KB)
File Type: sma Get Plugin or Get Source (ze_extra_fire_nade.sma - 102 views - 1.3 KB)

Last edited by DreNK; 12-29-2021 at 14:14.
DreNK is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-29-2021 , 15:50   Re: ZE|Error function
Reply With Quote #2

Did you read the plugin requirements before adding them? I'm sure they clearly mention which other plugins/modules you need in order to run them.

The errors mean that you're either missing a plugin or a module needed for them.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DreNK
Junior Member
Join Date: Sep 2019
Location: Romania
Old 12-30-2021 , 09:07   Re: ZE|Error function
Reply With Quote #3

Oh right, i did it now, i searched everywhere and finally found it in a different topic.I solved that one, but now i have a problem at compiling with an plugin, can you help me with that?!

ze_levels.sma(147) : error 035: argument type mismatch (argument 2)
ze_levels.sma(235) : error 017: undefined symbol "chat_print_color"
ze_levels.sma(335) : error 035: argument type mismatch (argument 2)
ze_levels.sma(347) : error 035: argument type mismatch (argument 2)
ze_levels.sma(351) : error 035: argument type mismatch (argument 2)
ze_levels.sma(356) : error 035: argument type mismatch (argument 2)
ze_levels.sma(361) : error 035: argument type mismatch (argument 2)
ze_levels.sma(366) : error 035: argument type mismatch (argument 2)
ze_levels.sma(371) : error 035: argument type mismatch (argument 2)
ze_levels.sma(376) : error 035: argument type mismatch (argument 2)
ze_levels.sma(381) : error 035: argument type mismatch (argument 2)
ze_levels.sma(386) : error 035: argument type mismatch (argument 2)
ze_levels.sma(391) : error 035: argument type mismatch (argument 2)
ze_levels.sma(392) : error 035: argument type mismatch (argument 2)
ze_levels.sma(604) : error 035: argument type mismatch (argument 2)
ze_levels.sma(622) : error 021: symbol already defined: "client_print_color"
ze_levels.sma(622) : error 001: expected token: "=", but found ","
ze_levels.sma(622) : error 008: must be a constant expression; assumed zero
ze_levels.sma(622) : fatal error 107: too many error messages on one line
Attached Files
File Type: sma Get Plugin or Get Source (ze_levels.sma - 64 views - 17.8 KB)
DreNK is offline
AdrenalinesWrath
Junior Member
Join Date: Aug 2017
Old 12-30-2021 , 17:31   Re: ZE|Error function
Reply With Quote #4

Quote:
Originally Posted by DreNK View Post
Oh right, i did it now, i searched everywhere and finally found it in a different topic.I solved that one, but now i have a problem at compiling with an plugin, can you help me with that?!

ze_levels.sma(147) : error 035: argument type mismatch (argument 2)
ze_levels.sma(235) : error 017: undefined symbol "chat_print_color"
ze_levels.sma(335) : error 035: argument type mismatch (argument 2)
ze_levels.sma(347) : error 035: argument type mismatch (argument 2)
ze_levels.sma(351) : error 035: argument type mismatch (argument 2)
ze_levels.sma(356) : error 035: argument type mismatch (argument 2)
ze_levels.sma(361) : error 035: argument type mismatch (argument 2)
ze_levels.sma(366) : error 035: argument type mismatch (argument 2)
ze_levels.sma(371) : error 035: argument type mismatch (argument 2)
ze_levels.sma(376) : error 035: argument type mismatch (argument 2)
ze_levels.sma(381) : error 035: argument type mismatch (argument 2)
ze_levels.sma(386) : error 035: argument type mismatch (argument 2)
ze_levels.sma(391) : error 035: argument type mismatch (argument 2)
ze_levels.sma(392) : error 035: argument type mismatch (argument 2)
ze_levels.sma(604) : error 035: argument type mismatch (argument 2)
ze_levels.sma(622) : error 021: symbol already defined: "client_print_color"
ze_levels.sma(622) : error 001: expected token: "=", but found ","
ze_levels.sma(622) : error 008: must be a constant expression; assumed zero
ze_levels.sma(622) : fatal error 107: too many error messages on one line
You have a problem with native "client_print_color", it's already defined on your end in some include, probably levels.inc you need to check that file, in your case you could do replace all client_print_color to something like ClientPrintColor so it uses the one included in the .sma file
this:
Code:
stock client_print_color(const id, const input[], any:...)  
{  
    new count = 1, players[32];  
    static msg[191];  
    vformat(msg, 190, input, 3);  

    replace_all(msg, 190, "!g", "^x04"); // Green Color  
    replace_all(msg, 190, "!y", "^x01"); // Default Color  
    replace_all(msg, 190, "!t", "^x03"); // Team Color  

    if (id) players[0] = id; else get_players(players, count, "ch");  
    {  
        for (new i = 0; i < count; i++)  
        {  
            if (is_user_connected(players[i]))  
            {  
                message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);  
                write_byte(players[i]);  
                write_string(msg);  
                message_end();  
            }  
        }  
    }  
}
try compiling this one:
Attached Files
File Type: sma Get Plugin or Get Source (ze_levels.sma - 67 views - 17.8 KB)
__________________
"True Strength's keeping everything together, while everyone expects you to fall apart."
AdrenalinesWrath is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-30-2021 , 18:35   Re: ZE|Error function
Reply With Quote #5

client_print_color() is defined in the newer AMXX versions.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DreNK
Junior Member
Join Date: Sep 2019
Location: Romania
Old 12-31-2021 , 05:34   Re: ZE|Error function
Reply With Quote #6

Quote:
Originally Posted by AdrenalinesWrath View Post
You have a problem with native "client_print_color", it's already defined on your end in some include, probably levels.inc you need to check that file, in your case you could do replace all client_print_color to something like ClientPrintColor so it uses the one included in the .sma file
this:
Code:
stock client_print_color(const id, const input[], any:...)  
{  
    new count = 1, players[32];  
    static msg[191];  
    vformat(msg, 190, input, 3);  

    replace_all(msg, 190, "!g", "^x04"); // Green Color  
    replace_all(msg, 190, "!y", "^x01"); // Default Color  
    replace_all(msg, 190, "!t", "^x03"); // Team Color  

    if (id) players[0] = id; else get_players(players, count, "ch");  
    {  
        for (new i = 0; i < count; i++)  
        {  
            if (is_user_connected(players[i]))  
            {  
                message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);  
                write_byte(players[i]);  
                write_string(msg);  
                message_end();  
            }  
        }  
    }  
}
try compiling this one:
Oh yes, it worked like that with ClientPrintColor.Thank you !! But now from it, i have a problem with his brother plugin for guns menu.
In the console i get this error of function
Plugin "ze_weapon_menu.amxx" failed to load: Plugin uses an unknown function (name "amx_save_setting_string_arr") - check your modules.ini.
DreNK 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 13:17.


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