PHP Code:
for(i=0;i<player.weapons.size();i++){
if(player.weapons[i].name.starts("-")) continue;
if(player.weapons[i].name.pos("/")) continue;
new GuiBitmapButtonCtrl("PhilSmith_Weapon_"@i){
profile=PhilSmith_HUDButtons;
x = PhilSmith_Inventory.x+(i*40);
y = PhilSmith_Inventory.y+15;
normalbitmap = temp.imgs[i];
mouseoverbitmap = temp.imgs[i];
pressedbitmap = temp.imgs[i];
width = 32;
height=32;
text=player.weapons[i].name;
}
}
Use player.weapon[S] not player.weapon
gj on coding though
