Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 05-20-2011, 11:04 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Hey so i updated the script and it is still not displaying te x and y every .05 seconds.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  new 
GuiWindowCtrl("MyGuiTest_Window1") {
    
profile GuiBlueWindowProfile;
    
clientrelative true;
    
clientextent "126,98";

    
canclose false;
    
canmaximize false;
    
canminimize false;
    
canmove true;
    
canresize true;
    
closequery false;
    
destroyonhide false;
    
text "Co-Ordinates";
    
1028;
    
554;

    new 
GuiTextEditCtrl("MyGuiTest_TextEdit1") {
      
profile GuiBlueTextEditProfile;
      
height 20;
      
width 80;
      
text player.y;
      
23;
      
26;
    }
    new 
GuiTextEditCtrl("MyGuiTest_TextEdit2") {
      
profile GuiBlueTextEditProfile;
      
height 20;
      
width 80;
      
text player.x;
      
23;
      
67;
    }
    new 
GuiTextCtrl("MyGuiTest_Text1") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "Player: X";
      
width 43;
      
39;
      
6;
    }
    new 
GuiTextCtrl("MyGuiTest_Text2") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "Player: Y";
      
width 44;
      
42;
      
48;
    }
  }
}
function 
onTimeout(){
  
Co0rds_TextEdit2.text player.y;
  
Co0rds_TextEdit1.text player.x;
  
setTimer(.05);

__________________
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:45 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.