-
Posts
4,429 -
Joined
-
Last visited
Everything posted by #DRAGON!FIRE
-
ex : local table = { labels = { 100, 100, 100, 100, 200, 200, 200, 200 }, buttons = { 300, 300, 300, 300, 500, 500, 500, 500 }, ["onClientResourceStart"] = { function1, function2 }, } CreateLabels = guiCreateLabel( table[1][1], table[1][2], table[1][3], table[1][4] ) for i = 1, #table["onClientResourceStart"] do addEventHandler( "onClientResourceStart", resourceRoot, table["onClientResourceStart"][i] ) end
-
use: onPlayerCommand
-
u mean if change from admin panel ?
-
اطرح كودكـ كامل او يوم تعطيه السلاح
-
انا جبت القيمة الاولة والثانية من المفتاح الثاني هو مسوي كذا local random = weapons[math.random(#weapons)] فالفنترض الراندوم جا ع رقم 2 صار local random = weapons[2] الحين المفتاح الثاني صار بيجي يسوي كذا random[1], random[2] هو كذا مسويها يعني كانه سوا كذا weapons[2][1], weapons[2][2]
-
giveWeapon ( plr, random[1], random[2] ) مو المفروض تحطهم 3 قيم ؟ لان عندك 3 تيبلات ؟ giveWeapon ( plr, random[1], random[2], random[3] ) من وين القيمة الثالثة ؟ و giveWeapon 3 ارقمنات انت 4 هو سوا زي كذا weapons[2][1], weapons[2][2] = 16, 200
-
?? حبيبي هو يقول يبي لو ضغط الزر الاول يغير اللون الى اخضر والزر الثاني الى لون احمر وكذا button: the name of the button which will be clicked , it can be left, right, middle ذا بيست شكله رمضان ماثر عليكـ button: the name of the button which will be clicked يقلك هنا اسم الزر اللي انضغط it can be left, right, middle ويقلك ممكن يكون يسار او يممين فهمت الحين ؟
-
نفس الحكايه , بيكون فيه خطأ , وما راح يشتغل الكود , لو تحلاظ الشرط الي حاطه : if ( uPlayer == button1 ) then مستحيل يشتغل الكود . string button فاهم غلط هو معرف اول بارتمنت بالحدث function ( button ) if button == urbtn then
-
استبدلها بـ لوكال بلير uPlayer عندكـ خطا بسيط انه حاط باول ارقمنت string button, string state, int absoluteX, int absoluteY button: the name of the button which will be clicked , it can be left, right, middle setPlayerNametagColor اقصد بفشنكن -_____-
-
@ Mu[T]e~> : كودكـ خطا .
-
استبدلها بـ لوكال بلير uPlayer عندكـ خطا بسيط انه حاط باول ارقمنت
-
fileOpen يفتح لك ملفات لوا و تكست بس مو معناه يشغلها بـ جهاز اللاعب لا لا يفتحها عشان يشتغل بها + يحتاج صلاحيات callRemote ترا فنكشن
-
تكفون ي الربع مسسآعدتكم آلي خبير بالاجهزه هاردوير مدري وش
#DRAGON!FIRE replied to i,xAhmed's topic in القسم العام
طيب فالنفترض المعالج حق اللاب 5 والرامات 4 مثلا ومواصفات جيدة واللاب اللعب به ام اي فقط واحط اللاب ع خشب او حديد هل ممكن المشكلة ذي تواجهني ؟ .. ولو واجهتني وش اسبابها مدام كل الاسباب اللي ذكرتها مسويها ما اللعب اللعاب ولا احطها ع قماش -
it izi First get players count : getPlayerCount and use: callRemote and make php script to get info and put it in ur forum
-
u need put element function checkPlayerExists(element, queryHandle) local result = dbPoll(queryHandle, 0) if(#result == 0)then triggerClientEvent(element, "onPlayerNotRegistered", element ) else --- ... more code here ... end
-
string.format مهوب ضروري .. مداهـ يستخدم
-
فايدتها تستبدل سترنق بـ سترنق تستخدمه بـ الوقت اللي تحححتاجهه .
-
وظيفتها باختصار تحححول لك الحروف الصغيرة الى حروف كبيرة مثال بسيط ... : local string = "function upper test" addEventHandler( "onResourceStart", resourceRoot, function( ) outputChatBox( "string is "..string.." in upper "..string.upper( string ).."", root ) end )
-
شوف الشرط ~= تعني عكسس القيمة ~= true = false
-
~= true = false بالنسبة للقوس وش دخله لول .. ما ياثر
-
اولأ من وين جبت uPed ?? createVehicle(444, Location ) الاحداثيات 3 ارقمنات كيف سويتها كذأ ؟ وهنا برضو local Location = getElementPosition ( uPed ) ولزوم تسوي تيبل للسيارات وتتحق لو موجودة تسحبها ويوم يخرج تسحبها وتشيل القيمة من الججدول .
-
هلا زاحف ممكن تشرحلي هذا الكود ؟ لاني بحاول اضيف عليه ايفنت الشات وشكرا الكود اللي بجانب كلنت تايمر كل 10 ثواني يتحقق لو ما في تحميل يحط قيمة الداتا حق الداون لود فلس ويشيل التايمر وبجانب سيرفر يوم يخش اللاعب يحط له داتا داون لود
-
element وينه ؟ + guiGetText ( source )) ? المفروض element تلاحظ سويت شرط if ( source == Button ) then button لو كان السورس هو الـ = source يعني كانه سويت كذا if ( source == Button ) then source = Button end ومداك تسوي كذا .. addEventHandler( "onClientGUIClick", resourceRoot, function( Max ) if ( Max == Button ) then guiSetText( element, guiGetText( Max ) ) end end )
-
Client Side addEventHandler( "onClientResourceStart", resourceRoot, function( ) TimerDownload = setTimer( function( ) if ( isTransferBoxActive ( ) ~= true ) then setElementData( localPlayer, "download", false ) killTimer( TimerDownload ) end end, 10000, 0 ) end ) Server Side addEventHandler( "onPlayerJoin", root, function( ) setElementData( source, "download", "Download" ) end )
-
المفروض تتحق من انه اللاعب عنده تيم .