Jump to content

ماهو الخطا في هاد الكود


momar5600

Recommended Posts

ليه لم ينجح

function mainWndShow()
	if not getPedOccupiedVehicle(g_Me) then
		hideControls(wndMain, 'اصلاح الموتر', '~|الالوان|~', '~|انقلاب|~')
	end
	updateTimer = updateTimer or setTimer(updateGUI, 2000, 0)
	updateGUI(true)
end

function mainWndClose()
	killTimer(updateTimer)
	updateTimer = nil
	colorPicker.closeSelect()
end

function onEnterVehicle(vehicle)
	setControlText(wndMain, 'curvehicle', getVehicleName(vehicle))
	showControls(wndMain, 'اصلاح الموتر', '~|الالوان|~', '~|انقلاب|~')
end

function onExitVehicle(vehicle)
	setControlText(wndMain, 'curvehicle', 'On foot')
	hideControls(wndMain, 'اصلاح الموتر', '~|الالوان|~', '~|انقلاب|~')
	closeWindow(wndUpgrades)
	closeWindow(wndColor)
end

 

Link to comment
wndMain = {
	'wnd',
	text = '',
	width = 251,
	x = 0,
	y= 10,
	height  = 600,
	controls = {
		{'lbl';id = "w1", x = 20, y= 6 ,width = 208, text='{Q.3}FreeRoom By:momar5600{Q.3}'},
		{'br'},
		{'btn';id='~|انتحار|~', onclick=killLocalPlayer , x = 10, y= 95 ,width = 104},
		{'btn';id='~|شخصيات|~', window=wndSkin , x = 136, y= 95 ,width = 104},
		{'btn';id='~|حركات|~', window=wndAnim , x = 10, y= 123 ,width = 104},
		{'btn';id='~|ادوات|~', window=wndWeapon , x = 136, y= 123 ,width = 104},
		{'btn';id='~|ملابس|~', window=wndClothes , x = 136, y= 151 ,width = 104},
		{'btn';id='playergrav', text='~|الجاذبية|~', window=wndGravity , x = 136, y= 179 ,width = 104},
		{'btn';id='انتقال الى', window=wndWarp , x = 10, y= 151 ,width = 104},   
		{'btn';id='~|حالات|~', window=wndStats , x = 10, y= 179 ,width = 104},
		{'br'},
		{'chk';id = "w1", id='نفاثة', onclick=toggleJetPack,x=10 , y=253 , width = 114},
		{'chk';id = "w1", id='falloff', text='السقوط من الدراجة', onclick=toggleFallOffBike,x=136 , y=215 , width = 114},
		 {"chk";id = "w4", id = "~|قفل الانتقال|~", onclick = nowarp,x=10 , y=213 , width = 114},
		 {"chk";id = "w1", id = "المطر الحقيقي", onclick = rain,x=134 , y=253 , width = 114},
		 {"chk";id = "w1", id = "تاثيرات السرعه | Speed Effect", onclick = efc,x=33 , y=285 , width = 180},
		{'btn', id='hack', text ='الهاك', window=wndcheats, x = 140, y= 492 ,width = 104},
		{'br'},
		{'lbl' , x = 8, y= 309 ,width = 50, text=': ماركبتك'},
		{'lbl', id='curvehicle', x = 68, y= 309 ,width = 161},
{"lbl"; id = "NAME", text = 'Your Name: ' .. getPlayerName(g_Me) .. ' ', x = 4, y= 49 ,width = 208},
{"lbl"; id = "PING", text = 'Your Ping: ' .. getPlayerPing(g_Me) .. ' ', x = 4, y= 72 ,width = 104},		
{'btn', id='~|جفظ المكان|~', window=wndBookmarks , x = 140, y= 517 ,width = 105},
		{'btn';id = "w1", id='setpos', text='~|الخريطة|~', window=wndSetPos , x = 10, y= 334 ,width = 104},
		{'btn';id = "w1", id='createvehicle', window=wndCreateVehicle , x = 10, y= 363 ,width = 104, text='~|مواتر الروم|~'},
		{'btn', id='upgrades', text='اصلاح الموتر', onclick=repairVehicle , x = 10, y= 390 ,width = 104},
		{'btn', id='color', text='~|الالوان|~', onclick=openColorPicker , x = 136, y= 390 ,width = 104},
		{'btn', id='setinterior', text='~|الاماكن|~', window=wndSetInterior , x = 137, y= 334 ,width = 104},
		{'btn', id='flip', text='~|انقلاب|~', onclick=flipVehicle , x = 10, y= 417 ,width = 230},
		{'btn', id='wndinfo', text='~|مساعدهـ|~', window=wndinfo , x = 140, y= 546 ,width = 106},
		{'btn', id='AD6', text='~|القوانين|~', window=AD6 , x = 10, y= 545 ,width = 121},
		{'btn', id='AD5', text='~|لوحة التحكم|~', window=AD5 , x = 11, y= 492 ,width = 119},             
		{'btn', id='AD5', text='~|الوزنيات الجاهزة|~', window=AD7 , x = 11, y= 517 ,width = 119},
		{'btn', id='time', text='~|الوقت|~', window=wndTime , x = 137, y= 364 ,width = 104},
		},
	oncreate = mainWndShow,
	onclose = mainWndClose
}

 

Link to comment

لم تتم التجربه

 

function mainWndShow()
	if not getPedOccupiedVehicle(g_Me) then
		hideControls(wndMain, 'upgrades', 'color', 'flip')
	end
	updateTimer = updateTimer or setTimer(updateGUI, 2000, 0)
	updateGUI(true)
end

function mainWndClose()
	killTimer(updateTimer)
	updateTimer = nil
	colorPicker.closeSelect()
end

function onEnterVehicle(vehicle)
	setControlText(wndMain, 'curvehicle', getVehicleName(vehicle))
	showControls(wndMain, 'upgrades', 'color', 'flip')
end

function onExitVehicle(vehicle)
	setControlText(wndMain, 'curvehicle', 'On foot')
	hideControls(wndMain, 'upgrades', 'color', 'flip')
	closeWindow(wndUpgrades)
	closeWindow(wndColor)
end

 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...