View Single Post
  #2  
Old 08-03-2011, 10:35 AM
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
you are redefining the PlayerChat GUI constantly and not even placing it within your original GUI. You should also be using a GuiMLTextCtrl, for multiple lines of chat. Quick example, not tested.

PHP Code:
//#CLIENTSIDE
function onCreated(){
  new 
GuiWindowCtrl("Chat_Window"){
    
profile GuiBlueWindowProfile;
    new 
GuiMLTextCtrl("Chat_Text"){
      
profile GuiBlueMLTextCtrl;
    }
  }
}

function 
onPlayerChats(){
  
addChat(player.nickplayer.chat);
}

function 
onRemotePlayerChats(temp.pltemp.txt){
  
addChat(pl.nicktxt);
}

function 
addChat(temp.srctemp.txt){
  
Chat_Text.addtext(src @":" SPC txt);
  
Chat_Text.scrolltobottom();

Reply With Quote