-
Scripting Help
(
https://forums.alliedmods.net/forumdisplay.php?f=11)
- -
error
(
https://forums.alliedmods.net/showthread.php?t=299958)
| Fuck For Fun |
07-31-2017 12:31 |
error
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)
|
| leonardo121 |
07-31-2017 12:35 |
Re: error
follow this example, https://forums.alliedmods.net/showthread.php?t=40822
PHP Code:
public fw_SetModel(entity, model[])
{
if(!is_valid_ent(entity))
return FMRES_IGNORED
if(!equali(model, OLDWORLD_MODEL))
return FMRES_IGNORED
new className[33]
entity_get_string(entity, EV_SZ_classname, className, 32)
if(equal(className, "weaponbox") || equal(className, "armoury_entity") || equal(className, "grenade"))
{
engfunc(EngFunc_SetModel, entity, WORLD_MODEL)
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}
|
| All times are GMT -4. The time now is 22:45. |
|
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.