Form/Example
form_reusable = 0
var
name
name_size = 30
race
race_values = list("Green Spartan","Blue Spartan","Red Spartan","Yellow Spartan","White Spartan","Brown Spartan","Purple Spartan","Tan Spartan")
if("Green Spartan")
usr.icon = 'Master Chief.dmi'
usr.icon_state = "Green"
Problem description:
Hi I am making a Halo game and I am using Dantom's FormDemo. The demo had it so when you click the race name in the browser a whole list of other options of races comes down. I am trying to make it so you can make it so when u click a name that the users icon will be what ever icon it is. But it doesnt seem to work errors come up thats says:
loading Halo Combat Mission.dme
loading My Script.dms
Main.dm:70:error:list:undefined proc
Main.dm:70:error:= :expected a constant expression
Main.dm:72:error:usr.icon:undefined var
Main.dm:73:error:usr.icon_state:undefined var
Halo Combat Mission.dmb - 4 errors, 0 warnings (double-click on an error to jump to it)
How can I fix this so the icons will work. Thanks.
->Calus CoRPS<-
if this is at the Login() part, you should remove the 'usr.' on the vars. It will be a problem if you don't.
--Vito