Leaderboard
Popular Content
Showing content with the highest reputation on 16/06/18 in Posts
-
Provavelmente o erro está no seu painel de login. Procure no script client essa linha: addEvent ("hideLoginWindow") E coloque um true no segundo argumento. addEvent ("hideLoginWindow", true) Se tiver um false no segundo argumento, substitua o false pelo true.1 point
-
addEvent ( string eventName [, bool allowRemoteTrigger = false ] ) O segundo argumento do evento está definido como false. Significa que o evento só vai poder ser chamado no próprio lado.1 point
-
1 point
-
Troque a linha inteira do outputServerLog por isso: outputServerLog (getPlayerName(player)..": Limpou o chat!")1 point
-
الحلول كثيرة بالنسبة لي افضل حل يكون فيه جدول , وكل مايدخل لاعب تسوي لوب على عدد الاعبين وتحط لكل لاعب ايدي خاص مثال وتتحقق number = { } if not number [ i ] then number [ i ] = source end وتسوي داتا على الاعب برقم الايدي حقه وبس يطلع الاعب تجيب الداتا وتخلي قيمة الرقم غير معرفة مثل number [ getElementData ( ... ) ] = nil هذي اساسيات من الفكرة موب كاملة1 point
-
https://tapleto-host.net/ar/ عندي سيرفر هناك صار له سنة و 100 ال 100 @TAPL صاحبها1 point
-
اقصد كـ رأي ما اتوقع انها بتسوي مشاكل لأن جميع العمليات رح تكون على الحاسب الشخصي فقط وما استعملت الجداول لأن الكود رح يكون اكبر ولو لاحظت ( موجود جدول بالفعل بس نسيت ازيله ) لكن انا افضل استعمال الداتها لسهولتها1 point
-
انا معطيك مثال موب كود كامل هذا جزء بالنسبة اذا تبي تغير الرقم تسوي متغير يزيد مع كل لاعب يدخل + جرب بنفسك وحاول تصلح الخطأ انت جاي تتعلم موب تاخذ وتمشي بالتوفيق1 point
-
Yes. More custom fonts use more video memory. But I've never been watching this. In negligible part. I'm paying attention to not creating multiple fonts in a Resource. Example: In the resource folder I create a fonts.lua (client) file. And I create the dxfont only here and I can use this custom font in every client file.1 point
-
1 point
-
myString = " How Are You" repStr = string.sub ( myString,2 ) print ( repStr ) طبعا لو فيه اكثر من مسافة ببداية السترنق غير رقم 2 ل 3 او 4 ع حسب المسافات1 point
-
1 point
-
function cl_RemoveVehicleOwner ( theVehicle ) if isElement (theVehicle) then local theOwner = getElementData ( theVehicle, "cl_vehicleowner" ) if ( theOwner ~= false ) then removeElementData ( theOwner, "cl_ownedvehicle" ) removeElementData ( theVehicle, "cl_vehicleowner" ) removeElementData ( theVehicle, "cl_vehiclelocked" ) removeElementData ( owned, "cl_enginestate" ) end setVehicleLocked ( theVehicle, false ) end end1 point
-
function cl_RemoveVehicleOwner ( theVehicle ) if not (theVehicle) or getElementType(theVehicle) ~= "vehicle" then return end local theOwner = getElementData ( theVehicle, "cl_vehicleowner" ) if ( theOwner ~= false ) then removeElementData ( theOwner, "cl_ownedvehicle" ) removeElementData ( theVehicle, "cl_vehicleowner" ) removeElementData ( theVehicle, "cl_vehiclelocked" ) removeElementData ( owned, "cl_enginestate" ) end setVehicleLocked ( theVehicle, false ) end Se esses erros não tiverem afetando o funcionamento do script, não é obrigatório corrigir, menos que esteja te incomodando no debug.1 point
-
Java for android C# for android , windows and IOS swift for IOS كل لغه فيها مميزات وسلبيات لكن انا ابرمج بأستخدام الجافا1 point
-
@hawkbr Realmente não era pra ter mostrado só essas mensagens no chat sem ter algum erro no script. Pode ter um erro no trecho da tabela BlipsMEC, essa tabela tá definida no script? Seria mais fácil postar o código inteiro, poderíamos ter resolvido faz tempo sem ter que ficar olhando pra pequenas partes do código. Fica a seu critério mandar o código pra alguém em privado ou não. Acho que faltou uma explicação do que vocês de fato querem fazer com essa marcação, mecânico, etc. O destroyElement(BlipsMEC[theUser]) vai remover o blip do jogador sem erros, o problema como eu já disse pode estar em outra coisa.1 point
-
1 point
-
Deve-se encaminhar o problema para o pessoal do MTA. Resources nativos não devem ter esses pequenos problemas. No meu eu coloquei assim: setTimer (kickPlayer, 100, 1, player, string.gsub(getPlayerName (source), "#%x%x%x%x%x%x", ""), mdata) Sem erros.1 point
-
السلام عليكم ورحمة الله وبركاته guiFadeElement لكن بشكل مختلف guiSetVisible الوظيفة تشبه انا ما ادري اذا احد مسوي الوظيفة قبل او لا بس سويت نسخة تجريبية - ان شاء الله ما فيها مشاكل - والوظيفة عبارة عن تقليل او زيادة الشفافية لعنصر معين من عناصر التصميم GUI الكود الاساسي function guiFadeElement ( element, boolean, time, inOut ) if isElement ( element ) ~= true or type ( boolean ) ~= "boolean" then return false end guiSetEnabled ( element, boolean ) if type ( fadeTable ) ~= "table" then fadeTable = {} end if getElementData ( element, "real.alpha" ) == false then setElementData ( element, "real.alpha", ( ( guiGetAlpha ( element ) / 1 ) * 255 ) ) end if guiGetVisible ( element ) == false then guiSetAlpha ( element, 0 ) end local remove = function ( element ) if isTimer ( getElementData ( element, "gui.timer" ) ) then killTimer ( getElementData ( element, "gui.timer" ) ) end end remove ( element ) local execute = function ( element, boolean, inOut ) if boolean == false then guiSetAlpha ( element, ( ( ( guiGetAlpha ( element ) / 1 ) * 255 ) - ( inOut or 25 ) ) / 255 ) if ( ( guiGetAlpha ( element ) / 1 ) * 255 ) <= 5 then remove ( element ) guiSetAlpha ( element, 0 ) guiSetVisible ( element, boolean ) end elseif boolean == true then guiSetVisible ( element, boolean ) guiSetAlpha ( element, ( ( ( guiGetAlpha ( element ) / 1 ) * 255 ) + ( inOut or 25 ) ) / 255 ) if ( ( guiGetAlpha ( element ) / 1 ) * 255 ) >= tonumber ( getElementData ( element, "real.alpha" ) ) then remove ( element ) guiSetAlpha ( element, getElementData ( element, "real.alpha" ) / 255 ) end end end guiTimer = setTimer ( execute, ( time or 50 ), 0, element, boolean, inOut ) setElementData ( element, "gui.timer", guiTimer ) end التركيبة guiFadeElement ( element guiElement, true / false[, speed 50:unlimited, decrease rate 1:255] ) مثال بسيط button = guiCreateButton(50, 50, 150, 50, "killerProject", false) function test () guiFadeElement ( button, not guiGetVisible ( b ) ) end setTimer ( test, 1*1000, 0 ) احس اني ما اعطيت الكود حقه في البرمجة واللي يبي يعدل على الكود ما فيه مشاكل لأني صراحة شايفه كبير شوي1 point
-
اترك نظام تستقعد له . انت تشوف ماله استعمال غيرك يشوف له استعمال . يعني لآتدور المشاكل مع الرجال . لو بينكم شي ومشاكل مو تجي هنا تطلع حرتك ؟ قدر واحترم اللي يقرون الموضوع كذا غلطت عليه وغلطت علينا . بكل موضوع هو يعلق اشوفك بذا الحساب او حسابك الثاني تدور معه مشاكل خلك رجل !1 point
-
عادي تقدر تضيف كولمن ثاني فيه الاسعار ولما يشتري يجلب له السعر من الكولمن ؟ صعبه1 point
-
Ele não editou a resource, isso é um warning nativo da propria resource, a solução é: setTimer ( kickPlayer, 100, 1, player, (getElementType(source) = "player") and source or "Console", reason ) Igual o DNL disse, esse warning causa quando você tenta kikar alguém pelo console!1 point
-
السلام عليكم ورحمة الله وبركاته اليوم رجعتلكم بوظيفة بسيطة وجديدة guiGridListAddWeapons من اسم الوظيفة واضح وهي عبارة عن اضافة اسماء الاسلحة لجريد ليست نروح للجملة التركيبية Syntax bool guiGridListAddPlayers ( element gridList, int columnIndex ) gridlist : الجريد ليست حقتك columnIndex : الكولمن حقك سورس كود : function guiGridListAddWeapons(gridlist, column) if( getElementType( gridlist ) == "gui-gridlist" ) then guiGridListClear(gridlist) for i=1,40 do local row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, row, column, getWeaponNameFromID(i), false, true) end end end مثال : local screenW, screenH = guiGetScreenSize() gridweapon = guiCreateGridList((screenW - 221) / 2, (screenH - 309) / 2, 221, 309, false) guiGridListAddColumn(gridweapon, "#", 0.9) guiSetVisible(gridweapon, false) function guiGridListAddWeapons(gridlist, column) if( getElementType( gridlist ) == "gui-gridlist" ) then guiGridListClear(gridlist) for i=1,40 do local row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, row, column, getWeaponNameFromID(i), false, true) end end end bindKey("F2","down", function( ) if ( guiGetVisible(gridweapon) == false ) then guiSetVisible(gridweapon, true) showCursor(true) guiGridListAddWeapons(gridweapon, 1) else guiSetVisible(gridweapon, false) showCursor(false) end end) النتيجة أتمني تكون اعجبتكم ويلا مع السلامة1 point
-
Tenta substituir essa linha com isto: setTimer ( kickPlayer, 100, 1, player, (getElementType(source) = "player") and source or "Console", reason )1 point
-
0 points
