-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
It would be better to get the account outside the loop.
-
يا نهار اسود وش الي موجود من قبل انا ما اقول لك ضيف الكود ذا ذا موجود من قبل logIn(source, account, password) انا اقول لك ضيف ذا بعده triggerClientEvent(source, "onLoginSuccess", source)
-
الفنكشن وين تشوفه انت؟
-
بعد السطر ذا logIn(source, account, password) تحط ذا الكود
-
لا تجنني انا اقصد الكود حق تسجيل الدخول الي انت معدل فيه
-
المشكلة بكودك و بما انك ما حطيت كودك محد يقدر يقول لك وين المشكلة
-
شوف السيرفر في كود تسجيل الدخول لما يسجل دخول فيه تريقر للكلينت عشان يظهر اختيار التيم و الشخصية triggerClientEvent(source, "onLoginSuccess", source)
-
^ ذي فنكشات مو افنتات و هوعبارة عن ويكي للتكتيك Wiki.chm مع مود التكتيك ملف اسمه فيه فنكشات و افنتات الكلينت و السيرفر بس مشكلته انه باللغة الروسية بس رح تقدر تعرف اسماء الفنكشات و الأفنتات و ممكن يساعدك قوقل بالترجمة
-
This not even a type it's vehicle name -_-".
-
This mta client problem, just update your mta.
-
كودك مليان اخطاء function ped(cmd, id) local id = tonumber(id) if (id) then local x, y, z = getElementPosition(localPlayer) x = x+4 guard = createPed(id, x, y, z) setPedLookAt(guard, x, y, z) local xg, yg = getElementPosition(guard) local dis = getDistanceBetweenPoints2D(x, y, xg, yg) if (dis > 5) then setPedControlState(guard, "forwards", true) else setPedControlState(guard, "forwards", false) end else outputChatBox("syntax:/guard Skin ID") end end addCommandHandler("guard", ped)
-
ليه حاطه _ ذا و عندك خطأ في مكان الأند و عموماً البيد ما رح يمشي لان دائماً رح يكون البيد جنبك اول ما تسويه الكود حقك مو عملي ._.
-
Did you add it in the meta of the original resource which contains the function otherTestFunction or the resource where you are trying to call the function?
-
Nice English lol.
-
الميوت مافيه له وقت اصلاً
-
sver in F8. And check the debug if there any error debugscript 3 in F8.
-
I mean by version the release number r-6xxx. I don't think there any problem since it working in my server.
-
What client/server version you've tried? And are you sure you've used the code server side in the meta?
-
local x = 0 local xx = 400 addEventHandler("onClientRender", root, function() if x < xx then x = x + 0.5 guiSetPosition(GUIEditor.window[1], x, 200, false) end end)
-
guiWindowSetSizable( wndAmmu, false ) guiWindowSetMovable( wndAmmu, false ) guns = { {"m4", 500}, } gridAmmu = guiCreateGridList(0.01, 0.2, 0.99, 0.5, true, wndAmmu) guiGridListAddColumn(gridAmmu, "Guns", 0.85) guiGridListAddColumn(gridAmmu, "Price", 0.85) for i,gun in ipairs(guns) do row = guiGridListAddRow(gridAmmu) -- guiGridListSetItemText(gridAmmu, row, 1, tostring(gun[1]), false, false) -- It's gun not guns. -- guiGridListSetItemData(gridAmmu, row, 1, tostring(gun[2])) -- It's gun not guns and data not needed since you already have Price column. guiGridListSetItemText(gridAmmu, row, 2, tostring(gun[2]), false, false) end function buyGun() local row, col = guiGridListGetSelectedItem(gridAmmu) if (row and col and row ~= -1 and col ~= -1) then -- local gun = tostring(guiGridListGetItemData(gridAmmu, row, 0)) -- Wrong column ID and you need text not data. -- local price = tonumber(guiGridListGetItemData(gridAmmu, row, 1)) -- Wrong column ID and you need text not data. local gun = tostring(guiGridListGetItemText(gridAmmu, row, 1)) local price = tonumber(guiGridListGetItemText(gridAmmu, row, 2)) if (( price ~= "" ) and ( gun ~= "" )) then triggerServerEvent("buyGunForPlayer", localPlayer, getWeaponIDFromName(gun), price) -- You need to get the weapon ID from the weapon name. end end end addEventHandler("onClientGUIClick", buyGunBtn, buyGun, false) function closeAmmuGui() if (source == cancelGunBtn) then guiSetVisible(wndAmmu,false) showCursor(false) end end addEventHandler("onClientGUIClick", cancelGunBtn, closeAmmuGui) function showGUIp() guiSetVisible(wndAmmu,true) showCursor(true) end addEvent("showAmmuGUI",true) addEventHandler("showAmmuGUI", getRootElement(), showGUIp)
-
setTimer -- تسوي تايمر لما اللاعب يدخل الوظيفة takePlayerMoney -- و تحط فنكشن سحب الفلوس داخل التايمر Event: 'onPlayerWasted' -- تستخدم الحدث فيه حاله ان اللاعب الي عليه ايقونة مات -- تحقق ان القاتل هو اللاعب الي دخل الوظيفة isTimer -- تحقق ان التايمر موجود الي سويته لما اللاعب دخل الوظيفة killTimer -- نلغي التايمر لان اللاعب الي علية ايقونة مات عشان ما يسحب فلوس
