unterminated #call(#loadtext) procedure

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
1
125
in this script i have its giving me this error on the CD screen saying this

unterminated #call(#loadtext) procedure

here is script in full

Code:
#if
Checklevel 30
#ACT
FormatStr "FLD_CHARACTER='%s'" %Username
ReadValueSql  "TBL_CHARACTER"  %A9  "FLD_LEVEL" [levelcheck]
#ELSEACT
break

[levelcheck()]
#ACT
mov D1 %arg(1)
goto @announce

[@announce]
#SAY
Welldone

any help would be appreciated
 

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
i see only that @ is missing [@levelcheck()] but iam not sure if it must be on that place i must look and i will give me some minutes
 
Upvote 0

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
Code:
#if
Checklevel 30
#ACT
FormatStr "FLD_CHARACTER='%s'" %Username
ReadValueSql  "TBL_CHARACTER"  %A9  "FLD_LEVEL" [COLOR=red]@levelcheck[/COLOR]
#ELSEACT
break
 
[COLOR=red][@levelcheck()][/COLOR]
#ACT
mov D1 %arg(1)
goto @announce
 
[@announce]
#SAY
Welldone

so i think it must be that way sure i havent test it now but most of my scripts say it must in that way so gl

ameno
 
Upvote 0

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
1
125
thanks m8 im such a dunce that i didnt pick that up in the firstplace :S

~~ EDIT
nope still didnt work :S
 
Last edited:
Upvote 0

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
This is not the problem Script Hallmat, search for the script caller...

mean : other script say #CALL "you showed Script here" and on this position
is your problem. Please show me the Caller Script. ;-)
 
Upvote 0

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
1
125
[@_UpLevel]
#ACT
#CALL [system\level\lvl.txt] @@_UpLevel
break

i think this is what your after m8
 
Upvote 0

nightwalker

Dedicated Member
Dedicated Member
May 2, 2003
53
0
102
[@_UpLevel]
#ACT
#CALL [system\level\lvl.txt] @@_UpLevel
break

i take it that the code below
Code:
#if
Checklevel 30
#ACT
FormatStr "FLD_CHARACTER='%s'" %Username
ReadValueSql  "TBL_CHARACTER"  %A9  "FLD_LEVEL" @levelcheck
#ELSEACT
break
 
[@levelcheck()]
#ACT
mov D1 %arg(1)
goto @announce
 
[@announce]
#SAY
Welldone

is located in [@_UpLevel] whicch can be found in system\level\lvl.txt?

if this is rthe case i hove noticed 2 points that may hrelp
Code:
[COLOR="red"][@_UpLevel][/COLOR]
#ACT
#CALL [system\level\lvl.txt] [COLOR="Red"]@@_UpLevel[/COLOR] 
break

@_xxx signigies an autorun script and is generaly located in the 00Default.txt file
@@xxx signifies a txt/number input string, like wen u enter the numbrer of pots you want to bye.

if i am interperetint this script properly you are trying to read a character level from a database table and check to see weather that character is 30 now you cul either just do a checklevel 30 and leave out the database check or read the level value from the table and check to see weather that is equal to xx.

below is an example script that reads the data from a table and checks it..

the code that makes the call

[@UpLevel]
#ACT
#CALL [system\level\lvl.txt] @UpLevel_2
break


[system\level\lvl.txt]

[@UpLevel_2]
{
#ACT
FormatStr "FLD_CHARACTER='%s'" %Username
ReadValueSql "TBL_CHARACTER" %A9 "FLD_CHARACTER, FLD_LEVEL" @levelcheck
#ELSEACT
break

[@levelcheck()]
#ACT
MOV A1 %arg(1) ;Stores the character name
MOV D1 %arg(2) ;Stores the character level
goto @announce

[@announce]
#if
EQUAL D1 30
#SAY
Welldone you are level 30..\\
<Close/@exit>
#ELSESAY
You are only level <%OUTPUT(D1)> you need to be level 30.\\
<Close/@exit>

}

i hope this helps.
 
Upvote 0

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
1
125
it didnt work it didnt announce anything and i edited the files b4 i asked for help hence the dim error with the double @@

here is what i wanted the script to do


call the users level when they level up but only for the 1 person not the whole server and then congratulate them,


ok been up most of the night trying to sort this out

and it isnt calling when a player levels up :S

i have changed the script to

#SAY
hello

and it does not come up :S

im gonna try and put my back up in
 
Last edited:
Upvote 0