Raised This Month: $ Target: $400
 0% 

SetEntPropString fails


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
=MaTi=
Member
Join Date: Jan 2008
Old 11-06-2013 , 13:38   SetEntPropString fails
Reply With Quote #1

I have a weird problem with SetEntPropString. Here is what I'm trying to do:

PHP Code:
GetEntPropString(edictProp_Data"m_szAmmoName"bufsizeof(buf)); // works
PrintToChatAll("Name: %s"buf); //prints out the ammo name, also works fine
SetEntPropString(edictProp_Data"m_szAmmoName""ammobox_9mm"); // [SM] Native "SetEntPropString" reported: Property "m_szAmmoName" is not a valid string 
So essentially, I can read a certain property, but I can't modify it. It's as if it didn't exist, but I can read it after all... Here is a list of all datamaps:
http://cactuspie.eu/datamaps.txt

I'm using Sourcemod 1.6 build 4169.

Could someone please help me?

Edit:
Whoops, wrong section... Sorry about that!

Last edited by =MaTi=; 11-06-2013 at 13:44.
=MaTi= 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 05:37.


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