Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-13-2009, 07:28 PM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
Next line

ok ... I fail to make a text into the next line.
PHP Code:
findPlayer("Schetti").addweapon(this.name);
//#CLIENTSIDE
function onKeyPressed(code,key) {
 if (
key == "o")
  {

   
show(); 
 }

 public function 
show() {
  new 
GuiWindowCtrl("-System/News_Window1") {
    
profile GuiBlueWindowProfile;
    
clientrelative true;
    
clientextent "488,390";

    
canmove true;
    
canresize true;
    
closequery false;
    
destroyonhide false;
    
text "News!";
    
500;
    
280;

    new 
GuiTextCtrl("-System/News_Text1") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "Text 1" NL "hi";
      
width 30;
      
25;
      
10;
    }
  }


I DONT want to hear something about the if (key == "o")
It doesnt matter ...


Well actually the text is in 1 low like: Tex 1 hi

but it should show as

Text1
hi



someone can help?
__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
Reply With Quote
 


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 03:13 PM.


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