Raised This Month: $51 Target: $400
 12% 

[TF2] PropHunt 1.93


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 06-06-2013 , 16:48   Re: [TF2] PropHunt 1.93
Reply With Quote #11

Quote:
Originally Posted by Powerlord View Post
So, 2.03 didn't fix the problem if my error logs are anything to go by:

Errors you'll see in 2.03:
Code:
L 06/04/2013 - 15:54:47: [SM] Native "SetEntPropString" reported: Property "m_iName" is not a valid string
L 06/04/2013 - 15:54:47: [SM] Displaying call stack trace for plugin "prophunt.smx":
L 06/04/2013 - 15:54:47: [SM]   [0]  Line 878,  D:\tf2server\plugins\prophunt\addons\sourcemod\scripting\prophunt.sp::OnCPMasterSpawned()
I'm going to try something else and hope it works instead. Namely by switching it from a spawn hook to a spawnpost hook and hoping that will let me set the m_iName properly. I also corrected the check for the actual name based on something said in another thread.
If you are trying to rename an existing ent, just dispatchkeyvalue, it will work for m_iName, i do it to players all the time to parent crap to them.

But if you are trying to edit it as it is spawning, you have to wait, so just use a 0.0 timer, or like you said, try post.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 06-06-2013 at 16:51.
friagram is offline
 



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 19:31.


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