What am I doing wrong? (Crash, code snippet included)
For some reason, at some point, this code started crashing TF2 (on the TF2Items_GiveNamedItem calls), but not always. Any ideas?
These functions are called at player spawn. PHP Code:
|
Re: What am I doing wrong? (Crash, code snippet included)
Ok, I've narrowed it down to the railgun code specifically. Removed the block that's fine from the first post.
I've tried to make tweaks to the railgun code, but this is what I end up with: PHP Code:
|
Re: What am I doing wrong? (Crash, code snippet included)
Did you try the FORCE_GENERATION flag? It exists for the cases where the classname is class-specific (like "tf_weapon_shotgun_soldier").
Code:
TF2Items_CreateItem(OVERRIDE_ALL|FORCE_GENERATION); |
Re: What am I doing wrong? (Crash, code snippet included)
I've got it figured out a short while ago, but thanks. That was it.
|
All times are GMT -4. The time now is 10:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.