AlliedModders

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

BrundiX 06-17-2011 03:18

Bad String problem
 
Hi, I precached some models and tryed to replace them with orpheu. Now its giving me the Host_Error: PF_Precache_Model_I: Bad String " error when I try to test it. So would this be the right orpheu signature for this?
weapon:
addons\configs\orpheu\memory\weaponModels
Code:

{
    "name"        : "weaponModels",
    "library"    : "mod",
    "type"        : "string",
    "memoryType"  : "data"
}

player:
addons\configs\orpheu\memory\PlayerModel
Code:

{
    "name"        : "PlayerModel",
    "library"    : "mod",
    "type"        : "string",
    "memoryType"  : "data"
}

The code looks like this:
PHP Code:

#include <amxmodx>
#include <orpheu_memory>

public plugin_precache()
{
    
precache_model"models/new/v_aug.mdl" );
    
//and more of them
    
    
OrpheuMemoryReplace"weaponModels"0"models/v_aug.mdl""models/new/v_aug.mdl" );
    
//...
    
    
precache_model"models/player/new/new.mdl" )
    
    
OrpheuMemoryReplace"PlayerModel"0"sas""new" );



joaquimandrade 07-07-2011 07:24

Re: Bad String problem
 
There replacement strings can't have lengths bigger than the original one because they use a reserved space. The space after doesn't belong to them


All times are GMT -4. The time now is 23:33.

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