#AL-J7EEEM Posted March 23, 2017 Author 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)
Adham Posted March 23, 2017 Posted March 23, 2017 outputChatBox( "the player name "..getAccountName(player).." and he is data "..data.." ",root,255,255,255,true ) لو جالك خطأ تاني اطرح الدي بق
Abdul KariM Posted March 23, 2017 Posted March 23, 2017 @Deativated مفروض يكون فيه تحقق من الداتا نفترض ان الاعب اول مره يدخل السيرفر وماعنده داتا راح تكون القيمة فولس وراح يطلع دي بوق بولين
Adham Posted March 23, 2017 Posted March 23, 2017 (edited) @Abdul KariM قصدك هكذا ؟؟ local data = getElementData( player,'dataname' ) if ( data ) then Edited March 23, 2017 by Deativated
#AL-J7EEEM Posted March 23, 2017 Author 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)
#BrosS Posted March 23, 2017 Posted March 23, 2017 getAccountName م اشوف ان مطلوب فيها ارجومنت لاعب ._.
#AL-J7EEEM Posted March 23, 2017 Author Posted March 23, 2017 ?????????????????????????????????????????????? وش اسوي الحين؟
#BrosS Posted March 23, 2017 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
#AL-J7EEEM Posted March 23, 2017 Author 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)
#BrosS Posted March 23, 2017 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
#AL-J7EEEM Posted March 23, 2017 Author Posted March 23, 2017 2 minutes ago, #BrosS said: لول سوري ماشفته بدل السطر بدا for i,player in ipairs(getElementsByType("player")) do المود اشتغل لكن يجيب بل شات كذا Player is not logged in !
Adham Posted March 23, 2017 Posted March 23, 2017 1 minute ago, #AL-J7EEEM said: المود اشتغل لكن يجيب بل شات كذا Player is not logged in ! اكيد غير مسجل .؟
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