AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bad String entity_set_string (https://forums.alliedmods.net/showthread.php?t=236940)

Destro- 03-14-2014 18:49

Bad String entity_set_string
 
PHP Code:

static mdl[100]
formatex(mdlcharsmax(mdl), "models/zombie_plague/%s"g_zclass_clawmodel[g_zombieclass[id]])    

_debug(0"1replace_models(%d) model:[%s] mode2[%s], id[%d]"idmdlg_zclass_clawmodel[g_zombieclass[id]], g_zombieclass[id])

entity_set_string(idEV_SZ_viewmodelmdl)

_debug(0"2replace_models(%d) model:[%s] mode2[%s], id[%d]"idmdlg_zclass_clawmodel[g_zombieclass[id]], g_zombieclass[id])

entity_set_string(idEV_SZ_weaponmodel""// Crash

_debug(0"3replace_models(%d) model:[%s] mode2[%s], id[%d]"idmdlg_zclass_clawmodel[g_zombieclass[id]], g_zombieclass[id]) 

PHP Code:

public fw_Sys_Error(const error[])
{
    
_debug_draw()
    
log_to_file("hlds_error.log""error:[%s]"error)


Log:
Code:

L 03/14/2014 - 02:22:56: *DEBUG: 02:22:56: Gametime[65.74] - Info[2replace_models(1) model:[models/zombie_plague/v_gordo.mdl] mode2[v_gordo.mdl], id[3]]
L 03/14/2014 - 02:22:56: error:[SV_ModelIndex: model 9,+.MÁ± 
 Ç ³ÁÛìâ¬:€qü4ÙùsÇBƒv † · Î × × Ö Ê • 7 ˜ÕãϤbÞ¼¿üþÿ> not precached]

is safe use "" string ?, is valid "^0" ?.

meTaLiCroSS 03-14-2014 19:30

Re: Bad String entity_set_string
 
It's okey, you're doing something else maybe, show the entire code


All times are GMT -4. The time now is 05:57.

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