Adham Posted July 8, 2016 Share Posted July 8, 2016 سلام عليكم انا عامل جدول فيه 5 حاجات اول شي ادهم لعبه احمد محمد بعدين مثلن عاوز اليحدد علي ادهم يطلع له لوحه واليحدد علي لعبه يطلع له لوحه مختلفه والخ ارجو مثال علي الوب والفانشكات Link to comment
#|_oskar_|# Posted July 8, 2016 Share Posted July 8, 2016 يحدد على الاسم قريد ليست ولا وش .؟ Link to comment
iMr.WiFi..! Posted July 8, 2016 Share Posted July 8, 2016 -- Loob Table = { {"ادهم",YourWnd} } -- Functions for guiGridListSetItemText guiGridListSetItemData , "onClientGUIClick" guiGridListGetSelectedItem guiGridListGetItemData guiSetVisible Link to comment
Adham Posted July 8, 2016 Author Share Posted July 8, 2016 صح كذا for i , v in ipairs ( Adham ) do Row = guiGridListAddRow ( gridlist2 ) guiGridListSetItemText( gridlist2,Row ,1,v[1],false,false) guiGridListSetItemText( gridlist2,Row ,2,v[2],false,false) guiGridListSetItemData ( gridlist2 , Row , 1 , v[2] ,false,false) end addEventHandler("onClientGUIClick",root, function ( ) if source == button then local Se = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) local Dat = guiGridListGetItemData ( GUIEditor.gridlist[1] , Se , 1 ) guiSetVisible( tostring ( Dat ),true) end end end ) Link to comment
iMr.WiFi..! Posted July 8, 2016 Share Posted July 8, 2016 for i , v in ipairs ( Adham ) do Row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1],Row ,1,v[1],false,false) guiGridListSetItemData ( GUIEditor.gridlist[1] , Row , 1 , v[2] ,false,false) end addEventHandler("onClientGUIClick",root, function ( ) if source == button then if guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) ~= -1 then local Se = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) local Dat = guiGridListGetItemData ( GUIEditor.gridlist[1] , Se , 1 ) guiSetVisible( Dat ,true) end end end ) Link to comment
Adham Posted July 8, 2016 Author Share Posted July 8, 2016 م ظبت المشكله في كودك ERROR: logind Script faileed: 13/c.lua:60: 'end' expected (to close 'function' at line 7) near ' Link to comment
Adham Posted July 8, 2016 Author Share Posted July 8, 2016 شغلت لما عملتها كدا م شغلت Table = { {"ادهم","A",test} } for i , v in ipairs ( Table ) do Row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1],Row ,1,v[1],false,false) guiGridListSetItemText( GUIEditor.gridlist[1],Row ,2,v[2],false,false) guiGridListSetItemData ( GUIEditor.gridlist[1] , Row , 1 , v[2] ,false,false) end WARNING: 13/c.lua:45: Bad argument @ 'guiSetVisbile' [Expected gui-elemnt at argument 1,got sttring 'A' Link to comment
iMr.WiFi..! Posted July 8, 2016 Share Posted July 8, 2016 Table = { {"ادهم","A",test} } for i , v in ipairs ( Table ) do Row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1],Row ,1,v[1],false,false) guiGridListSetItemText( GUIEditor.gridlist[1],Row ,2,v[2],false,false) guiGridListSetItemData ( GUIEditor.gridlist[1] , Row , 1 , v[3] ,false,false) end Link to comment
Adham Posted July 8, 2016 Author Share Posted July 8, 2016 شف كودي شغعال 100 % في المجاني والعالمي م يشتغل addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then name = getPlayerName(getLocalPlayer()) cantidad = guiGetText(GUIEditor.edit[1]) triggerServerEvent("SendMoney1",getRootElement(),cantidad,name) end end) function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end function Enviar (cantidad, name) for _, p in ipairs(getElementsByType('player')) do givePlayerMoney(p, tonumber(cantidad)) exports.topbarchat:sendClientMessage("#ffff00[C.Console]: "..name:gsub("#%x%x%x%x%x%x", "").." #ffff00has sent Money for all $"..convertNumber (cantidad) , p, 255, 255, 255, true) exports.topbarchat:sendClientMessage("#ffff00[C.Console]: $"..convertNumber (cantidad).." تم منح الجميع", p, 255, 255, 255, true) end end addEvent("SendMoney1", true) addEventHandler("SendMoney1", getRootElement(), Enviar) Link to comment
Adham Posted July 8, 2016 Author Share Posted July 8, 2016 كل مود اصنع واركبه يقلي WARNING: Script 'weap/Client.lua' is not encoded in UTF-8. Loading as ANSI,. Link to comment
iMr.WiFi..! Posted July 8, 2016 Share Posted July 8, 2016 روح Save as ثم تلاقي كلمة ANSI غيرها وخلها UTF-8 ثم احفظها Link to comment
Me[Z]oO Posted July 8, 2016 Share Posted July 8, 2016 معلش بسوين save as دي انت مو لازم تكون بهذا الكوكب Link to comment
Adham Posted July 8, 2016 Author Share Posted July 8, 2016 يخي كل موداتي شغاله بالمحلي اجي اشغلها بالعالمي يقلي اللكلمه فوق بالدي بق Link to comment
Adham Posted July 9, 2016 Author Share Posted July 9, 2016 م لاقي كلمه اسمها UTF-8 في جدول Save As Link to comment
' A F . Posted July 9, 2016 Share Posted July 9, 2016 م لاقي كلمهاسمها UTF-8 في جدول Save As تلاقيها فوق اظغط على Encoding Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now