Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Channel varible problem
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| MasterJay
(23 posts) Bio
|
Date
| Thu 14 Oct 2004 12:53 AM (UTC) |
Message
| I been changing the ways my channels look when used and they work except for what the player who typed it sees
for example: if Joe chats Hi he sees [chat] $n : Hi and others see [chat] Joe : Hi
i tried different variables there, but I cant get it to display anything. Is there some little thing to put in to make the code work?
btw heres the code :
case CHANNEL_CHAT:
set_char_color( AT_GOSSIP, ch );
ch_printf( ch, "[%s] $n : %s\n\r", verb, argument );
sprintf( buf, "[%s] $n : $t", verb );
break;
| Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #1 on Thu 14 Oct 2004 03:50 AM (UTC) Amended on Thu 14 Oct 2004 03:51 AM (UTC) by Greven
|
Message
| If you are using ch_printf, you cannot use $*, the $n is only interpreted by act(). Usech_printf( ch, "[%s] %s : %s\n\r", verb, ch->name, argument );
That should show them their own name. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
10,088 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top