View Single Post
  #7  
Old 04-04-2011, 09:33 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
It's actually lines.

I.e:
Quote:
Hello World
This is a pm.
Results in...

PHP Code:
params = {
  
"", // Some sort of reference, useless though since player. is accessible.
  
"Hello World",
  
"This is a pm."
}; 
Therefore...

PHP Code:
function onPM(p0, p1) {
  
// If you need the whole message in a string (delete this otherwise)
  // you can put it together like this:
  
for (temp.line: params.subarray(1)) {
    
temp.message @= temp.line NL "";
  }
  
// Or just check the first line
  
if (p1 == "eventsapp") {
    
player.sendPM("Events Application:\nStuff here!");
  }
} 
__________________
Quote:
Reply With Quote