View Single Post
  #1  
Old 10-28-2011, 07:48 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Regarding Openurl

is there anyway to use OpenURL inside the game?
Maybe like setting up cbk1994's web server to communicate with the servers requested and download a html file of it?
or maybe even some kind of serverside functionality like this?
PHP Code:
function onActionServerSide() {
  if (
params[0] == "getdata") {
    
temp.data openurl("http://www.google.com");
    
triggerclient("weapon"this.name"receive"data);
  }
}

//#CLIENTSIDE
function onCreated() {
  
CreateGui();
}

function 
CreateGui() {
  new 
GuiScrollCtrl("Data_Handler") {
    
profile GuiBlueScrollProfile;
    
screenwidth width 2;
    
screenheight height 2;
    
width 250;
    
height 100;
    
hScrollBar "dynamic";
    
vScrollBar "alwaysOn";

    new 
GuiMLTextCtrl("Data") {
      
profile GuiBlueMLTextProfile;
      
0;
      
0;
      
width 250;
      
height 80;
      
text "Loading Data From Server...";
    }
  }
}

function 
onActionClientSide() {
  if (
params[0] == "receive") {
    
Data.text params[1];
  }

__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote