ID:145102
 
this is from nadrews leveling system that i wanted to work with but this problem stops me from using it.

this is the part its mad at.
mob // line 58, problem line
var
health = 100
maxhealth = 100
exp = 0
maxexp = 1000
level = 1
and this is the error.

Testworld.dm:58:error: missing expression

I cant find out whats wrong with it
I don't see any missing expessions.
In response to Evidence
1) Use <dm> CODE </dm> for codes please

2) Please post a few lines before Line 58

- GhostAnime
In response to GhostAnime
GhostAnime wrote:
1) Use <dm> CODE </dm> for codes please

2) Please post a few lines before Line 58

- GhostAnime

&lt;* ^-^
In response to DivineO'peanut
mob
proc
Statup()
src.maxhealth+=20//adds to your health
src.health=src.maxhealth
src<<"Your stats increase!"/

mob// problem line 58 here,Testworld.dm:58:error: missing expression
var
health = 100
maxhealth = 100
exp = 0
maxexp = 1000
level = 1

mob
Stat()//Calls the stat proc.
..()
statpanel("Stats")//Makes a new statpanel called "Stats"
stat("Health","[health]/[maxhealth]")
stat("Experience","[exp]/[maxexp]")//Creates a new stat called "Experience" and gives it the value of "exp/maxexp"
stat("Level",level)
In response to Osirus2440
Osirus2440 wrote:
> mob
> proc
> Statup()
> src.maxhealth+=20//adds to your health
> src.health=src.maxhealth
> src<<"Your stats increase!"/ //<--- That shouldn't be there.
>
> mob// problem line 58 here,Testworld.dm:58:error: missing expression
> var
> health = 100
> maxhealth = 100
> exp = 0
> maxexp = 1000
> level = 1
>
> mob
> Stat()//Calls the stat proc.
> ..()
> statpanel("Stats")//Makes a new statpanel called "Stats"
> stat("Health","[health]/[maxhealth]")
> stat("Experience","[exp]/[maxexp]")//Creates a new stat called "Experience" and gives it the value of "exp/maxexp"
> stat("Level",level)
>




Notice the "/", im positive that shouldn't be there.
In response to Evidence
Ahhh lol thanks for the tip lol i couldnt see what was wrong :P