Axel Posted February 18, 2013 Share Posted February 18, 2013 I have a problem with loading an image, it works perfectly most of the time, but sometimes instead of loading the image it must load it show's a white image and returns an error like: Bad ussage @ 'guiStaticImageLoadImage' [Problem loading image 'path'] Thanks for helping! Link to comment
iPrestege Posted February 18, 2013 Share Posted February 18, 2013 Post you're script. Link to comment
Axel Posted February 18, 2013 Author Share Posted February 18, 2013 blackMales = {000,007, 014, 015, 016, 017, 018, 020, 021, 022, 024, 025, 028, 035, 036, 050, 051, 066, 067, 078, 079, 080, 083, 084, 102, 103, 104, 105, 106, 107, 134, 136, 142, 143, 144, 156, 163, 166, 168, 176, 180, 182, 183, 185, 220, 221, 222, 249, 253, 260, 262 ,269,270,271,293,296,297,300,301,310,311} whiteMales = {001,002,268,023, 026, 027, 029, 030, 032, 033, 034, 035, 036, 037, 038, 043, 044, 045, 046, 047, 048, 050, 051, 052, 053, 058, 059, 060, 061, 062, 068, 070, 072, 073, 078, 081, 082, 094, 095, 096, 097, 098, 099, 100, 101, 108, 109, 110, 111, 112, 113, 114, 115, 116, 120, 121, 122, 124, 125, 126, 127, 128, 132, 133, 135, 137, 146, 147, 153, 154, 155, 158, 159, 160, 161, 162, 164, 165, 170, 171, 173, 174, 175, 177, 179, 181, 184, 186, 187, 188, 189, 200, 202, 204, 206, 209, 212, 213, 217, 223, 230, 234, 235, 236, 240, 241, 242, 247, 248, 250, 252, 254, 255, 258, 259, 261, 264 ,272,290,291,292,295,299,303,305,306,308,312} asianMales = {049, 057, 058, 059, 060, 117, 118, 120, 121, 122, 123, 170, 186, 187, 203, 210, 227, 228, 229,294} blackFemales = {009, 010, 011, 012, 013, 040, 041, 063, 064, 069, 076, 091, 139, 148, 190, 195, 207, 215, 218, 219, 238, 243, 244, 245, 256 ,298,304} whiteFemales = {012, 031, 038, 039, 040, 041, 053, 054, 055, 056, 064, 075, 077, 085, 086, 087, 088, 089, 090, 091, 092, 093, 129, 130, 131, 138, 140, 145, 150, 151, 152, 157, 172, 178, 192, 193, 194, 196, 197, 198, 199, 201, 205, 211, 214, 216, 224, 225, 226, 231, 232, 233, 237, 243, 246, 251, 257, 263 } asianFemales = {038, 053, 054, 055, 056, 088, 141, 169, 178, 224, 225, 226, 263} local array = nil if (skincolour==0) then if (gender==0) then array = blackMales elseif (gender==1) then array = blackFemales end elseif (skincolour==1) then if (gender==0) then array = whiteMales elseif (gender==1) then array = whiteFemales end elseif (skincolour==2) then if (gender==0) then array = asianMales elseif (gender==1) then array = asianFemales end end if (curskin==1) then curskin = #array skin = array[1] else curskin = curskin - 1 skin = array[curskin] end end setElementModel(getLocalPlayer(), tonumber(skin)) guiStaticImageLoadImage(skinimage,"img/"..tonumber(skin)..".png") Link to comment
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