Raised This Month: $ Target: $400
 0% 

[Resolved] read_argv and contain help plz!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
stupok
Veteran Member
Join Date: Feb 2006
Old 12-06-2006 , 23:04   Re: read_argv and contain help plz!
Reply With Quote #6

Come to think of it, I am not 100% sure you can read two arguments after say like that, and since I'm not willing to test for it at the moment, here is a different method. See if you can change it to your liking.

Code:
public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say", "hook_say") } public hook_say(id) {     new arg1[37], origin[3], name[32]         read_args(arg1, 36)         if(!equal(arg1, "/goto", 5)) return PLUGIN_CONTINUE         new player = cmd_target(id, arg1[5])         if(!player) return PLUGIN_CONTINUE         get_user_origin(player, origin, 0)     set_user_origin(id, origin)     get_user_name(player, name, 31)         client_print(id, print_chat, "[CSM] You have gone to %s's position", name) }

EDIT: Try changing to:
read_argv(1, ...)
read_argv(2, ...)
stupok is offline
 



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 06:59.


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