Jump to content

فنكشن بسيط , سطر واحد !


Recommended Posts

جربت نفس الكلام وماضبط :|

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
جربت نفس الكلام وماضبط :|
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
جربت نفس الكلام وماضبط :|
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

الحين وش اسويله ؟؟

صار كذا وماضبط

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
  
-- 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
الحين وش اسويله ؟؟

صار كذا وماضبط

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...