PDA

View Full Version : Privet Messages


Chandler
02-17-2007, 09:15 AM
function onPM(fromAccount, messageText)
{
echo(temp.fromAccount SPC "sent" SPC temp.messageText);
}

The text works, however it doesn't send the account! The first param being non-existent!

Skyld
02-17-2007, 12:53 PM
I guess you can use player.account.

Admins
02-17-2007, 02:09 PM
On server side you get the PM in params[]. The first line is always empty (reserved for advertising url). Use player/player.account for knowing who has sent it.

Chandler
02-17-2007, 07:25 PM
Oh, okay. Thanks :)