ID:262435
 
Code:
var/expoints

Battle_Points()
set category = "Chat"
set name = "Use Exp Points"
usr<<browse(points,"window=Edit Info,size=450x420")

var/points = {"
<html><head></head><body><form method=get action='byond://' ><STYLE>BODY{background: black; color: white}</STYLE><center><h1>Battle Point</h1></center><table width="100%">
<tr><td><i>You are allowed "
[expoints]" battle points to distribute into these categories:</td><td></td></tr><br>
<tr><td>&nbsp;</td><td>&nbsp</td></tr>
<tr><td><b>Powerlevel(+4108/point)</b></td><td><b>Ki(+3002/point)</b></td></tr>
<tr><td width="25%"><b><input name=powerlevel type=text ></b></td><td width="25%"><b><input name=kii type=text ></b></td></tr>
<tr><td><b>Attack(+1264/point)</b></td><td><b>Defense(+1580/point)</b></td></tr>
<tr><td width="25%"><b><input name=attack type=text ></b></td><td width="25%"><b><input name=defense type=text ></b></td></tr></table><br><br>
<center><input type=submit value='Submit' ></center></form></body></html>"}



loading DBZ Masters.dme
Master.dm:error:expoints:undefined var

DBZ Masters.dmb - 1 error, 0 warnings (double-click on an error to jump to it)


Problem description:
Why is this happening

mob/var/expoints

Battle_Points()
set category = "Chat"
set name = "Use Exp Points"
usr<<browse(points,"window=Edit Info,size=450x420")

var/points = {"
<html><head></head><body><form method=get action='byond://' ><STYLE>BODY{background: black; color: white}</STYLE><center><h1>Battle Point</h1></center><table width="100%">
<tr><td><i>You are allowed "
[src.expoints]" battle points to distribute into these .categories:</td><td></td></tr><br>
<tr><td>&nbsp;</td><td>&nbsp</td></tr>
<tr><td><b>Powerlevel(+4108/point)</b></td><td><b>Ki(+3002/point)</b></td></tr>
<tr><td width="25%"><b><input name=powerlevel type=text ></b></td><td width="25%"><b><input name=kii type=text ></b></td></tr>
<tr><td><b>Attack(+1264/point)</b></td><td><b>Defense(+1580/point)</b></td></tr>
<tr><td width="25%"><b><input name=attack type=text ></b></td><td width="25%"><b><input name=defense type=text ></b></td></tr></table><br><br>
<center><input type=submit value='Submit' ></center></form></body></html>"}


that should work :) ( you definied expoints as a normal var, not a var for a mob.)

O-matic