Jump to content

Recommended Posts

السلام عليكم ورحمه الله وبركاته 

اشلونكم شباب ان شاء الله تكونو بخير 

لو سمحت اريد مساعده

هذا كود  يظهر اسم اللاعب في اللوحه

 في lable

لكن في مشكله في كود

أظهار سيريال اللاعب  

guiSetText( GUIEditor.label[5], "Serial : ".. getPlayerSerial( localPlayer ).."" )

وشكرا مقدما

 

setElementData ( localPlayer, "clothesvipSkin", getElementModel ( localPlayer ), true )
			--triggerServerEvent ( "OnClientGetPreminumTime", localPlayer ) 
			guiSetVisible(WindowVIPanel, true)
			showCursor(true)
			guiSetText( LabelAccountName, "account name : "..getElementData(localPlayer,"Account").."" )
			guiSetText( LabelAccountName, "account name : "..getElementData(localPlayer,"Account").."" )
	     		guiSetText( LabelPlayerName, "player name : "..getPlayerName( localPlayer ).."" )
					     		guiSetText( GUIEditor.label[5], "Serial : ".. getPlayerSerial( localPlayer ).."" )

 

Link to comment
 
--Server
addEventHandler("onPlayerJoin",root,
function () 
setElementData(source,"Serial",getPlayerSerial(source))
end
)

addEventHandler("onResourceStart",root,
function () 
 for _,v in ipairs ( getElementsByType ( "player" ) ) do
setElementData(v,"Serial",getPlayerSerial(v))
end
end 
)
-- Client

guiSetText(GUIEditor.label[5], "Serial : "..getElementData(localPlayer,"Serial").."")

 

Edited by Ahmed Ly
edit code
  • Like 1
Link to comment
4 minutes ago, Ahmed Ly said:

--Server
addEventHandler("onPlayerJoin",root,
function () 
setElementData(source,"Serial",getPlayerSerial(source))
end
)

addEventHandler("onResourceStart",root,
function () 
 for _,v in ipairs ( getElementsByType ( "player" ) ) do
setElementData(v,"Serial",getPlayerSerial(source))
end
end 
)
-- Client

guiSetText(GUIEditor.label[5], "Serial : ".. getElementData(source,"Serial"))

 

غلط

راجع سطر

11

17

Edited by #,+( _xiRoc[K]; >
  • Like 1
Link to comment
8 minutes ago, Mr.HITMAN said:

طب ايه الصح؟!

جرب ذا مدري بينجح او لا

بس انت جرب

setElementData ( localPlayer, "clothesvipSkin", getElementModel ( localPlayer ), true )
			--triggerServerEvent ( "OnClientGetPreminumTime", localPlayer ) 
			guiSetVisible(WindowVIPanel, true)
			showCursor(true)
			guiSetText( LabelAccountName, "account name : "..getElementData(localPlayer,"Account").."" )
			guiSetText( LabelAccountName, "account name : "..getElementData(localPlayer,"Account").."" )
	     		guiSetText( LabelPlayerName, "player name : "..getPlayerName( localPlayer ).."" )
					     		guiSetText( GUIEditor.label[5], "Serial : ".. getPlayerSerial( ).."" )

 

  • Like 1
Link to comment
39 minutes ago, A7MEDENO said:

جرب ذا مدري بينجح او لا

بس انت جرب


setElementData ( localPlayer, "clothesvipSkin", getElementModel ( localPlayer ), true )
			--triggerServerEvent ( "OnClientGetPreminumTime", localPlayer ) 
			guiSetVisible(WindowVIPanel, true)
			showCursor(true)
			guiSetText( LabelAccountName, "account name : "..getElementData(localPlayer,"Account").."" )
			guiSetText( LabelAccountName, "account name : "..getElementData(localPlayer,"Account").."" )
	     		guiSetText( LabelPlayerName, "player name : "..getPlayerName( localPlayer ).."" )
					     		guiSetText( GUIEditor.label[5], "Serial : ".. getPlayerSerial( ).."" )

 

 

On ٢٣‏/٨‏/٢٠١٧ at 22:42, MR.StoRm said:

getPlayerSerial

فقط سيرفر ,
وانت واضعها كلنت , !

-__-|
ما تشوف  ؟ !!

Link to comment
On 8/23/2017 at 23:11, Ahmed Ly said:
 

--Server
addEventHandler("onPlayerJoin",root,
function () 
setElementData(source,"Serial",getPlayerSerial(source))
end
)

addEventHandler("onResourceStart",root,
function () 
 for _,v in ipairs ( getElementsByType ( "player" ) ) do
setElementData(v,"Serial",getPlayerSerial(v))
end
end 
)
-- Client

guiSetText(GUIEditor.label[5], "Serial : "..getElementData(localPlayer,"Serial").."")

 

سطر 8 استبدل root ب

resourceRoot

  • Like 1
Link to comment
8 hours ago, #,+( _xiRoc[K]; > said:

سطر 8 استبدل root ب

resourceRoot

جميل جدا ياغالي مشكووووووووووور:D  ذا نفع معي وشكرا لكل شخص اتعبته معي وحاول ان يساعدني حتي لو بالخطا 

:xشكرا للجميع:x

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...