AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   ZE|Error function (https://forums.alliedmods.net/showthread.php?t=335739)

DreNK 12-29-2021 14:08

ZE|Error function
 
4 Attachment(s)
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

OciXCrom 12-29-2021 15:50

Re: ZE|Error function
 
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.

DreNK 12-30-2021 09:07

Re: ZE|Error function
 
1 Attachment(s)
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

AdrenalinesWrath 12-30-2021 17:31

Re: ZE|Error function
 
1 Attachment(s)
Quote:

Originally Posted by DreNK (Post 2767276)
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:

OciXCrom 12-30-2021 18:35

Re: ZE|Error function
 
client_print_color() is defined in the newer AMXX versions.

DreNK 12-31-2021 05:34

Re: ZE|Error function
 
Quote:

Originally Posted by AdrenalinesWrath (Post 2767296)
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.


All times are GMT -4. The time now is 04:50.

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