M[ROYAL]R Posted July 17, 2015 Share Posted July 17, 2015 شو الخطآ الى فى الكود + انا مركبه من الويكي addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[5] ) then x1 = GUIEditor.edit[1] y1 = GUIEditor.edit[2] x2 = GUIEditor.edit[4] y2 = GUIEditor.edit[5] x3 = GUIEditor.edit[7] y3 = GUIEditor.edit[8] x4 = GUIEditor.edit[12] y4 = GUIEditor.edit[11] HIGH = GUIEditor.edit[13] water = createWater ( x1, y1, HIGH, x2, y2, HIGH, x3,y3, HIGH, x3, y4, z4 ) setWaterLevel ( HIGH ) end end ) Link to comment
Froze Posted July 17, 2015 Share Posted July 17, 2015 addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[5] ) then x1 = guiGetText(GUIEditor.edit[1]) y1 = guiGetText(GUIEditor.edit[2]) x2 = guiGetText(GUIEditor.edit[4]) y2 = guiGetText(GUIEditor.edit[5]) x3 = guiGetText(GUIEditor.edit[7]) y3 = guiGetText(GUIEditor.edit[8]) x4 = guiGetText(GUIEditor.edit[12]) y4 = guiGetText(GUIEditor.edit[11]) HIGH = guiGetText(GUIEditor.edit[13]) water = createWater ( x1, y1, HIGH, x2, y2, HIGH, x3,y3, HIGH, x3, y4, z4 ) setWaterLevel ( HIGH ) end --- end function end ---- end if ) Link to comment
justboy Posted July 17, 2015 Share Posted July 17, 2015 لو تلاحظ الكود guiGetText يرجع سترنق و فنكشن createWater يطلب أرقام مو سترنق عشان كذا أستخدم tonumber ^ لتحويل الستنرق الى أرقام 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