View Single Post
  #1  
Old 02-11-2006, 04:03 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
player logout - odd bug

This is at the end of the control-npc in my gs2 enabled server.

PHP Code:
function onPlayerLogout(pl) {
if (
pl.account != NULL) {
  echo(
"Player " pl.account ":" pl.nick @" logged out"); //This works
 
setstring(serverr.radio_station1e,serverr.radio_station1d);
 
setstring(serverr.radio_station1d,serverr.radio_station1c); 
 
setstring(serverr.radio_station1c,serverr.radio_station1b); 
 
setstring(serverr.radio_station1b,serverr.radio_station1a);
 
setstring(serverr.radio_station1a,pl.nick@" : "@pl.account@" logged out of  Argos"); //this never gets set
 
}

It never logs the logout info into the server string serverr.radio_station1a. Why not?
It sends the echo to the rc correctly.

Also what is the command like SPC for a carriage return or line feed, to have a new line in something like a sendpm message?
Reply With Quote