#AL-J7EEEM Posted March 23, 2017 Author Share Posted March 23, 2017 2 minutes ago, Deativated said: اطرح سطر 133 .. ونا عدلت الكود خده مره تانيه خطا سطر رقم 133 تاني outputChatBox('the player name ['..getAccountName(player)..'] and he is data '..data..' .',root,255,255,255,true) Link to comment
Adham Posted March 23, 2017 Share Posted March 23, 2017 outputChatBox( "the player name "..getAccountName(player).." and he is data "..data.." ",root,255,255,255,true ) لو جالك خطأ تاني اطرح الدي بق Link to comment
Abdul KariM Posted March 23, 2017 Share Posted March 23, 2017 @Deativated مفروض يكون فيه تحقق من الداتا نفترض ان الاعب اول مره يدخل السيرفر وماعنده داتا راح تكون القيمة فولس وراح يطلع دي بوق بولين Link to comment
Adham Posted March 23, 2017 Share Posted March 23, 2017 (edited) @Abdul KariM قصدك هكذا ؟؟ local data = getElementData( player,'dataname' ) if ( data ) then Edited March 23, 2017 by Deativated Link to comment
Abdul KariM Posted March 23, 2017 Share Posted March 23, 2017 تحقق انها تنافي الفولس او ماتكون فارغة 1 Link to comment
#BrosS Posted March 23, 2017 Share Posted March 23, 2017 (edited) done Edited March 23, 2017 by #BrosS 1 Link to comment
#AL-J7EEEM Posted March 23, 2017 Author Share Posted March 23, 2017 4 minutes ago, Deativated said: outputChatBox( "the player name "..getAccountName(player).." and he is data "..data.." ",root,255,255,255,true ) لو جالك خطأ تاني اطرح الدي بق WARNING:SCRIPT\SERVER.lua:133:bad argument @ 'getAccountName'[expected account at argument 1 ,got player] ERROR:SCRIPT\SERVER.lua:133: ATTEMPT TOP CONCATENATE LOCAL'DATA'(A BOOLEAN VALUE) Link to comment
#BrosS Posted March 23, 2017 Share Posted March 23, 2017 getAccountName م اشوف ان مطلوب فيها ارجومنت لاعب ._. Link to comment
#AL-J7EEEM Posted March 23, 2017 Author Share Posted March 23, 2017 ?????????????????????????????????????????????? وش اسوي الحين؟ Link to comment
#BrosS Posted March 23, 2017 Share Posted March 23, 2017 (edited) جرب ذا اتمنى االاكواد ماتجي ملخبطة لاني جوال addEvent( "showchatdata",true ) addEventHandler( "showchatdata",root, function() for k,player in ipairs( "player" )do local data = getElementData( player,'dataname' ) local acc =getPlayerAccount( player ) if not isGuestAccount( acc ) then if data then outputChatBox('the account name ['..getAccountName(acc)..'] and his data '..data..' .',root,255,255,255,true) else outputChatBox('Player is not logged in !',root,255,0,0,true) end end end end) Edited March 23, 2017 by #BrosS Link to comment
#AL-J7EEEM Posted March 23, 2017 Author Share Posted March 23, 2017 2 minutes ago, #BrosS said: جرب ذا اتمنى االاكواد ماتجي ملخبطة لاني جوال addEvent( "showchatdata",true ) addEventHandler( "showchatdata",root, function() for k,player in ipairs( "player" )do local data = getElementData( player,'dataname' ) local acc =getPlayerAccount( player ) if not isGuestAccount( acc ) then if data then outputChatBox('the account name ['..getAccountName(acc)..'] and his data '..data..' .',root,255,255,255,true) else outputChatBox('Player is not logged in !',root,255,0,0,true) end end end end) ERROR:SCRIPT\SERVER.lua:133: bad argument #1 to 'ipairs' (table expected, got string) Link to comment
#BrosS Posted March 23, 2017 Share Posted March 23, 2017 1 minute ago, #AL-J7EEEM said: ERROR:SCRIPT\SERVER.lua:133: bad argument #1 to 'ipairs' (table expected, got string) لول سوري ماشفته بدل السطر بدا for i,player in ipairs(getElementsByType("player")) do Link to comment
#AL-J7EEEM Posted March 23, 2017 Author Share Posted March 23, 2017 2 minutes ago, #BrosS said: لول سوري ماشفته بدل السطر بدا for i,player in ipairs(getElementsByType("player")) do المود اشتغل لكن يجيب بل شات كذا Player is not logged in ! Link to comment
Adham Posted March 23, 2017 Share Posted March 23, 2017 1 minute ago, #AL-J7EEEM said: المود اشتغل لكن يجيب بل شات كذا Player is not logged in ! اكيد غير مسجل .؟ Link to comment
#AL-J7EEEM Posted March 23, 2017 Author Share Posted March 23, 2017 لالا خلاص تم الافاده اشتغل 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