AlliedModders

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

warchild690 04-03-2006 10:51

args
 
ppl keep telling me to red the agrs, but (at the risk of sounding like a retard) were can i read them, nobody seems to want to tell me. plz help

[ --<-@ ] Black Rose 04-03-2006 11:59

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("", "", "");     register_concmd("tha_cmd", "HandleCmd"); } public HandleCmd(id) {     new argument[32];     read_argv(1, argument, 31);         if ( ! argument )         return PLUGIN_HANDLED;             server_cmd("amx_tsay red %s", argument); }

VEN 04-03-2006 12:58

Also you can read message args (inside register_event/message handler) and log args (plugin_log forward, register_logevent handler).


All times are GMT -4. The time now is 16:35.

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