Author |
Message |
Stud^ Newbie

Age:40 Gender: Joined: Nov 22 2003 Posts: 13 Offline
|
Posted: Sat Nov 22, 2003 5:52 am Post subject: Say Players Name |
 |
|
|
|
I need some help i am trying to get my bot to say a player's name when the enter here the code
Quote: | case EVENT_PlayerEntering:
{
Player *p = (Player*)event.p[0];
sendPrivate(p, "Hello "+ p->name +"Welcome To Sub Warz Try To Enjoy Yourself);
} |
|
|
Back to top |
|
 |
ExplodyThingy Server Help Squatter
Age:38 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Sat Nov 22, 2003 12:26 pm Post subject: |
 |
|
|
|
Ill bet its saying it cannot add two pointers. Try this:
string s = "Hello, ";
s+=p->name;
s+=". Welcome to ........";
sendPrivate(p,s); _________________ There are no stupid question, but there are many inquisitive idiots.
Loot
Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries |
|
Back to top |
|
 |
Underlord Guest
Offline
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sat Nov 22, 2003 1:32 pm Post subject: |
 |
|
|
|
There's no closing " to the 2nd string. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
Stud^ Newbie

Age:40 Gender: Joined: Nov 22 2003 Posts: 13 Offline
|
Posted: Fri Nov 28, 2003 5:22 am Post subject: |
 |
|
|
|
Thanks Guys It works perfectly you rock  |
|
Back to top |
|
 |
|