I have a weird problem with SetEntPropString. Here is what I'm trying to do:
PHP Code:
GetEntPropString(edict, Prop_Data, "m_szAmmoName", buf, sizeof(buf)); // works
PrintToChatAll("Name: %s", buf); //prints out the ammo name, also works fine
SetEntPropString(edict, Prop_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!