AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [solved]]How to make this to work? (https://forums.alliedmods.net/showthread.php?t=40909)

Xum 07-05-2006 22:10

[solved]]How to make this to work?
 
How can i fix this?

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> new argMessage[256] public plugin_init() { register_plugin("HUDmsg", "1.0", "Hip_hop_x") register_concmd("amx_hudcenter", "cmd_message", ADMIN_CHAT, "message in the center") register_concmd("amx_hudmsg", "cmd_extrem", ADMIN_ALL, "<message up>") set_task(360,"recl",0,"",0,"b" ) } public cmd_message (id) { if(!access(id, ADMIN_CHAT)) { console_print(id, "[AMXX] You have no access to this command!"); return PLUGIN_HANDLED } read_args(argMessage, 255) set_hudmessage(150, 89, 37, -1.0, 0.45, 0, 1.0, 9999991.0, 0.1, 0.2, -1) show_hudmessage(0, argMessage) return PLUGIN_HANDLED public cmd_extrem(id) { if(!access(id, ADMIN_CHAT)) { console_print(id, "[AMXX] You have no access to this command!"); return PLUGIN_HANDLED } read_args(argMessage, 255) set_hudmessage(150, 89, 37, -1.0, 0.10, 0, 1.0, 999991.0, 0.1, 0.2, -1) show_hudmessage(0, argMessage) return PLUGIN_HANDLED } public recl(id) { console_print(id, "[Xu Message] For more plugins vizit xu-share.tk") }

Gizmo 07-06-2006 03:08

Re: How to make this to work?
 
I found 2 errors, i made comments on those lines.
Code:
#include <amxmodx> #include <amxmisc> new argMessage[256] public plugin_init() {     register_plugin("HUDmsg", "1.0", "Hip_hop_x")     register_concmd("amx_hudcenter", "cmd_message", ADMIN_CHAT, "message in the center")     register_concmd("amx_hudmsg", "cmd_extrem", ADMIN_ALL, "<message up>")     set_task(360,"recl",0,"",0,"b" ) //the time must be a float so 360.0 will work } public cmd_message (id) {     if(!access(id, ADMIN_CHAT))     {         console_print(id, "[AMXX] You have no access to this command!");         return PLUGIN_HANDLED     }         read_args(argMessage, 255)     set_hudmessage(150, 89, 37, -1.0, 0.45, 0, 1.0, 9999991.0, 0.1, 0.2, -1)     show_hudmessage(0, argMessage)     return PLUGIN_HANDLED // no "end" on this function, add a } after this line     public cmd_extrem(id) {     if(!access(id, ADMIN_CHAT))     {         console_print(id, "[AMXX] You have no access to this command!");         return PLUGIN_HANDLED     }         read_args(argMessage, 255)     set_hudmessage(150, 89, 37, -1.0, 0.10, 0, 1.0, 999991.0, 0.1, 0.2, -1)     show_hudmessage(0, argMessage)     return PLUGIN_HANDLED } public recl(id) {     console_print(id, "[Xu Message] For more plugins vizit xu-share.tk") }

Xum 07-06-2006 07:19

Re: How to make this to work?
 
thx Gizmo. Now plugin was fixed.


All times are GMT -4. The time now is 08:05.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.