Adham Posted December 15, 2016 Share Posted December 15, 2016 سلام عليكم ابي فكشنات . لما يحدد اسم الاعب من القريد ليست ويكتب في الايديت اي دي الشخصيه ويدوس علي الزرار يعطي الاعب المحدد شخصيه والاي دي المحدد في الايديت . Link to comment
' A F . Posted December 15, 2016 Share Posted December 15, 2016 'onClientGUIClick' guiGridListGetSelectedItem guiGridListGetItemText guiGetText triggerServerEvent getPlayerFromName setElementModel 2 Link to comment
Adham Posted December 15, 2016 Author Share Posted December 15, 2016 (edited) الخطأ هنا ؟ addEventHandler ( 'onClientGUIClick', root, if ( source == GUIEditor.button[2] ) then local Name = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) local ID = guiGetText ( GUIEditor.edit[2] ) triggerServerEvent ( 'CheakPlayer;skin', localPlayer, Name, ID ) end end ) --server addEvent( 'CheakPlayer;skin', true ) addEventHandler( 'CheakPlayer;skin', root, function( player, ID ) local player = getPlayerFromName( player ) setElementModel ( player, ID ) end ) -- دي بق setElementModel ( player, ID ) -- في الكود هنا Edited December 15, 2016 by Le3bA Link to comment
^iiEcoo'x_) Posted December 15, 2016 Share Posted December 15, 2016 -- Client addEventHandler("onClientGUIClick",root, function ( ) if ( source == Button ) then if ( guiGridListGetSelectedItem(List ) ~= -1 ) then local plr = guiGridListGetItemText(List ,guiGridListGetSelectedItem(List ),1) local player = getPlayerFromName ( plr ) local ID = guiGetText ( GUIEditor.edit[2] ) triggerServerEvent ( "skin", localPlayer , plr , ID ) end end end ) -- Server addEvent ( "skin", true) addEventHandler ( "skin", root, function ( plr , ID ) setElementModel ( plr, ID ) end end ) جرب Link to comment
Adham Posted December 15, 2016 Author Share Posted December 15, 2016 نفس الشي, م شتغل . Link to comment
^iiEcoo'x_) Posted December 15, 2016 Share Posted December 15, 2016 تاكد انك مغير اسم القريد ليست وهات الدي بق + اسم الزر Link to comment
Abu-Solo Posted December 15, 2016 Share Posted December 15, 2016 Just now, Le3bA said: تأكدت ومشتغل اطرح اكوادك كاملة Link to comment
Adham Posted December 15, 2016 Author Share Posted December 15, 2016 47 minutes ago, Le3bA said: الخطأ هنا ؟ addEventHandler ( 'onClientGUIClick', root, if ( source == GUIEditor.button[2] ) then local Name = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) local ID = guiGetText ( GUIEditor.edit[2] ) triggerServerEvent ( 'CheakPlayer;skin', localPlayer, Name, ID ) end end ) --server addEvent( 'CheakPlayer;skin', true ) addEventHandler( 'CheakPlayer;skin', root, function( player, ID ) local player = getPlayerFromName( player ) setElementModel ( player, ID ) end ) -- دي بق setElementModel ( player, ID ) -- في الكود هنا ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ Link to comment
^iiEcoo'x_) Posted December 15, 2016 Share Posted December 15, 2016 setPlayerSkin(plr,ID) بدلها ب setElementModel Link to comment
Adham Posted December 15, 2016 Author Share Posted December 15, 2016 برده نفس الخطا . Link to comment
خلف Posted December 15, 2016 Share Posted December 15, 2016 addEventHandler ( 'onClientGUIClick', root, if ( source == GUIEditor.button[2] ) then -- نسيت تضيف function ( ) Link to comment
خلف Posted December 15, 2016 Share Posted December 15, 2016 addEventHandler ( 'onClientGUIClick', root, function ( ) if source == GUIEditor.button[2] then if guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 then local Name = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) local ID = guiGetText ( GUIEditor.edit[2] ) triggerServerEvent ( 'CheakPlayer;skin', localPlayer, Name, ID ) end end end ) -- Server addEvent( 'CheakPlayer;skin', true ) addEventHandler( 'CheakPlayer;skin', root, function( player, ID ) local player = getPlayerFromName( player ) if player then setElementModel ( player, ID ) end end ) Link to comment
N3xT Posted December 16, 2016 Share Posted December 16, 2016 إذا الأكواد اللي فوق ما ظبطت معك, ف إحتمال المشكلة تكون من إضافة اللاعبين للقريد ليست ضايفهم أنت بدون ألوانهم ( يعني مسوي gsub ) 1 Link to comment
Adham Posted December 16, 2016 Author Share Posted December 16, 2016 لاكن انا حاطط داتا علي الاسماء ؟ ؟ Link to comment
Abdul KariM Posted December 16, 2016 Share Posted December 16, 2016 جيب الداتا طيب guiGridListGetItemData Link to comment
Ahmed Ly Posted December 16, 2016 Share Posted December 16, 2016 addEventHandler ( 'onClientGUIClick', root, function ( ) if source == GUIEditor.button[2] then if guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 then local Name = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) local ID = guiGetText (GUIEditor.edit[2]) if ID ~= "" then triggerServerEvent ( 'CheakPlayer;skin', localPlayer,Name,ID ) end end end end ) -- Server addEvent( 'CheakPlayer;skin', true ) addEventHandler( 'CheakPlayer;skin', root, function(Name,ID) local player = getPlayerFromName(Name) setElementModel(player,ID) end ) 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