+Source|> Posted September 20, 2017 Share Posted September 20, 2017 الجريد ليست ما ينحفظ --server addEvent("sql", true) addEventHandler("sql", root, function() executeSQLQuery( "CREATE TABLE IF NOT EXISTS save (Players TEXT, Tag TEXT, Color TEXT)" ) end ) -- client addEventHandler( "onClientGUIClick", root, function() local NK = guiGetText( nkedit1 ) local NKC = guiGetText( nkedit2 ) if source == con then guiGridListClear( grdnk ) for i, v in ipairs( getElementsByType( 'player' ) ) do local Row = guiGridListAddRow( grdnk ) guiGridListSetItemText( grdnk, Row, 1, tostring( getPlayerName( v ) ):gsub( "%x%x%x%x%x%x", "" )..",", false, false ) guiGridListSetItemText( grdnk, Row, 2, NK..",", false, false ) guiGridListSetItemText( grdnk, Row, 3, NKC..",", false, false ) triggerServerEvent( "sql", localPlayer ) end end end ) هل صحيح ؟ Link to comment
MR.StoRm Posted September 20, 2017 Share Posted September 20, 2017 تقدر تستفيد من المود حقي https://forum.multitheftauto.com/topic/98771-save-texts-system/ Link to comment
#BrosS Posted September 20, 2017 Share Posted September 20, 2017 12 minutes ago, Source|> said: ما ينحفظ 12 minutes ago, Source|> said: "CREATE TABLE IF NOT EXISTS ???? Link to comment
+Source|> Posted September 20, 2017 Author Share Posted September 20, 2017 35 minutes ago, MR.StoRm said: تقدر تستفيد من المود حقي https://forum.multitheftauto.com/topic/98771-save-texts-system/ addEventHandler("onResourceStart", root, function() executeSQLQuery( "CREATE TABLE IF NOT EXISTS save ( NK, NKC, Serial )" ) end ) addEvent("add", true) addEventHandler("add", root, function( NK, NKC ) local aSerial = getPlayerSerial( source ) if NK and NKC then executeSQLQuery( "INSERT INTO save ( NK, NKC, Serial ) VALUES( ? , ?, ? )", NK, NKC, aSerial ) triggerEvent ( 'Refresh_' , source ) end end ) addEvent ( 'Refresh_' , true ) addEventHandler ( 'Refresh_' , root , function () local aSQL2 = executeSQLQuery ( 'SELECT * FROM save WHERE Serial=?' , getPlayerSerial ( source ) ) if #aSQL2 ~= 0 then triggerClientEvent ( source, 'AddInGrid' , source , aSQL2 ) end end ) addEvent ( 'AddInGrid' , true ) addEventHandler ( 'AddInGrid' , root , function( Table ) local NK = guiGetText( nkedit1 ) local NKC = guiGetText( nkedit2 ) guiGridListClear( grdnk ) for i, v in ipairs( Table ) do local Row = guiGridListAddRow( grdnk ) guiGridListSetItemText( grdnk, Row, 2, v [ 'NK' ] , false, false ) guiGridListSetItemText( grdnk, Row, 3, v [ 'NKC' ], false, false ) end end ) وش المشكلة ؟؟؟ Link to comment
+Source|> Posted September 20, 2017 Author Share Posted September 20, 2017 36 minutes ago, Source|> said: addEventHandler("onResourceStart", root, function() executeSQLQuery( "CREATE TABLE IF NOT EXISTS save ( NK, NKC, Serial )" ) end ) addEvent("add", true) addEventHandler("add", root, function( NK, NKC ) local aSerial = getPlayerSerial( source ) if NK and NKC then executeSQLQuery( "INSERT INTO save ( NK, NKC, Serial ) VALUES( ? , ?, ? )", NK, NKC, aSerial ) triggerEvent ( 'Refresh_' , source ) end end ) addEvent ( 'Refresh_' , true ) addEventHandler ( 'Refresh_' , root , function () local aSQL2 = executeSQLQuery ( 'SELECT * FROM save WHERE Serial=?' , getPlayerSerial ( source ) ) if #aSQL2 ~= 0 then triggerClientEvent ( source, 'AddInGrid' , source , aSQL2 ) end end ) addEvent ( 'AddInGrid' , true ) addEventHandler ( 'AddInGrid' , root , function( Table ) local NK = guiGetText( nkedit1 ) local NKC = guiGetText( nkedit2 ) guiGridListClear( grdnk ) for i, v in ipairs( Table ) do local Row = guiGridListAddRow( grdnk ) guiGridListSetItemText( grdnk, Row, 2, v [ 'NK' ] , false, false ) guiGridListSetItemText( grdnk, Row, 3, v [ 'NKC' ], false, false ) end end ) وش المشكلة ؟؟؟ سيبكم من اللي فوقق كلهههههه خلكم هنا شوفو الاكواد addEventHandler("onResourceStart", root, function() executeSQLQuery( "CREATE TABLE IF NOT EXISTS `save` ( NK, Serial )" ) end ) addEvent("add", true) addEventHandler("add", root, function( NK1 ) local ssr = getPlayerSerial( source ) if NK1 then executeSQLQuery( "INSERT INTO `save` ( NK, Serial ) VALUES( ? , ? )", NK1, ssr ) triggerEvent ( 'Refresh_' , source ) end end ) addEvent ( 'Refresh_' , true ) addEventHandler ( 'Refresh_' , root , function () local aSQL2 = executeSQLQuery ( 'SELECT * FROM `save` WHERE Serial=?' , getPlayerSerial ( source ) ) if ( type ( aSQL2 ) == 'table' and #aSQL2 == 0 or not aSQL2 ) then triggerClientEvent ( source, 'AddInGrid' , source , aSQL2 ) end end ) وصورة المشكله Link to comment
MR.StoRm Posted September 20, 2017 Share Posted September 20, 2017 addEventHandler("onResourceStart", root, function() executeSQLQuery( "CREATE TABLE IF NOT EXISTS aSave ( NK, Serial )" ) end ) addEvent("add", true) addEventHandler("add", root, function( NK1 ) local ssr = getPlayerSerial( source ) if NK1 then executeSQLQuery( "INSERT INTO aSave ( NK, Serial ) VALUES( ? , ? )", NK1, ssr ) triggerEvent ( 'Refresh_' , source ) end end ) addEvent ( 'Refresh_' , true ) addEventHandler ( 'Refresh_' , root , function () local aSQL2 = executeSQLQuery ( 'SELECT * FROM aSave WHERE Serial=?' , getPlayerSerial ( source ) ) if ( type ( aSQL2 ) == 'table' and #aSQL2 == 0 or not aSQL2 ) then triggerClientEvent ( source, 'AddInGrid' , source , aSQL2 ) end end ) try this . Link to comment
+Source|> Posted September 20, 2017 Author Share Posted September 20, 2017 2 minutes ago, MR.StoRm said: addEventHandler("onResourceStart", root, function() executeSQLQuery( "CREATE TABLE IF NOT EXISTS aSave ( NK, Serial )" ) end ) addEvent("add", true) addEventHandler("add", root, function( NK1 ) local ssr = getPlayerSerial( source ) if NK1 then executeSQLQuery( "INSERT INTO aSave ( NK, Serial ) VALUES( ? , ? )", NK1, ssr ) triggerEvent ( 'Refresh_' , source ) end end ) addEvent ( 'Refresh_' , true ) addEventHandler ( 'Refresh_' , root , function () local aSQL2 = executeSQLQuery ( 'SELECT * FROM aSave WHERE Serial=?' , getPlayerSerial ( source ) ) if ( type ( aSQL2 ) == 'table' and #aSQL2 == 0 or not aSQL2 ) then triggerClientEvent ( source, 'AddInGrid' , source , aSQL2 ) end end ) try this . طيب ما يطلع شي بالجريد ليست addEvent ( 'AddInGrid' , true ) addEventHandler ( 'AddInGrid' , root , function( Table ) guiGridListClear( grdnk ) for i, v in ipairs( Table ) do local Row = guiGridListAddRow( grdnk ) guiGridListSetItemText( grdnk, Row, 2, v [ 'NK1' ] , false, false ) end end ) Link to comment
MR.StoRm Posted September 20, 2017 Share Posted September 20, 2017 Just now, Source|> said: طيب ما يطلع شي بالجريد ليست addEvent ( 'AddInGrid' , true ) addEventHandler ( 'AddInGrid' , root , function( Table ) guiGridListClear( grdnk ) for i, v in ipairs( Table ) do local Row = guiGridListAddRow( grdnk ) guiGridListSetItemText( grdnk, Row, 2, v [ 'NK1' ] , false, false ) end end ) إطرح جميع أكوادك كلنت Link to comment
+Source|> Posted September 20, 2017 Author Share Posted September 20, 2017 Just now, MR.StoRm said: إطرح جميع أكوادك كلنت addEvent ( 'AddInGrid' , true ) addEventHandler ( 'AddInGrid' , root , function( Table ) guiGridListClear( grdnk ) for i, v in ipairs( Table ) do local Row = guiGridListAddRow( grdnk ) guiGridListSetItemText( grdnk, Row, 2, v [ 'NK1' ] , false, false ) end end ) addEventHandler("onClientGUIClick", root, function( ) local NK1 = guiGetText( nkedit1 ) local NKC = guiGetText( nkedit2 ) if source == con then triggerServerEvent ( 'add' , localPlayer , NK1 ) end end ) addEvent("openM", true) addEventHandler("openM", root, function() if guiGetVisible( wndman ) then guiSetVisible( wndman, false ) showCursor( false ) guiSetInputEnabled( false ) else guiSetVisible( wndman, true ) showCursor( true ) guiSetInputEnabled( true ) triggerServerEvent ( 'Refresh_' , localPlayer ) end end ) Link to comment
MR.StoRm Posted September 20, 2017 Share Posted September 20, 2017 1 minute ago, Source|> said: addEvent ( 'AddInGrid' , true ) addEventHandler ( 'AddInGrid' , root , function( Table ) guiGridListClear( grdnk ) for i, v in ipairs( Table ) do local Row = guiGridListAddRow( grdnk ) guiGridListSetItemText( grdnk, Row, 2, v [ 'NK1' ] , false, false ) end end ) addEventHandler("onClientGUIClick", root, function( ) local NK1 = guiGetText( nkedit1 ) local NKC = guiGetText( nkedit2 ) if source == con then triggerServerEvent ( 'add' , localPlayer , NK1 ) end end ) addEvent("openM", true) addEventHandler("openM", root, function() if guiGetVisible( wndman ) then guiSetVisible( wndman, false ) showCursor( false ) guiSetInputEnabled( false ) else guiSetVisible( wndman, true ) showCursor( true ) guiSetInputEnabled( true ) triggerServerEvent ( 'Refresh_' , localPlayer ) end end ) أقول الأكواد كاملة مع اللوحة Link to comment
+Source|> Posted September 20, 2017 Author Share Posted September 20, 2017 (edited) 2 minutes ago, MR.StoRm said: أقول الأكواد كاملة مع اللوحة local sH, sW = guiGetScreenSize() wndnk = guiCreateWindow( ( sH - 554 ) / 2, ( sW - 569 ) / 2, 554, 569, "Tag Up Head | تاق فوق الرأس", false) guiWindowSetSizable(wndnk, false) guiSetAlpha(wndnk, 0.99) guiSetVisible( wndnk, false ) nk = guiCreateStaticImage(10, 41, 207, 509, "nk.png", false, wndnk) lbl11 = guiCreateLabel(289, 51, 143, 15, "خــاصية التاق فوق الرأس ...", false, wndnk) guiLabelSetColor(lbl11, 254, 0, 0) lbl22 = guiCreateLabel(236, 76, 251, 16, "خاصية لكتابة اي اسم وبأي لون فوق رأس اللاعب.", false, wndnk) guiLabelSetColor(lbl22, 41, 253, 0) lbl33 = guiCreateLabel(236, 114, 251, 19, "يتم شراء الخاصية عن طريق دفع 10 مليون لشرائها", false, wndnk) guiLabelSetColor(lbl33, 41, 253, 0) lbl44 = guiCreateLabel(241, 157, 241, 19, "إذا كنت تملك 10 مليون وترغب في شراء تاق ..", false, wndnk) guiLabelSetColor(lbl44, 41, 253, 0) lbl55 = guiCreateLabel(236, 195, 251, 19, "الرجاء كتابة إسم التاج الذي تريده في هذا المربع .", false, wndnk) guiLabelSetColor(lbl55, 41, 253, 0) lbl66 = guiCreateLabel(287, 239, 149, 18, "وقم بالضغط على زر متابعة....", false, wndnk) guiLabelSetColor(lbl66, 41, 253, 0) nkedit1 = guiCreateEdit(226, 286, 275, 31, "إسم التاج ؟", false, wndnk) nkedit2 = guiCreateEdit(226, 333, 275, 31, "كود اللون ؟", false, wndnk) lbl77 = guiCreateLabel(226, 374, 318, 19, "ملاحظة : في حال عدم كتابة كود لون سيتم وضعه للون الأبيض", false, wndnk) guiLabelSetColor(lbl77, 252, 0, 0) con = guiCreateButton(284, 403, 160, 34, "مـتـابـعـة", false, wndnk) guiSetProperty(con, "NormalTextColour", "FF17FD00") closenk = guiCreateButton(284, 447, 160, 34, "إلــغــاء", false, wndnk) guiSetProperty(closenk, "NormalTextColour", "FFFB0000") اكواد اللوحه اللي يروح لها الكود local sH2, sW2 = guiGetScreenSize() wndman = guiCreateWindow( ( sH2 - 558 ) / 2, ( sW2 - 442 ) / 2, 558, 442, "Tag Manager", false) guiWindowSetSizable(wndman, false) guiSetAlpha(wndman, 1.00) guiSetVisible( wndman, false ) done = guiCreateButton(355, 191, 167, 38, "Done", false, wndman) guiSetProperty(done, "NormalTextColour", "FF35FA00") grdnk = guiCreateGridList(9, 24, 313, 408, false, wndman) guiGridListAddColumn(grdnk, "Players", 0.3) guiGridListAddColumn(grdnk, "Tag", 0.3) guiGridListAddColumn(grdnk, "Color", 0.3) guiGridListSetSortingEnabled( grdnk, false ) Cancel = guiCreateButton(355, 239, 167, 38, "Delete", false, wndman) guiSetProperty(Cancel, "NormalTextColour", "FFF90000") Edited September 20, 2017 by Source|> Link to comment
MR.StoRm Posted September 20, 2017 Share Posted September 20, 2017 1 minute ago, Source|> said: local sH, sW = guiGetScreenSize() wndnk = guiCreateWindow( ( sH - 554 ) / 2, ( sW - 569 ) / 2, 554, 569, "Tag Up Head | تاق فوق الرأس", false) guiWindowSetSizable(wndnk, false) guiSetAlpha(wndnk, 0.99) guiSetVisible( wndnk, false ) nk = guiCreateStaticImage(10, 41, 207, 509, "nk.png", false, wndnk) lbl11 = guiCreateLabel(289, 51, 143, 15, "خــاصية التاق فوق الرأس ...", false, wndnk) guiLabelSetColor(lbl11, 254, 0, 0) lbl22 = guiCreateLabel(236, 76, 251, 16, "خاصية لكتابة اي اسم وبأي لون فوق رأس اللاعب.", false, wndnk) guiLabelSetColor(lbl22, 41, 253, 0) lbl33 = guiCreateLabel(236, 114, 251, 19, "يتم شراء الخاصية عن طريق دفع 10 مليون لشرائها", false, wndnk) guiLabelSetColor(lbl33, 41, 253, 0) lbl44 = guiCreateLabel(241, 157, 241, 19, "إذا كنت تملك 10 مليون وترغب في شراء تاق ..", false, wndnk) guiLabelSetColor(lbl44, 41, 253, 0) lbl55 = guiCreateLabel(236, 195, 251, 19, "الرجاء كتابة إسم التاج الذي تريده في هذا المربع .", false, wndnk) guiLabelSetColor(lbl55, 41, 253, 0) lbl66 = guiCreateLabel(287, 239, 149, 18, "وقم بالضغط على زر متابعة....", false, wndnk) guiLabelSetColor(lbl66, 41, 253, 0) nkedit1 = guiCreateEdit(226, 286, 275, 31, "إسم التاج ؟", false, wndnk) nkedit2 = guiCreateEdit(226, 333, 275, 31, "كود اللون ؟", false, wndnk) lbl77 = guiCreateLabel(226, 374, 318, 19, "ملاحظة : في حال عدم كتابة كود لون سيتم وضعه للون الأبيض", false, wndnk) guiLabelSetColor(lbl77, 252, 0, 0) con = guiCreateButton(284, 403, 160, 34, "مـتـابـعـة", false, wndnk) guiSetProperty(con, "NormalTextColour", "FF17FD00") closenk = guiCreateButton(284, 447, 160, 34, "إلــغــاء", false, wndnk) guiSetProperty(closenk, "NormalTextColour", "FFFB0000") -__-", انا ما أشوف قريد أساساً , ^ Link to comment
+Source|> Posted September 20, 2017 Author Share Posted September 20, 2017 Just now, MR.StoRm said: -__-", انا ما أشوف قريد أساساً , ^ تم تعديل ردي فوق Link to comment
MR.StoRm Posted September 20, 2017 Share Posted September 20, 2017 (edited) server : addEventHandler("onResourceStart", root, function() executeSQLQuery( "CREATE TABLE IF NOT EXISTS aSave ( NK, Serial )" ) end ) addEvent("add", true) addEventHandler("add", root, function( NK1 ) if NK1 then local aSerial = getPlayerSerial ( source ) executeSQLQuery( "INSERT INTO aSave ( NK, Serial ) VALUES( ? , ? )", NK1, aSerial ) triggerEvent ( 'Refresh_' , source ) end end ) addEvent ( 'Refresh_' , true ) addEventHandler ( 'Refresh_' , root , function () local aSQL2 = executeSQLQuery ( 'SELECT * FROM aSave WHERE Serial=?' , getPlayerSerial ( source ) ) if ( #aSQL2 ~= 0 ) then triggerClientEvent ( source, 'AddInGrid' , source , aSQL2 ) end end ) client ; addEvent ( 'AddInGrid' , true ) addEventHandler ( 'AddInGrid' , root , function( Table ) guiGridListClear( grdnk ) for i, v in ipairs( Table ) do local Row = guiGridListAddRow( grdnk ) guiGridListSetItemText( grdnk, Row, 2, v [ 'NK1' ] , false, false ) end end ) addEventHandler("onClientGUIClick", root, function( ) if source == con then local NK1 , NKC = guiGetText( nkedit1 ) , guiGetText( nkedit2 ) if ( NK1 ~= '' and NK1 ~= ' ' and NKC ~= '' and NKC ~= ' ' ) then triggerServerEvent ( 'add' , localPlayer , NK1 , NKC ) end end end ) addEvent("openM", true) addEventHandler("openM", root, function() if guiGetVisible( wndman ) then guiSetVisible( wndman, false ) showCursor( false ) guiSetInputEnabled( false ) else guiSetVisible( wndman, true ) showCursor( true ) guiSetInputEnabled( true ) triggerServerEvent ( 'Refresh_' , localPlayer ) end end ) انت ما تبي تدخل الألوان ؟ + التاج ؟ ولا بس التاج ؟ Edited September 20, 2017 by MR.StoRm Link to comment
+Source|> Posted September 20, 2017 Author Share Posted September 20, 2017 2 minutes ago, MR.StoRm said: server : addEventHandler("onResourceStart", root, function() executeSQLQuery( "CREATE TABLE IF NOT EXISTS aSave ( NK, Serial )" ) end ) addEvent("add", true) addEventHandler("add", root, function( NK1 ) if NK1 then local aSerial = getPlayerSerial ( source ) executeSQLQuery( "INSERT INTO aSave ( NK, Serial ) VALUES( ? , ? )", NK1, aSerial ) triggerEvent ( 'Refresh_' , source ) end end ) addEvent ( 'Refresh_' , true ) addEventHandler ( 'Refresh_' , root , function () local aSQL2 = executeSQLQuery ( 'SELECT * FROM aSave WHERE Serial=?' , getPlayerSerial ( source ) ) if ( #aSQL2 ~= 0 ) then triggerClientEvent ( source, 'AddInGrid' , source , aSQL2 ) end end ) client ; addEvent ( 'AddInGrid' , true ) addEventHandler ( 'AddInGrid' , root , function( Table ) guiGridListClear( grdnk ) for i, v in ipairs( Table ) do local Row = guiGridListAddRow( grdnk ) guiGridListSetItemText( grdnk, Row, 2, v [ 'NK1' ] , false, false ) end end ) addEventHandler("onClientGUIClick", root, function( ) if source == con then local NK1 , NKC = guiGetText( nkedit1 ) , guiGetText( nkedit2 ) if ( NK1 ~= '' and NK1 ~= ' ' and NKC ~= '' and NKC ~= ' ' ) then triggerServerEvent ( 'add' , localPlayer , NK1 , NKC ) end end end ) addEvent("openM", true) addEventHandler("openM", root, function() if guiGetVisible( wndman ) then guiSetVisible( wndman, false ) showCursor( false ) guiSetInputEnabled( false ) else guiSetVisible( wndman, true ) showCursor( true ) guiSetInputEnabled( true ) triggerServerEvent ( 'Refresh_' , localPlayer ) end end ) انت ما تبي تدخل الألوان ؟ + التاج ؟ ولا بس التاج ؟ انا ابيه يدخلهم كلهم بس الحين اتعلم السكل واحاول Link to comment
MR.StoRm Posted September 20, 2017 Share Posted September 20, 2017 Just now, Source|> said: انا ابيه يدخلهم كلهم بس الحين اتعلم السكل واحاول طيب جرب الي فوق اذا ظبط بكمله لك لكلهم Link to comment
+Source|> Posted September 20, 2017 Author Share Posted September 20, 2017 7 minutes ago, MR.StoRm said: طيب جرب الي فوق اذا ظبط بكمله لك لكلهم تمام اشتغل Link to comment
MR.StoRm Posted September 20, 2017 Share Posted September 20, 2017 7 minutes ago, Source|> said: تمام اشتغل طيب حط ملف سيرفر كذا : addEventHandler("onResourceStart", root, function() executeSQLQuery( "CREATE TABLE IF NOT EXISTS SaveS ( NK, Serial , NKC )" ) end ) addEvent("add", true) addEventHandler("add", root, function( NK1 , NKC ) if NK1 and NKC then local aSerial = getPlayerSerial ( source ) executeSQLQuery( "INSERT INTO SaveS ( NK, Serial, NKC ) VALUES( ? , ? , ? )", NK1, NKC , aSerial ) triggerEvent ( 'Refresh_' , source ) end end ) addEvent ( 'Refresh_' , true ) addEventHandler ( 'Refresh_' , root , function () local aSQL2 = executeSQLQuery ( 'SELECT * FROM SaveS WHERE Serial=?' , getPlayerSerial ( source ) ) if ( #aSQL2 ~= 0 ) then triggerClientEvent ( source, 'AddInGrid' , source , aSQL2 ) end end ) Link to comment
+Source|> Posted September 20, 2017 Author Share Posted September 20, 2017 4 minutes ago, MR.StoRm said: طيب حط ملف سيرفر كذا : addEventHandler("onResourceStart", root, function() executeSQLQuery( "CREATE TABLE IF NOT EXISTS SaveS ( NK, Serial , NKC )" ) end ) addEvent("add", true) addEventHandler("add", root, function( NK1 , NKC ) if NK1 and NKC then local aSerial = getPlayerSerial ( source ) executeSQLQuery( "INSERT INTO SaveS ( NK, Serial, NKC ) VALUES( ? , ? , ? )", NK1, NKC , aSerial ) triggerEvent ( 'Refresh_' , source ) end end ) addEvent ( 'Refresh_' , true ) addEventHandler ( 'Refresh_' , root , function () local aSQL2 = executeSQLQuery ( 'SELECT * FROM SaveS WHERE Serial=?' , getPlayerSerial ( source ) ) if ( #aSQL2 ~= 0 ) then triggerClientEvent ( source, 'AddInGrid' , source , aSQL2 ) end end ) مظبط Link to comment
MR.StoRm Posted September 20, 2017 Share Posted September 20, 2017 1 minute ago, Source|> said: مظبط دي بق ؟ Link to comment
+Source|> Posted September 20, 2017 Author Share Posted September 20, 2017 1 minute ago, MR.StoRm said: دي بق ؟ ديبق ميقول شي بس الجريد ما يظهر به شي Link to comment
MR.StoRm Posted September 20, 2017 Share Posted September 20, 2017 Just now, Source|> said: ديبق ميقول شي بس الجريد ما يظهر به شي قبل ذي الاضافة كان شغال؟ Link to comment
MR.StoRm Posted September 20, 2017 Share Posted September 20, 2017 2 minutes ago, Source|> said: يب وش الي ما كان يظهر لما كان شغال ؟ Link to comment
+Source|> Posted September 20, 2017 Author Share Posted September 20, 2017 (edited) NKC addEvent ( 'AddInGrid' , true ) addEventHandler ( 'AddInGrid' , root , function( Table ) guiGridListClear( grdnk ) for i, v in ipairs( Table ) do local Row = guiGridListAddRow( grdnk ) guiGridListSetItemText( grdnk, Row, 2, v [ 'NK' ] , false, false ) guiGridListSetItemText( grdnk, Row, 3, v [ 'NKC' ] , false, false ) end end ) addEventHandler("onClientGUIClick", root, function( ) if source == con then local NK1 , NKC = guiGetText( nkedit1 ) , guiGetText( nkedit2 ) if ( NK1 ~= '' and NK1 ~= ' ' and NKC ~= '' and NKC ~= ' ' and NK1 ~= 'إسم التاج ؟' and NKC ~= 'كود اللون ؟' ) then triggerServerEvent ( 'add' , localPlayer , NK1 , NKC ) end end end ) Edited September 20, 2017 by Source|> 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