View Single Post
  #3  
Old 07-16-2007, 10:49 PM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by killerogue View Post
I don't think requesturl() returns an object?
Yes it does.


------------
//#CLIENTSIDE
function onWeaponFired(){
this.HTTPR = requesturl( "www.google.de" );
this.catchevent( this.HTTPR, "onReceiveData", "onGetData" );
}

function onGetData(){
player.chat = "got data";
}

Try this:
PHP Code:
//#CLIENTSIDE
function onCreated()
{
temp.request requestUrl("http://www.google.de");
this.catchEvent(temp.request"onReceiveData""onData");
}

function 
onData(obj)
{
player.chat "Received Data!";

The only thing I did different was add the http: protocol in front of the URL.
__________________
What signature? I see no signature?
Reply With Quote