admin.txt plugin help
i want to make a plugin
that when you say /admin you see a file like motd.txt but then admin.txt that is located in addons/amxmodx/configs folder and the server must have it and you have to code it in html first say if it all can be done sry first plugin i'm a noob do i just do this show_(56) but then with admins i have this code but I think it doesn't work Code:
|
whole .sma I want to edit it
real plugin name say /motd Code:
|
Yes, because show_admins isn't a function..
Code:
|
i know but what do i have to do
|
I now have this is changed it but it still doesn't work
Code:
|
That cuz you changed:
public admin_admins(id,level,cid){ To: public mandatoryinform(stringdex[]) { The second function is not registered to any command, like you had it before... Make sure the function matches what you regsiter here: register_concmd("say /admins", "admin_admins",0, "- shows the admins.") See, when you say /admins it should be calling the admin_admins() function, but you dont have it anymore.. |
This should work...
Code:
|
Quote:
|
You shouldn't hard-code the configs directory path, instead Include <amxmisc> into your plugin and use:
Code:
Example: Code:
|
Good idea :). I'll do that from now on.
|
| All times are GMT -4. The time now is 14:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.