Raised This Month: $ Target: $400
 0% 

read_argv [Help]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
exec0d3
Member
Join Date: Apr 2009
Location: Georgia
Old 05-13-2009 , 12:33   read_argv [Help]
Reply With Quote #1

Hello, Here I am (again)
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
exec0d3 is offline
Send a message via Skype™ to exec0d3
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-13-2009 , 13:24   Re: read_argv [Help]
Reply With Quote #2

Remove "name = "

read_argv returns the length of string passed.
Arkshine is offline
exec0d3
Member
Join Date: Apr 2009
Location: Georgia
Old 05-13-2009 , 13:44   Re: read_argv [Help]
Reply With Quote #3

I whant to print string, whitch I've typed in argument of function ...
exec0d3 is offline
Send a message via Skype™ to exec0d3
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2009 , 13:45   Re: read_argv [Help]
Reply With Quote #4

If you do what Arkshine said it will work.

PHP Code:
readargv(1,name,31
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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 01:27.


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