Author |
Message |
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
|
Back to top |
|
|
SOS Server Help Squatter
Joined: Dec 02 2002 Posts: 329 Offline
|
Posted: Wed Jan 08, 2003 12:30 pm Post subject: |
|
|
|
|
1) You mean if p->name is the FunkyVarName? Yes, p->name is a char[] string, so Catid's String class will work with it
If you mean p->name as the one on the left, then no.
2) You just have to read every line and count how many you have read until you reach the number you want. _________________ 3y3 4m l33t h4x0r
j0! 3y3 4m t4lking to j00!
fux0red 5cr1pt k1dd13.
-"l33t h41ku" |
|
Back to top |
|
|
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
|
Back to top |
|
|
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Wed Jan 08, 2003 6:00 pm Post subject: |
|
|
|
|
Gracias you 2. |
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
Posted: Wed Jan 08, 2003 6:05 pm Post subject: |
|
|
|
|
Just remember to not do a string check if you don't want an answer. Otherwise someone could figure out a way to beat the system, and do things like sending a blank message that may screw up your bot. Yes, people do find ways to break things (i love bre.. i mean, debugging other people's things). |
|
Back to top |
|
|
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
|
Back to top |
|
|
Splody; Too lazy to login Guest
Offline
|
|
Back to top |
|
|
SOS Server Help Squatter
Joined: Dec 02 2002 Posts: 329 Offline
|
Posted: Sun Jan 19, 2003 11:42 pm Post subject: |
|
|
|
|
if (p->ship == SHIP_Spectator) |
|
Back to top |
|
|
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Fri Jan 31, 2003 4:55 pm Post subject: |
|
|
|
|
Ok, i suppose that works with SHIP_warbird and SHIP_lancaster and such?
And:
lets say i have command !pm [name] how do i convert c->final into whatever i need so i can do sendPrivate(c->final, "Someone says HI!");
Thanks in advance for putting up with my stupidity and all the other questions ive had. |
|
Back to top |
|
|
Rifle Guest
Offline
|
Posted: Fri Jan 31, 2003 6:47 pm Post subject: |
|
|
|
|
Ok, i suppose that works with SHIP_warbird and SHIP_lancaster and such?
Yup.
-Rifle |
|
Back to top |
|
|
SOS Server Help Squatter
Joined: Dec 02 2002 Posts: 329 Offline
|
Posted: Sat Feb 01, 2003 4:12 am Post subject: |
|
|
|
|
Quote: | lets say i have command !pm [name] how do i convert c->final into whatever i need so i can do sendPrivate(c->final, "Someone says HI!"); |
String s;
s = "Someone says ";
s += c->final;
ez |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Feb 01, 2003 9:59 am Post subject: |
|
|
|
|
Heh, sos, thats what I thought, then I re-read the post. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
|
SOS Server Help Squatter
Joined: Dec 02 2002 Posts: 329 Offline
|
Posted: Sat Feb 01, 2003 11:12 am Post subject: |
|
|
|
|
Oh
Well.... just iterate through the list and compare |
|
Back to top |
|
|
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Sat Feb 01, 2003 4:30 pm Post subject: |
|
|
|
|
Right, the question was asking how to send a pm to c->final, not how to make a message with the text c->final in it. |
|
Back to top |
|
|
|