hey all,
ok, well, i'm trying to do what i said in the title. the code is thus
text 148,291,weapons(Wyman.weapon).name$
ammo$ = str$(weapons(Wyman.weapon).ammo)
maxammo$ = str$(weapons(Wyman.weapon).maxammo)
and i declared it above with
`CREATE TYPES
type player
x#, z#, was, wae, ras, rae, weapon, health
wss, wse, wes, wee, rss, rse, res, ree, obj, yrot#
endtype
type weapon
name$, dmg, ammo, maxammo
endtype
`CREATE PLAYER
dimtype player,Wyman
Wyman.obj = 100
Wyman.health = 10
load object "Models/Wyman.x",Wyman.obj
yrotate object Wyman.obj,180
fix object pivot Wyman.obj
position object Wyman.obj,5,0,5
scale object Wyman.obj,30,30,30
Wyman.weapon = 1
`CREATE WEAPONS
dimtype weapon,weapons(12)
weapons(1).name$ = ".44 ca Colt Army"
weapons(1).ammo = 6
weapons(1).maxammo = 6
i can't see what's wrong, unless you can't use types as array indices? thx all.
oh, wow. insignificantpunks.cjb.net. we like orange treble clef notes, just for future reference.
no: website for progs yet.