RequestURL woes
NPC Code: Obj returns nothing. Absolutely nothing. The chat stays doing.. for the default chat timeout and just disappears. Now the interesting part: If I were to do player.chat = this.req right below it, and the url was, say http://www.di.fm/aacplus/lounge.pls, i'd get: HTTP_www.di.fm_80_/aacplus/lounge.pls Which of course, yields nothing any closer to parsing it into a stream. And also, if I extract the ip/port of the stream from the pls file manually, and try to play it within graal, it doesnt work. Why? |
Should be "onReceiveData" or "receivedata"
|
So I should change onData to onRecieveData?
|
Recieve is spelled Receive. I before E except after c.
catchEvent(this.req,"onRecieveData","onData"); needs to be changed to: catchEvent(this.req,"onReceiveData","onData"); |
Oh, forgot that :o
Still doesnt work |
onData is never called? You do it on clientside right ?
|
Of course. onData simply is never called.
|
Do you even call onTimeout();?
|
why are you using timeout to watch the player's chat?
|
Quote:
Quote:
|
onTimeout is called in onCreated. This is in a 300 line script, like i'm going to cut it all anyway :[
So besides correcting each other and backseat moderating, are any of you going to actually make any input or is the thread going to go inactive again? |
Quote:
|
Hey um, that's nice, if you'd read the previous posts you'd know why it was like that.
Have you got ANYTHING to contribute as to why requestURL isnt working or are you going to continually poke at my coding style? |
Uh, you can't do catchEvent on events like that. It just doesn't work for some reason. You should use the standard onReceiveData() function, and pass that to onData().
PHP Code:
|
Quote:
Try that and see if it works. Quote:
|
All times are GMT +2. The time now is 09:13 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.