View Single Post
  #6  
Old 08-25-2006, 10:18 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Few things I see wrong with your code right off the bat.

PHP Code:
new GuiWindowCtrl("RC_Window") {
  
RC_Window.destroy();

This should be:
[php]if(RC_Window != NULL) RC_Window.destroy();

PHP Code:
thiso.rcchat = {"Test","Test","Test","Test","Test","Test","Test","Test","Test","Test"}; 
You are not in the scope of another object, so you do not use thiso. like that. It should be: this.rcchat = ...

PHP Code:
RC_Window.destroy(); 
You'll get console errors like mad (especially if this is your first time firing the weapon since it was updated.) Use the method I said previously to destroy the window.

PHP Code:
new GuiWindowCtrl("RC_Window") {
  
profile "RC_Window"
Read the wiki to understand what profiles are. Setting the profile to the window which you are creating will result in some nasty effects. (This goes for all of the other controls you created aswell.)

PHP Code:
new GuiScrollCtrl("RC_Scrollbar") {
  
// ..
}
new 
GuiTextListCtrl("RC_Chat") {

You need to embed the second control in the first (this applies for the comment after this one, too)
PHP Code:
new GuiScrollCtrl("RC_Scrollbar") {
  
// ..
  
new GuiTextListCtrl("RC_Chat") {
    
// ..
  
}

PHP Code:
new GuiTextListCtrl("RC_Chat") { 
You should be using a GuiMLTextCtrl for the chat box. It will be less hassel, and it will give you that red box behind the text.


And something wrong with your attitude:
Quote:
Originally Posted by gamer4lifebitach
if you dont like my account well than i dont care
Your account name MAY be offensive to other people. In the case that it is, you should not react by telling them you don't care. Act like that and people will request deletion of your account by an admin. (You really should read the account creation rules before you create an account, anyway.)
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote