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?