.:HyPeX:. Posted February 18, 2014 Posted February 18, 2014 Hey guys, any tip on how to make this actually work? if i select a manual one it works.. local path = "WheelImages/"..upgrade..".png" local image = guiCreateStaticImage( 0.1, 0.1, 0.8, 0.6, tostring(path),true, ShowWindow) My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
DNL291 Posted February 18, 2014 Posted February 18, 2014 Show where upgrade is defined. It must be returning a string, otherwise, use tostring. Please do not PM me with scripting related question nor support, use the forums instead.
.:HyPeX:. Posted February 18, 2014 Author Posted February 18, 2014 i was passing a wrong arg to the function, now i got a problem, i output the upgrade to load right? i draw the same filename as upgrade, i checked the file and it is okay, but it loads the same image for 2 selects.. how this happened: i selected 2 wheels and previewed them, and they were same. Another player saw other 2 wheels same, but my match was okay for him.. So it is a strange thing. EDIT: Wondering arround changed some names, Found that it is the same One at the table whos bugging up, if i show it first it doesnt shows anything (somehow), but if i select another one and play it it shows, then i go back to the previous and it shows the one i had shown before. table: Upgrade: 1082 name: Really White Wheels Wheels = { { name = "Big Ray Wheel", price = "25000", upgrade = 1074 }, { name = "Black Badass", price = "25000", upgrade = 1076 }, { name = "Black Style Wheels", price = "25000", upgrade = 1085 }, { name = "Common Badass", price = "25000", upgrade = 1098 }, { name = "NFS Wheel 1", price = "25000", upgrade = 1075 }, { name = "Cool Wheel 1", price = "25000", upgrade = 1077 }, { name = "Styled Black", price = "25000", upgrade = 1096 }, { name = "Cool Grey", price = "25000", upgrade = 1081}, { name = "NFS Wheel 2", price = "25000", upgrade = 1080 }, { name = "Organe", price = "25000", upgrade = 1073 }, { name = "Cool Wheel 2", price = "25000", upgrade = 1078 }, { name = "Golden Style", price = "25000", upgrade = 1025}, { name = "Really White Wheels", price = "25000", upgrade = 1082 }, { name = "Cool Wheel 3", price = "25000", upgrade = 1079 }, { name = "Cool Rays", price = "25000", upgrade = 1083 }, { name = "NFS Wheel 3", price = "25000", upgrade = 1097 }, { name = "4x4", price = "25000", upgrade = 1084 } } My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
.:HyPeX:. Posted February 18, 2014 Author Posted February 18, 2014 Nevermind, found out it was becouse the image wasnt loaded in the meta. My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
AboShanab Posted February 18, 2014 Posted February 18, 2014 (edited) local path = "WheelImages/"..upgrade..".png" guiStaticImageLoadImage( image, path ) Edited February 18, 2014 by Guest Skype : aboshanab_
AboShanab Posted February 18, 2014 Posted February 18, 2014 .:HyPeX:. : add me in your skype my skype name : alooy.almajhol Skype : aboshanab_
Wei Posted February 18, 2014 Posted February 18, 2014 GuiStaticImageLoadImage try using that Diet with russian vodka, lose 3 days in one week !
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now