Mr.HITMAN Posted August 23, 2017 Share Posted August 23, 2017 السلام عليكم ورحمه الله وبركاته اشلونكم شباب ان شاء الله تكونو بخير لو سمحت اريد مساعده هذا كود يظهر اسم اللاعب في اللوحه في 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
MR.StoRm Posted August 23, 2017 Share Posted August 23, 2017 أولاً : القسم غلط والقسم الصحيح هو قسم البرمجة ثانياً : getPlayerSerial فقط سيرفر , وانت واضعها كلنت , ! 1 Link to comment
Mr.HITMAN Posted August 23, 2017 Author Share Posted August 23, 2017 اخي طب ممكن الطريقه الصحيحه لكتابته الزر وتعريفه في الكلينت وعمل trigger من السيرفر Link to comment
Ahmed Ly Posted August 23, 2017 Share Posted August 23, 2017 (edited) --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 August 23, 2017 by Ahmed Ly edit code 1 Link to comment
Rockyz Posted August 23, 2017 Share Posted August 23, 2017 (edited) 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 August 23, 2017 by #,+( _xiRoc[K]; > 1 Link to comment
Mr.HITMAN Posted August 24, 2017 Author Share Posted August 24, 2017 On ٢٣/٨/٢٠١٧ at 22:15, #,+( _xiRoc[K]; > said: غلط راجع سطر 11 17 طب ايه الصح؟! Link to comment
+Source|> Posted August 24, 2017 Share Posted August 24, 2017 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( ).."" ) 1 Link to comment
MR.StoRm Posted August 24, 2017 Share Posted August 24, 2017 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
+Source|> Posted August 24, 2017 Share Posted August 24, 2017 11 minutes ago, MR.StoRm said: -__-| ما تشوف ؟ !! انا جربتها كدا واشتغلت 1 Link to comment
Ahmed Ly Posted August 25, 2017 Share Posted August 25, 2017 3 hours ago, Mr.HITMAN said: طب ايه الصح؟! عدلته كود جربه 1 Link to comment
Rockyz Posted August 25, 2017 Share Posted August 25, 2017 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 1 Link to comment
Mr.HITMAN Posted August 25, 2017 Author Share Posted August 25, 2017 8 hours ago, #,+( _xiRoc[K]; > said: سطر 8 استبدل root ب resourceRoot جميل جدا ياغالي مشكووووووووووور ذا نفع معي وشكرا لكل شخص اتعبته معي وحاول ان يساعدني حتي لو بالخطا شكرا للجميع Link to comment
MR.StoRm Posted August 25, 2017 Share Posted August 25, 2017 47 minutes ago, Mr.HITMAN said: جميل جدا ياغالي مشكووووووووووور ذا نفع معي وشكرا لكل شخص اتعبته معي وحاول ان يساعدني حتي لو بالخطا شكرا للجميع العفو 1 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