Bugzilla – Bug 4746
models strings readed incorrectly
Last modified: 2013-06-15 15:07:16 PDT
When i compile a plugin with this code: [code] new const g_mdl[] = "models\santa_hat.mdl"; public plugin_precache() precache_model(g_mdl); [/code] , without any errors and warnings, and try run it on my Counter-Strike, i recieve a fatal error, when map a loading. Here is error message: <head>Fatal error <message box body>Mod_NumForName: models\anta_hat.mdl not found Why first letter "s" was lost? Also i try it with "v_ak47.mdl". Same effect.
Let me guess, you have used the webcompiler to compile your plugin, right ? If so the fault is because of '\' which is used to escape characters in php. Replace '\' by '/' and you won't get this bug. I don't know if it's possible to fix the webcompiler, but it's worth to ask.
I use amx mod x package pawn compiler. Yes, '/' works without errors, thank you.