ID:263619
 
Code:
Form/Power
form_reusable = 0

var
num
num_size = 10


ProcessForm()

if(usr.tp >= num)
usr.tp -= num


HtmlLayout()
return \
{"

<html>
<head>

<STYLE>BODY {background: black; color: blue}</STYLE>
<head><title>Leveling</title></head>
<BODY BG = #3333334 BACKGROUND="42432.GIF">
</head>


<table border=1 width=350 height=45>
<tr>
<td>Description: <td>
<br>
</tr>
<tr>
<td>Insert Amount of Points
[num]</td>
<td>
[submit]</td>
</tr>
</table>
</html>
"}


runtime error: type mismatch
proc name: ProcessForm (/Form/Power/ProcessForm)
source file: Level Purchase.dm,18
usr: Jordan Styles (/mob/PC)
src: /Form/Power (/Form/Power)
call stack:
/Form/Power (/Form/Power): ProcessForm()
/Form/Power (/Form/Power): StopWaiting()
/Form/Power (/Form/Power): Topic("src=%5B0x21000041%5D&num=1", /list (/list))
Jordan Styles (/client): Topic("src=%5B0x21000041%5D&num=1", /list (/list), /Form/Power (/Form/Power))
Jordan Styles (/client): Topic("src=%5B0x21000041%5D&num=1", /list (/list), /Form/Power (/Form/Power))


Problem description:
Well, I just started to learn HTML Forms, but I'm using Deadron's HTML Library on the game to start off till I get the hang of it, now what I'm trying to do is make it so that when the player enters a number of training points it add's on to that certain statistic. But it's not working, anyone have an idea why?