Making TK plugin, got stuck.
PHP Code:
|
Re: Making TK plugin, got stuck.
Actually I think I solved my problem. But Mods please leave thread open till I verify.
PHP Code:
|
Re: Making TK plugin, got stuck.
you'll probably want to do
Code:
user_kill(g_params[victim][0], 1)also, you don't really need to pass the victim as you know the id of the victim already. and you really shouldn't be passing a global (g_params) into another function (TKCMenu). |
Re: Making TK plugin, got stuck.
Thanks Emp`
I had fixed that user_kill part before I uploaded and the g_params is so I can get the killers name. Anyhow the plugin is working now. Edit: Actually for the final part of the plugin, MenuSelect, is it better to end the plugin with a PLUGIN_CONTINUE or HANDLED? |
Re: Making TK plugin, got stuck.
The return doesn't matter.
And the point of a global variable is so you can use it in any function without passing it to those functions. |
| All times are GMT -4. The time now is 03:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.