#StrOnG_,) Posted July 12, 2015 Share Posted July 12, 2015 السلام عليكم ورحمه الله وبركاته كيفكم شباب .. ان شاء الله بخير المهمم صارت معي مشكلة بالقريد ليست الكود addEventHandler("onClientResourceStart",resourceRoot,players) function () if ( source == Send ) then if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then local Msg = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if ( getPlayerFromName(player) ) then end end end ) الدي بوق يقول client.lua:2: '' expected near '(' جربت أعرف الفنكشن بس نفس المشكلة Link to comment
#|_oskar_|# Posted July 12, 2015 Share Posted July 12, 2015 فى اند ناقصه + Msg غير معرفه Link to comment
#StrOnG_,) Posted July 12, 2015 Author Share Posted July 12, 2015 فى اند ناقصه + Msg غير معرفه وش الحل يعني -.- Link to comment
#|_oskar_|# Posted July 12, 2015 Share Posted July 12, 2015 فى اند ناقصه + Msg غير معرفه وش الحل يعني -.- وش تبي تسوى بالضبط عشان اقدر اساعدك Link to comment
Mr.R Posted July 12, 2015 Share Posted July 12, 2015 (edited) ! صلحت لك كودكـ بس مدري وش تبي تسوي بالضبط يعني الكود كذا ماله اي فايدهـ لازم تكلمه : عموما تفضل addEventHandler ( "onClientGUIClick", resourceRoot, function ( player ) if ( source == Send ) then if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then local Msg = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if ( getPlayerFromName ( player ) ) then end end end end ) Edited July 12, 2015 by Guest Link to comment
3NAD Posted July 12, 2015 Share Posted July 12, 2015 السلام عليكم ورحمه الله وبركاتهكيفكم شباب .. ان شاء الله بخير المهمم صارت معي مشكلة بالقريد ليست الكود addEventHandler("onClientResourceStart",resourceRoot,players) function () if ( source == Send ) then if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then local Msg = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if ( getPlayerFromName(player) ) then end end end ) الدي بوق يقول client.lua:2: '' expected near '(' جربت أعرف الفنكشن بس نفس المشكلة 1- كيف الإيفنت يجي قبل الفنكشن ؟؟ 2- كيف الفنكشن بدون تعريف ؟؟ 3- ناقص اند للفنكشن Link to comment
; Mr.T76eM # Posted July 12, 2015 Share Posted July 12, 2015 function players() if ( source == Send ) then if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then local Msg = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if ( getPlayerFromName(player) ) then end end end end addEventHandler("onClientResourceStart",resourceRoot,players) Link to comment
Mr.R Posted July 12, 2015 Share Posted July 12, 2015 function players() if ( source == Send ) then if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then local Msg = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if ( getPlayerFromName(player) ) then end end end end addEventHandler("onClientResourceStart",resourceRoot,players) بلاير مو معرفه يامدير : ) Link to comment
#|_oskar_|# Posted July 12, 2015 Share Posted July 12, 2015 (edited) function players() if ( source == Send ) then if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then local Msg = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if ( getPlayerFromName(player) ) then end end end end addEventHandler("onClientResourceStart",resourceRoot,players) player مو معرف + onClientResourceStart المفروض تحط حدث عند الضغط ع الزر بدل حدث ال Edited July 12, 2015 by Guest Link to comment
; Mr.T76eM # Posted July 12, 2015 Share Posted July 12, 2015 انا بس عدلت عليه عشان يفهم يمكن هو معرفه لكن ما عطانا التعريف Link to comment
#StrOnG_,) Posted July 12, 2015 Author Share Posted July 12, 2015 يعطيكم العافيةة ضبط .. تمت الافادة Link to comment
Mr.R Posted July 12, 2015 Share Posted July 12, 2015 يعطيكم العافيةة ضبط .. تمت الافادة حياكـ الله 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