MR.GRAND Posted August 15, 2015 Share Posted August 15, 2015 هلآ بالعيال , كيفكم ؟ ابي فنكشن اللي يجيب سيريال أي لاعب احدده في جريد لست Link to comment
Naif Posted August 15, 2015 Share Posted August 15, 2015 getPlayerFromName guiGridListGetItemText getPlayerSerial Link to comment
MR.GRAND Posted August 15, 2015 Author Share Posted August 15, 2015 جربت نفس الكلام وماضبط function Select() local TexT_Show = guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) Serial = getPlayerFromName( TexT_Show ) guiSetText (coby12, getPlayerSerial (Serial) ) end addEventHandler ("onClientGUIClick", GridList, Select) Link to comment
H25 Posted August 15, 2015 Share Posted August 15, 2015 جربت نفس الكلام وماضبط function Select() local TexT_Show = guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) Serial = getPlayerFromName( TexT_Show ) guiSetText (coby12, getPlayerSerial (Serial) ) end addEventHandler ("onClientGUIClick", GridList, Select) getPlayerSerial في الكلنت مافيه ارقمنت اللاعب ! Link to comment
~Mr.Hassan Posted August 15, 2015 Share Posted August 15, 2015 جربت نفس الكلام وماضبط function Select() local TexT_Show = guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) Serial = getPlayerFromName( TexT_Show ) guiSetText (coby12, getPlayerSerial (Serial) ) end addEventHandler ("onClientGUIClick", GridList, Select) getPlayerSerial في الكلنت مافيه ارقمنت اللاعب ! كلنت مع سيرفر Link to comment
MR.GRAND Posted August 15, 2015 Author Share Posted August 15, 2015 الحين وش اسويله ؟؟ صار كذا وماضبط function Select() local TexT_Show = guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) SET = getPlayerSerial( getPlayerFromName( TexT_Show ) ) guiSetText (coby12, SET ) end addEventHandler ("onClientGUIClick", GridList, Select) Link to comment
Naif Posted August 15, 2015 Share Posted August 15, 2015 -- Client addEventHandler('onClientGUIClick',root, function ( ) if ( source == GridList ) then if ( guiGridListGetSelectedItem ( GridList ) ~= -1 ) then triggerServerEvent('getSerialFromName',localPlayer,guiGridListGetItemText(GridList,guiGridListGetSelectedItem ( GridList ),1)) else guiSetText(coby12,'') end end end ) addEvent('Get',true) addEventHandler('Get',root, function ( serial ) guiSetText(coby12,tostring(serial)) end) -- Server addEvent('getSerialFromName',true) addEventHandler('getSerialFromName',root, function ( name ) if ( getPlayerFromName(name) ) then triggerClientEvent(source,'Get',source,getPlayerSerial(getPlayerFromName(name))) end end ) Link to comment
H25 Posted August 15, 2015 Share Posted August 15, 2015 الحين وش اسويله ؟؟صار كذا وماضبط function Select() local TexT_Show = guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) SET = getPlayerSerial( getPlayerFromName( TexT_Show ) ) guiSetText (coby12, SET ) end addEventHandler ("onClientGUIClick", GridList, Select) تقدر تسوي داتا لكل لاعب بسيرياله أو ترايقرات بس الداتا أفضل Link to comment
MR.GRAND Posted August 15, 2015 Author Share Posted August 15, 2015 ERROR: Server triggered clientside Get, but event is not added clientside أنت ماسويت الحدث اللي بالكلنت ض1 Link to comment
MR.GRAND Posted August 15, 2015 Author Share Posted August 15, 2015 Client -- addEvent("GET",true) addEventHandler("GET",root, guiSetText(coby12,) ذا الحدث اللي بالكلنت انت مو حاطه .. يبيله تكملة Link to comment
MR.GRAND Posted August 15, 2015 Author Share Posted August 15, 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