Raised This Month: $ Target: $400
 0% 

argbrek and strbreak


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lord94
Junior Member
Join Date: Aug 2018
Old 05-13-2020 , 08:17   Re: argbrek and strbreak
Reply With Quote #1

Quote:
Originally Posted by Napoleon_be View Post
Show your changes, you might be using argbreak() the wrong way.
This two lines showed warnings, in top of public load_models function(the php i attached in the first post)

PHP Code:
argbreak(read,left,47,right,47
PHP Code:
argbreak(right,right,47,right2,31
i simply replaced strbreak with argbreak nothing else.

Quote:
Originally Posted by fysiks View Post
Then either the plugin didn't work to begin with or there is a bug in AMX Mod X 1.10
It was working just fine in 1.8.2, also i thought that 1.10 may be bugged so i changed to 1.9.0, but still the same.

EDIT: Maybe the argbreak is fine, but i read somewhere in the forum that get_user_team is not fixed? in this plugin in curweapon event hook there is a get_user_team, is it maybe bcs of that?
PHP Code:
public Changeweapon_Hook(id)
{
    if( ! 
is_user_alive(id) )
    {
        return 
PLUGIN_CONTINUE
    
}
    static 
model[32], iteam

    team 
get_user_team(id)

    
pev(id,pev_viewmodel2,model,31)
    for(
i=0;i<v_modelsnum;i++)
    {
        if(
equali(model,old_v_models[i]))
        {
            if(
v_models_team[i]==team || !v_models_team[i])
            {
                
set_pev(id,pev_viewmodel2,new_v_models[i])
                break;
            }
        }
    }

    
pev(id,pev_weaponmodel2,model,31)
    for(
i=0;i<p_modelsnum;i++)
    {
        if(
equali(model,old_p_models[i]))
        {
            if(
p_models_team[i]==team || !p_models_team[i])
            {
                
set_pev(id,pev_weaponmodel2,new_p_models[i])
                break;
            }
        }
    }
    return 
PLUGIN_CONTINUE


Last edited by Lord94; 05-13-2020 at 09:15.
Lord94 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 17:05.


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