L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 11:08:51 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Coding and development discussion > Topic: Getting complete input to display
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Getting complete input to display  (Read 251 times)
0 Members and 1 Guest are viewing this topic.
Diablo
Rookie
**
Offline Offline

Posts: 67


Getting complete input to display
« on: September 06, 2007, 01:48:32 PM »

Im trying to take input and assign them to two different variables as in:

Code:

if (preg_match("/^" . $this -> bot -> commpre . "fight (.+) vs (.+)/i", $msg, $arr))
$this -> bot -> send_pgroup($this -> do_fight($arr[1], $arr[2]));


What gets displays is the 2 and 3 letter of the first input (.+). The second input isnt even read. So if you put in text1 vs text2 i want to assign those to arr[1], arr[2].
Also wondering if $sender puts name of person sending command into variable?
« Last Edit: September 06, 2007, 03:12:51 PM by Diablo » Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: Getting complete input to display
« Reply #1 on: September 06, 2007, 04:09:00 PM »

(.+?)

u get the person doing the command from
   function pgmsg($name, $msg)
$name = person doing command
« Last Edit: September 06, 2007, 04:10:42 PM by Temar » Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Coding and development discussion > Topic: Getting complete input to display
« previous next »
 
Jump to:  

Recent
!items database
by Zeephonz
[Today at 08:05:21 PM]

Log playtime from buddys ...
by IKShadow
[Today at 06:48:12 AM]

[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]
Stats
Members
Total Members: 1244
Latest: Armonkens
Stats
Total Posts: 11146
Total Topics: 1505
Online Today: 25
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 16
Total: 18
Elesar1
Vain

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.31 seconds with 28 queries. (Pretty URLs adds 0.025s, 4q)
Loading...