Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Say Players Name

 
Post new topic   Reply to topic Printable version
 View previous topic  bot without entering into vip.txt or s... Post :: Post make MERVBot 39 shut up  View next topic  
Author Message
Stud^
Newbie


Age:40
Gender:Gender:Male
Joined: Nov 22 2003
Posts: 13
Offline

PostPosted: Sat Nov 22, 2003 5:52 am    Post subject: Say Players Name Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
ExplodyThingy
Server Help Squatter


Age:38
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Sat Nov 22, 2003 12:26 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Underlord
Guest


Offline

PostPosted: Sat Nov 22, 2003 1:26 pm    Post subject: Reply to topic Reply with quote

Code: Show/Hide

case EVENT_PlayerEntering:
{
Player *p = (Player*)event.p[0];

sendPrivate(p, "Hello "+ (String) p->name +" Welcome To Sub Warz Try To Enjoy Yourself);

}
Back to top
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sat Nov 22, 2003 1:32 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Stud^
Newbie


Age:40
Gender:Gender:Male
Joined: Nov 22 2003
Posts: 13
Offline

PostPosted: Fri Nov 28, 2003 5:22 am    Post subject: Reply to topic Reply with quote

Thanks Guys It works perfectly you rock icon_smile.gif icon_biggrin.gif
Back to top
View users profile Send private message Add User to Ignore List Send email
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 32 page(s) served in previous 5 minutes.

phpBB Created this page in 0.532574 seconds : 29 queries executed (89.9%): GZIP compression disabled