Quote:
Originally Posted by killerogue
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.