![]() |
Script errors
I'm not sure why It's doing this...
NPC Code: Here's the script PHP Code:
Can y'all? This is a request for help, NOT A REQUEST FOR CRITIQUE/HARASSMENT! |
You have a space after //#CLIENTSIDE
|
What server is this for? And does it not give a specific error?
Try checking things such as breaks where they should be, and no spaces after //#CLIENTSIDE, etc. Also, PHP Code:
And then, on serverside, timeouts need to be .1 or higher, unlike .05 on clientside. EDIT: AHHH!! Tig beat me to it mentioning the space after clientside. |
Would a space after //#CLIENTSIDE actually do that?
Wow... Oh wait... on RC it doesn't show a space after the //#CLIENTSIDE and I think I recently changed the this.id varname to this.intid Thanks lol. New version: PHP Code:
|
A space can do that I believe. Believe it or not, spacebar is actually a hidden character, somewhat.
|
Did you forget to change this.id to this.intid at the beginning of the onTimeout() on serverside?
And yes a single space after //#CLIENTSIDE will mess everything up x-x |
If you comment out line 12 the error won't appear
All you need to do is change obj.message into something else, voilá NPC Code: Change message into msg for example and it should be fixed |
Silly little error ;)
And what server is this for? |
Why not use serverside images for this? You could exclude the timeout on clientside then, which is less CPU for the slow-PC gamer. Not sure if a timeout of 0.05 on serverside is good either ;)
|
I just noticed that, DO NOT USE A TIMEOUT ON SERVERSIDE.
|
Once again, what server is this for?
|
I reccon this should do the trick for that line in question..
NPC Code: |
Quote:
PHP Code:
|
Maybe something like this:
PHP Code:
|
Quote:
Inver's would work just fine ;). |
Quote:
|
What's yucky about it?
|
Quote:
|
PHP Code:
|
I thought the problem was that it was rejecting any string named message, therefor, it wouldn't let you do x.message ... ?
|
Quote:
All these scripts will produce the line :p PHP Code:
PHP Code:
PHP Code:
this works: PHP Code:
PHP Code:
|
It is possibly something to do with function prototyping (whereby functions are child members of an object with the same name). I guess if some object has a message() function, you can probably not use the same variable name.
Not sure why that would happen with objects returned from findplayer() though. |
Hmmm doesn't seem to be a new problem, same error on older servers. It has the same problem with any funcname().oldscriptcommand, e.g. funcname().loadmap, seeing loadmap as the GS1 loadmap() function and ignoring funcname(). (and giving error when being put in echo() or similar). I will check if that can be fixed easily.
|
Quote:
TStaticVar() = this.attr[2] = findnpc("BlooIntercoms").(@ this.intid).message Normal var = this.attr[2] = findnpc("BlooIntercoms").(@ this.intid ".message") |
Quote:
|
Quote:
|
Inverness, Pfa - sorry. I scaned some of my older scripts where I was sooo sure I used it, and only examples I could find was with makevar().
l2think, right? |
Quote:
|
Quote:
|
Ok fixed the problem, the new npcserver will be uploaded in a few days. It was accepting GS1 commands after closing brackets ")", but not correctly handling the case "functioncall().variablename".
|
Bloo, what server is this for?
|
Sorry, I've been working on my server for a while.
It's for no one in particular... I honestly just got bored and decided to make something useless lol. |
Fine, but get rid of bloofunctions if it isn't for Utopia.
|
Ehh? What's bloofunctions? You shouldn't peak people's curiosity like this, it's mean.
|
Quote:
|
Quote:
I'm sure he's using BlooTool, and all his other BlooServer crap. Basically if it starts with Bloo, you know it's bad. ;) EDIT: POST 2,000 WOOOOOO!!!!!!!!!!!! |
Quote:
|
Wow, I didn't know about the space after //#CLIENTSIDE thing. x.x That just fixed a butt load of my problems....
|
| All times are GMT +2. The time now is 03:03 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.