AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   read_argv [Help] (https://forums.alliedmods.net/showthread.php?t=92309)

exec0d3 05-13-2009 12:33

read_argv [Help]
 
Hello, Here I am (again) :D
Here's problem ...
When I try to read argument on function

PHP Code:

public plugin_init(){
 
register_concmd("amx_tralalala","func2",ADMIN_KICK,"Player Name ...")
 
}
 
public 
func2(idleveluid){
 
new 
name[32]
 
name read_argv(1name31)
server_cmd("amx_tsay [%s]",name)
 


It don't work :(

Please write example for me pls pls pls :(

Arkshine 05-13-2009 13:24

Re: read_argv [Help]
 
Remove "name = "

read_argv returns the length of string passed.

exec0d3 05-13-2009 13:44

Re: read_argv [Help]
 
I whant to print string, whitch I've typed in argument of function ...

fysiks 05-13-2009 13:45

Re: read_argv [Help]
 
If you do what Arkshine said it will work.

PHP Code:

readargv(1,name,31



All times are GMT -4. The time now is 01:27.

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