AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Command help (https://forums.alliedmods.net/showthread.php?t=9435)

Ced 01-19-2005 00:32

Command help
 
I was just wondering why on one plugin I made, the command says unknown command but it works. Like say I did
Code:
register_clcmd("amx_die","kill_me",flag,"Goodbye")
It would say in my console, unknown command "amx_die". Anyone know why this happens even though the command works. Is it because of a return?
Also, what does %L mean?

XxAvalanchexX 01-19-2005 00:38

Since that line of code would call the kill_me function, you must return PLUGIN_HANDLED at the end of the kill_me function in order for the "unknown command" to not appear. Also, %L is used for multi-lingual things.

Ced 01-19-2005 00:40

k, ty, what I figured


All times are GMT -4. The time now is 19:20.

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