Raised This Month: $ Target: $400
 0% 

Command help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ced
Member
Join Date: Oct 2004
Old 01-19-2005 , 00:32   Command help
Reply With Quote #1

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?
Ced is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-19-2005 , 00:38  
Reply With Quote #2

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.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Ced
Member
Join Date: Oct 2004
Old 01-19-2005 , 00:40  
Reply With Quote #3

k, ty, what I figured
Ced is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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