Raised This Month: $ Target: $400
 0% 

how to read several values out of a the chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VEN
Veteran Member
Join Date: Jan 2005
Old 12-27-2005 , 14:59  
Reply With Quote #8

Quote:
Originally Posted by teame06
Code:
public checktext(id) {     new arg[4], arg1[4], arg2[4]     read_argv(1, arg, 3)     read_argv(2, arg1, 3)     read_argv(3, arg2, 3)     if (arg[0] == '/')     {         replace(arg, 3, "/", "")         trim(arg)         new r = str_to_num(arg)         new g = str_to_num(arg1)         new b = str_to_num(arg2)                 //etc function     } }
Reread what he said:
Quote:
Let's say an admin uses (say / team_say) following command "/10 20 30".
VEN 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 16:08.


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