ID:141381
 
Code:
Dynamicinputs/proc
Menu(caller=usr,caption="",title="",var/Menuroot,var/Menusecond,var/Menufinal)
//var/tmp/Gunlist = list("M4"=1,"Uzi"=2,"Pistol"=3,"Desert Eagle"=4,"Barrett 50 Cal"=5,"M21"=6)
var/Superlist = list("Gun"=1,"Upgrade"=2,"Nothing"=3)
var/a
var/b
var/c
//var/d
if(Superlist[Menuroot]==1)
Superlist.Remove(1,0)
(...)


Problem description:
I get
Remove:undefined proc

same thing for ALL the list procs, cut, add ect ect.
Probably somthing completely simply and basic that im overlooking -.-
var/list/SuperList = list("Gun"=1,"Upgrade"=2,"Nothing"=3)


Basically SuperList does contain a list, but you're treating it as just a general variable, so later code doesn't know it's a list.
In response to Stephen001
Thanks a bunch!
In response to Rushnut
Alternatively, you could cheat and use Superlist:Remove(1,0) instead.

This will make the compiler assume that the Superlist var will have that proc at runtime, so it wouldn't give you errors.
Perpetr8r the Perpetu8r wrote:
Alternatively, you could cheat and use Superlist:Remove(1,0) instead.

You should never use : when it could be easily avoided.
In response to Falacy
Falacy wrote:
Perpetr8r the Perpetu8r wrote:
Alternatively, you could cheat and use Superlist:Remove(1,0) instead.

You should never use : when it could be easily avoided.

Even someone as dumb as me (a goto user *GASP*) wouldnt rely on the : it promotes lazieness D: