SphereCommunity
console errors - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: console errors (/Thread-console-errors--3581)



console errors - ograso - 06-22-2014 12:33 AM

Hey all,

My console gives 2 type of error as below

First;
Code:
17:25:ERROR:(spherechar_human.scp,6635)Can't resolve <SRC.CTAG0.RESSER>
17:25:ERROR:(spherechar_human.scp,6635)Undefined symbol ''

spherechar_human.scp,6635;
Code:
ON=@NPCLookAtChar
IF (<SRC.ISPLAYER>)
IF (<SRC.ISONLINE>)
IF (<SRC.CTAG0.RESSER>)
RETURN 1
ENDIF
IF (<SRC.FLAGS>&STATF_DEAD)
SRC.SPELLEFFECT S_RESURRECTION,1000,<UID>
ENDIF
ENDIF
ENDIF

Second;
Code:
17:28:ERROR:(functions7.scp,210)Undefined keyword 'SENDPACKET'

functions7.scp,210;
Code:
IF (<ISCHAR>)
    IF (0<ISPLAYER>) && (0<ISONLINE>)
    SENDPACKET 06D W<HVAL <ARGN1>>
    ENDIF
ENDIF



RE: console errors - RanXerox - 06-23-2014 03:13 AM

In your first problem, I am guessing SRC is not what you think it is (an online player)... try recording the NAME of SRC in the log to find out what's going on.

In your second problem, SENDPACKET may not work in all triggers... what @TRIGGER is that same of code inside?


RE: console errors - ograso - 07-13-2014 01:49 AM

(06-23-2014 03:13 AM)RanXerox Wrote:  In your first problem, I am guessing SRC is not what you think it is (an online player)... try recording the NAME of SRC in the log to find out what's going on.

In your second problem, SENDPACKET may not work in all triggers... what @TRIGGER is that same of code inside?

Actually this is function script from cloud_br. This part of function relevant music. I am using src.music When I need to use. But I dont understand Why its happening. This error being player logon and logoff.

Code:
[FUNCTION music]
IF (<ISCHAR>)
    IF (0<ISPLAYER>) && (0<ISONLINE>)
    src.SENDPACKET 06D W<HVAL <ARGN1>>
    ENDIF
ENDIF



RE: console errors - XuN - 07-15-2014 09:16 PM

Mixing SRC calls with NO-SRC calls can give some problems, however in the default script pack there's a 'music' function already:

Code:
[FUNCTION music]
IF (<ISPLAYER>)
MIDILIST <ARGS>
ENDIF

And coruja made some changes on regions to fix some errors when calling it, so updating map files (if the problem is related to map) will also help solving this issue.


RE: console errors - ograso - 07-24-2014 05:47 PM

(07-15-2014 09:16 PM)XuN Wrote:  Mixing SRC calls with NO-SRC calls can give some problems, however in the default script pack there's a 'music' function already:

Code:
[FUNCTION music]
IF (<ISPLAYER>)
MIDILIST <ARGS>
ENDIF

And coruja made some changes on regions to fix some errors when calling it, so updating map files (if the problem is related to map) will also help solving this issue.

Thank you so much