-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
function SetPlayers( ) guiGridListClear ( GridList ) -- نسوي الكلير for _,player in ipairs ( getElementsByType("player") ) do -- نجيب كل الاعبين local row = guiGridListAddRow ( GridList ) -- نظيف العمود guiGridListSetItemText( GridList,row,1,getPlayerName(player),false,false) -- نظيف الاعبين للستة بالعمود المحدد بالكولمن المحدد 1 العمود الاول لازم تكون مسوية من قبل end end bindKey("F10","down", function ( ) guiSetVisible ( Window , not guiGetVisible ( Window ) ) -- نسوي كود فتح النافذهـ showCursor ( guiGetVisible ( Window ) ) -- الماوس if ( guiGetVisible ( Window ) == true ) then -- اذا كانت النافذهـ مفتوحة SetPlayers ( ) -- يسوي الوظيفة وكذآ بيحدث تلقائيا end end )
-
بـ التوفيق #
-
صف يعني صف لو تسوي اكثر من رو وتسوي الكلام بكل رو مثلا رو 1 و رو 2 وتحط كلام بـ رو 1 و رو 2 يوم تختار كلمة من الرو الاول مايختار مايحدد الرو الثاني وصل؟
-
No make it as a table like what i did with the object .
-
صف بالعربي / = صف يعني صف ماتترجم صف يعني صف ذذ ! يعني صف مثلا Row[1] Row[2] 1 6 2 7 3 8 4 9 5 10 6 11 وصل؟
-
Hmmm..You can make the marker at the server side the same way i create the object with and to add the marker to the grid add it to the table.
-
يعني يوم تختار يجي صف يعني يحط الكلام بـ صف اتوقع هذي كلمة عربية ؟
-
1- يحط كلام باللستة 2- يضيف صف للستة
-
وش اللي ماوصل؟ ؟ والله شرحت لك احسن شرح / = ؟ !!!!!!!!!!
-
changeGridListItemToPlayersName = function ( GridList, Column ) -- وش فايدته if GridList and Column then -- وش فايدته if getElementType ( GridList ) == "gui-gridlist" then -- وش فايدته if guiGridListClear ( GridList ) then -- وش فايدته for i, v in next, getElementsByType ( "player" ) do -- وش فايدته guiGridListSetItemText ( GridList, guiGridListAddRow ( GridList ), Column, getPlayerName ( v ), false, false ); -- وش فايدته end; end; end; end; end; اولا ذي وظيفة مسويها عناد تسهل للمرهـ المليون لازم فيها ارقمنتات عشان تستخدمها changeGridListItemToPlayersName = function ( GridList, Column ) -- وش فايدته GridList,Column GridList = ارقمنت القريد بالوظيفة Column = ارقمنت الكولمن بالوظيفة ================ if getElementType ( GridList ) == "gui-gridlist" then -- وش فايدته getElementType = وظيفة تتحقق من نوع الشيء هنا عناد تحقق انة القريد لست حق الوظيفة الالمنت = قريد حق الـ الايديتور ذذ ============== if guiGridListClear ( GridList ) then -- وش فايدته guiGridListClear = وظيفة تساعد على منع التكرار # guiGridListClear استخدمها هنا عشان مايكرر اسماء الاعبين ============== for i, v in next, getElementsByType ( "player" ) do -- وش فايدته هنا مسوي لووب عشان يجيب كل الاعبين getElementsByType ( "player" ) do هنا يجيب كل الاعبين بـ الفنكشن هذا يجيب اي المنت هنا حدد لاعب يقدر يحدد بيد بس مآله اسم بس يستخدم فـ وظآئف اخرى ~ ================= اذا ماوصلت فـ اعلم انهـ عندكـ مشكلة فعلا #
-
لم تفهم نعم لم تقم بفتح الويكي ربما لهذا السبب لم تفهم ربما تفهم الان getElementsByType -- يجيب الاعبين اذا كان الالمنت "player" ! ؟ تحقق من الوظيفة انة فية قريد وكول عشان مايصير فية اخطاء سهله؟
-
وظيفة مسويها عناد تستخدمها تسوي الاعبين بالقريد ذذ 2 يجيب كل الاعبين باللوب 3 تحقق
-
جربته معآي شغال زي الفل ذذ
-
انسخ الكود اللي بردي السابق عدلتة اللي قبل هذا #
-
No i don't say that ! You can do that : createMarker attachElements
-
حول كود المود لـ UTF-8 GUIEditor_Window = {} GUIEditor_Grid = {} changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then -- Check Parematers if getElementType ( GridList ) == "gui-gridlist" then -- Check The Type of ' GridList ' if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do -- Get Everything by Type ' player ' guiGridListSetItemText ( GridList, guiGridListAddRow ( GridList ), Column, getPlayerName ( v ), false, false ); end; end; end; end; end; GUIEditor_Window[1] = guiCreateWindow(458,158,572,555,"",false) guiSetVisible( GUIEditor_Window[1],true ) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Grid[1] = guiCreateGridList(13,32,192,514,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"player ",0.9) changeGridListItemToPlayersName(GUIEditor_Grid[1],1)
-
============================== GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(458,158,572,555,"",false) guiSetVisible ( GUIEditor_Window[1], false ) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Grid[1] = guiCreateGridList(13,32,192,514,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) changeGridListItemToPlayersName(GUIEditor_Grid[1],1) guiGridListAddColumn(GUIEditor_Grid[1],"player ",0.9) changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); end; end; end; end; end; لازم تسوية يتحدث مثلا يوم يدخل ولا يوم تسوي بايند كي الخ #
-
"Mr.Pres[T]ege" version="1.0" type="script" /> تأكد الملف zip او مجلد
-
لا تستخدمة مثل ماقالكـ بين نسيت انة يحدث بسرعه يتغير مايمديكـ # استخدم اللي في ردي السابق و سوي لة تحديث يوم يفتح النافذهـ وبس ذذ
-
============================== GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(458,158,572,555,"",false) guiSetVisible ( GUIEditor_Window[1], false ) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Grid[1] = guiCreateGridList(13,32,192,514,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) changeGridListItemToPlayersName(GUIEditor_Grid[1],1) guiGridListAddColumn(GUIEditor_Grid[1],"player ",0.9) changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); end; end; end; end; end; لازم تسوية يتحدث مثلا يوم يدخل ولا يوم تسوي بايند كي الخ #