View Single Post
  #21  
Old 08-05-2011, 05:15 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
the temp.pl in my original post refers to the object parameter thrown in
PHP Code:
function onRemotePlayerChats(temp.objtemp.text
I personally use pl as a shorthand to indicate that it is a player object I am dealing with, so I can keep track of what I am attempting to manipulate.

addChat was then added with two parameters, both strings, to indicate the sender's nickname, and sender's text. That function was created to avoid having to copy and paste virtually the same execution within both functions, and can be made public so it can be called elsewhere should you want to add messages from the server or something.
Reply With Quote