Superhero Mod Change/Modification
2 Attachment(s)
I've been trying to modify the Daredevil character's ESP rings to show as red for Terrorists, and Blue for Counter-Terrorists (and down the road have cvars to show only your team, or the enemy). Since I know basically none of the "Small" scripting language, I've been getting code from other superheros. I've gotten most of the team detection and stuff from Xavier. Like I say I know pretty much nothing about Small scripting except what I've learned by reading plugins.
I've decided to post the code that I've modified, so if you don't want to d/l it you can just look to see the changes: Code:
|
Runtime error 7
Quote:
|
Code:
It looks like you are pushing one argument into the stack and the function is expecting two. The stack underflow could mean it is looking for more in the stack and not seeing it. |
1 Attachment(s)
Ok I fixed what you said Bailopan and it got rid of the compile warning, but when I tried to run it on my server it crashed and this time it didn't give me an error, it just locked up. I'll update the plugin above with the new version. Maybe you can look again and see if anything is wrong. Remember I know NOTHING about small so if you could spoon-feed me this that'd be great, lol.
|
1 Attachment(s)
ok try this one out
|
Ah yes that helps a lot, that fixed alot of my problems, no more crashing, AND it displays the rings. BUT, big but, when it executes get_user_team it gets the player's team and makes everyone else's ESP rings the color of his team, INSTEAD of getting the individual player's team and displaying it's corresponding color. Any ideas on how to modify this to do that instead. (i'll be trial-and-erroring it till I get some help, which i hope i do :lol: )
|
1 Attachment(s)
I'm sure its possible, let me take a look...
---- that was a simple fix changed the "id" in the get user team to "i" the i variable is being used in the loop and will be all the different player ids on the server. |
Mmm it worked better with it as id, now when it runs the client drops. No errors, the client just drops.
|
Your updated plugin doesn't crash the server or kick the client, but the rings don't show anymore. Any other ideas?
|
Quote:
Sorry about the off topicness :P |
| All times are GMT -4. The time now is 14:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.