Jump to content

مشكله بلقريد ليست


Recommended Posts

سلام عليكم عندي مشكله بلقريد ليست ابي اخلي الرو يظهر اذا يكون عنده داتا انا معي كود الحين
بس مايسوي جربت اعطي حالي الداتا مابين الروو

for i , v in pairs (Dances) do
    local DanceData = tonumber( getElementData ( localPlayer, v[2] ) );
    if DanceData then
	local Row = guiGridListAddRow(Dance.gridlist[1])
	guiGridListSetItemText(Dance.gridlist[1],Row,1,v[1],false,false)
	guiGridListSetItemData(Dance.gridlist[1],Row,1,v)
    end
    end

 

Edited by DmAr511
Link to comment
46 minutes ago, DmAr511 said:

سلام عليكم عندي مشكله بلقريد ليست ابي اخلي الرو يظهر اذا يكون عنده داتا انا معي كود الحين
بس مايسوي جربت اعطي حالي الداتا مابين الروو


for i , v in pairs (Dances) do
    local DanceData = tonumber( getElementData ( localPlayer, v[2] ) );
    if DanceData then
	local Row = guiGridListAddRow(Dance.gridlist[1])
	guiGridListSetItemText(Dance.gridlist[1],Row,1,v[1],false,false)
	guiGridListSetItemData(Dance.gridlist[1],Row,1,v)
    end
    end

 


setElementData( localPlayer, "Dnc", true )


for i , v in pairs (Dances) do
    local DanceData = ( getElementData ( localPlayer, "اسم الداتا" ) );
    if DanceData == true then
	local Row = guiGridListAddRow(Dance.gridlist[1])
	guiGridListSetItemText(Dance.gridlist[1],Row,1,v[1],false,false)
	guiGridListSetItemData(Dance.gridlist[1],Row,1,v)
    end
    end

جرب

Link to comment
25 minutes ago, +Source|> said:

setElementData( localPlayer, "Dnc", true )


for i , v in pairs (Dances) do
    local DanceData = ( getElementData ( localPlayer, "اسم الداتا" ) );
    if DanceData == true then
	local Row = guiGridListAddRow(Dance.gridlist[1])
	guiGridListSetItemText(Dance.gridlist[1],Row,1,v[1],false,false)
	guiGridListSetItemData(Dance.gridlist[1],Row,1,v)
    end
    end

جرب

مازبط ~~

Link to comment
Just now, NX_CI said:

؟ Dances ممكن تورينا صياغة الجدول

ابشر

local Dances = {
	{"Dance ( 1 )","Dance1"},
	{"Dance ( 2 )","Dance2"},
	{"Dance ( 3 )","Dance3"},
	{"Dance ( 4 )","Dance4"},
	{"Dance ( 5 )","Dance5"},
	{"Dance ( 6 )","Dance6"},
	{"Dance ( 7 )","Dance7"},
	{"Dance ( 8 )","Dance8"},
	{"Dance ( 9 )","Dance9"},
	{"Dance ( 10 )","Dance10"},
	{"Dance ( 11 )","Dance11"},
	{"Dance ( 12 )","Dance12"},
}


 

خلاص تم الحل :

 

الكود

 

for i , v in pairs (Dances) do
    local DanceData = getElementData ( localPlayer, v[2] )
    if DanceData == true then
	local Row = guiGridListAddRow(DanceMGC.gridlist[1])
	guiGridListSetItemText(DanceMGC.gridlist[1],Row,1,v[1],false,false)
	guiGridListSetItemData(DanceMGC.gridlist[1],Row,1,v)
    end
    end

 

Link to comment
for i , v in pairs (Dances) do 
    local DanceData = getElementData(localPlayer,v[2]) ;
    if DanceData then 
		outputChatBox("there's data",0,255,0);
		local Row = guiGridListAddRow(Dance.gridlist[1]) ;
		guiGridListSetItemText(Dance.gridlist[1],Row,1,v[1],false,false) ;
		guiGridListSetItemData(Dance.gridlist[1],Row,1,v) ;
    end 
end 

outputChatBox : للتحقق من موقع الخطأ فقط

اذا ضبط الكود وخرها

اذا ما ظهر الكلام فالخطأ ان الداتا مو موجوده عند اللاعب أصلاً

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