Raised This Month: $ Target: $400
 0% 

Bad String problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BrundiX
Junior Member
Join Date: Dec 2010
Old 06-17-2011 , 03:18   Bad String problem
Reply With Quote #1

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" );


Last edited by BrundiX; 06-17-2011 at 03:24.
BrundiX is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 07-07-2011 , 07:24   Re: Bad String problem
Reply With Quote #2

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
joaquimandrade 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 23:33.


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