SEBO Posted April 24, 2013 Posted April 24, 2013 Siamano, zrobiłem se wybierałke skinów. Ale powstał jeden mały problem. Otóż do przodu zmienia skin, a do tyłu nie: local wybranySkin = 0 function nastepnySkin() wybranySkin = wybranySkin+1 setElementModel(manekin, wybranySkin) end function poprzedniSkin() wybranySkin = wybranySkin-1 setElementModel(manekin, wybranyskin) end -- Etap 1 manekin = createPed(wybranySkin, -1753.73, 884.88, 295.88) setCameraMatrix(-1753.73, 889, 296.3, -1753.73, 884.8, 295. local skinLewo = guiCreateStaticImage(w*3/10, h*8.5/10, w*1/10, h*0.5/10, "Foty/lewo.png", false) local skinPrawo = guiCreateStaticImage(w*6/10, h*8.5/10, w*1/10, h*0.5/10, "Foty/prawo.png", false) addEventHandler("onClientGUIClick", skinLewo, poprzedniSkin) addEventHandler("onClientGUIClick", skinPrawo, nastepnySkin) Jak zmienie skin na wyższy, to wszystko jest ok, ale jak próbuje zmienić skin na niższy wyskakuje: WARING: BRP-Konto\Postac.lua:73: Bad argument @ 'setElementModel'
dzek (varez) Posted April 24, 2013 Posted April 24, 2013 A czy przypadkiem nie próbujesz schodzić z tymi ID modeli zbyt nisko (tj. w GTA nie ma takiego modelu)? Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
dzek (varez) Posted April 24, 2013 Posted April 24, 2013 okej, widzę. duże/małe litery zepsułeś w nazwie zmiennej Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Mefisto_PL Posted April 27, 2013 Posted April 27, 2013 function poprzedniSkin() wybranySkin = wybranySkin-1 setElementModel(manekin, wybranySkin) end Tak jakbyś nie ogarnął ;d
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