What did I forget?
Hi guys, some very simple code here. I didn't bother researching this scripting language all that much as I prefer to jump into things, and I'm allready quite familiar with C/C++. Other than the lack of error checking and loggign, what did I forget here?
Code:
/* |
First of all, change #include <amxmod> to #include <amxmodx> for us :)
Anyway because admin_invis doesn't seem to return 0/PLUGIN_CONTINUE anywhere, make sure that the plugin is actually running (using amxx plugins). |
im guessing he took this all from the invis wars thing...
|
Quote:
|
Quote:
|
Changeing the include would be bad, as amxmodx.inc does not contain fuctionality for set_user_rendering. I think I may have found my problem, I'll post here and let you know if I did.
|
set_user_rendering is in fun module.
#include <fun> gives you set_user_rendering. #include <amxmod> includes fun automatically for backwards compatibility |
yeah, it works now...apparently the compiler for amx (not amxx) is different than the amxx compiler. But yeah anyway, I changed the includes to amxmodx.inc and added fun.inc, compiled with the SC compiler included with amxx and bang it's working. Now I'll just add error checking and logging and whatnot. If anyone wants the plugin when it's complete let me know. Next step is adding a possibility for invisibility in the roll the dice plugin. On that subject, does anyone happen to know if it's possible to call amx commands/plugins etc. from and admin mod plugin?
|
plugin
you stated on your post (http://forums.alliedmods.net/showthread.php?t=2677) that if anybody wanted the source, to let you know. TY in adv :roll:
|
ok
ok , i like scripting and i am learning that code will help me learn
i am a noob http://forums.alliedmods.net/showthread.php?t=2677 cool |
| All times are GMT -4. The time now is 14:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.