So I'm working on my rebuild/error-free (hopefully) version of noodleboy347's Premium Mod v1.14 and I keep running into these 2 errors:
Code:
25:44: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 01/14/2011 - 18:25:44: [SM] Displaying call stack trace for plugin "premium.smx":
L 01/14/2011 - 18:25:44: [SM] [0] Line 692, C:\Users\User\Desktop\TF2 Stuff\Compiler\scripting\premium.sp::Premium()
L 01/14/2011 - 18:25:44: [SM] [1] Line 204, C:\Users\User\Desktop\TF2 Stuff\Compiler\scripting\premium.sp::Player_Spawn()
Here's the entirety of the plugin: http://pastebin.com/HXAuHKui
I've been talking to Toazron over Steam for the past...ohh....2 weeks or so, and he's really helped me out, not only with some things related to this plugin, but also with things like setting up a menu with his basic donator interface.
Now, here's the thing. I appreciate you guys posting your little tidbits of help here and there, but when it comes to coding.....I doubt I could even be called a "beginner". So I would greatly appreciate it if someone could look over the plugin, and help me out big time by either:
- Posting the fixed code so that I can copy/paste it into the plugin
or
- Copy/pasting the above pastebin contents into a new pastebin, but with the code that's causing those 2 errors fixed.
Major
MAJOR credit will be given once I make sure the plugin is 100% error free, and upload it to the New Plugins section.