Raised This Month: $ Target: $400
 0% 

error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 07-31-2017 , 12:31   error
Reply With Quote #1

Code:
public FwdSetModel( ent, szModel[ ] )
{	
	if ( CheckLr( 0 ) )
	{
		if ( equali( szModel, "models/w_hegrenade.mdl" ) )
		{
			entity_set_model( ent, g_Models[ 2 ] );
			
			return FMRES_SUPERCEDE;
		}
	}
	
	return FMRES_IGNORED;
}
request help of friend, i tried to check my self but not see something wrong..

Code:
L 07/31/2017 - 18:07:30: Called dynanative into a paused plugin.
L 07/31/2017 - 18:07:30: [AMXX] Displaying debug trace (plugin "LR1.amxx")
L 07/31/2017 - 18:07:30: [AMXX] Run time error 10: native error (native "is_lr_start")
L 07/31/2017 - 18:07:30: [AMXX] [0] LR1.sma::CheckLr (line 432)
L 07/31/2017 - 18:07:30: [AMXX] [1] LR1.sma::FwdSetModel (line 310)
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
leonardo121
Member
Join Date: Sep 2013
Old 07-31-2017 , 12:35   Re: error
Reply With Quote #2

follow this example, https://forums.alliedmods.net/showthread.php?t=40822

PHP Code:
public fw_SetModel(entitymodel[])
{
    if(!
is_valid_ent(entity)) 
        return 
FMRES_IGNORED

    
if(!equali(modelOLDWORLD_MODEL)) 
        return 
FMRES_IGNORED

    
new className[33]
    
entity_get_string(entityEV_SZ_classnameclassName32)
    
    if(
equal(className"weaponbox") || equal(className"armoury_entity") || equal(className"grenade"))
    {
        
engfunc(EngFunc_SetModelentityWORLD_MODEL)
        return 
FMRES_SUPERCEDE
    
}
    return 
FMRES_IGNORED

__________________
" In the end it doesn't even matter " - Linkin Park
leonardo121 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 22:45.


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