#DRAGON!FIRE Posted August 16, 2014 Share Posted August 16, 2014 جرب كذا .. : addEventHandler( "onClientGUIClick", resourceRoot, function ( ) if ( source == removebu ) then if ( guiGetText ( addedit ) ~= "" ) then guiGridListRemoveRow ( gridlist, guiGetText ( addedit ) ) end elseif ( source == onlinebu ) then if ( guiGetText ( addedit ) ~= "" ) then guiGridListSetItemColor ( gridlist, guiGetText ( addedit ), NameCo, 0, 255, 0 ) end elseif ( source == offlinebu ) then if ( guiGetText ( addedit ) ~= "" ) then guiGridListSetItemColor ( gridlist, guiGetText ( addedit ), NameCo, 255, 0, 0 ) end elseif ( source == addbu ) then if ( guiGetText ( addedit ) ~= "" ) then local membername = guiGridListAddRow ( gridlist ) guiGridListSetItemText ( gridlist, membername, NameCo, ""..guiGridListGetRowCount ( gridlist ).."- "..guiGetText ( addedit ), false, false ) end end end ) Link to comment
Simple. Posted August 16, 2014 Author Share Posted August 16, 2014 لكن الآرقام بآلقريد لست تبدا من 0 , وآلي عطيتني آياه من 1 , إيشش آلححل ؟ معليش تعبتك معي <3 Link to comment
#DRAGON!FIRE Posted August 16, 2014 Share Posted August 16, 2014 لكن الآرقام بآلقريد لست تبدا من 0 , وآلي عطيتني آياه من 1 , إيشش آلححل ؟معليش تعبتك معي <3 يعني تبي اول رو يبدا من 0 ؟ Link to comment
#DRAGON!FIRE Posted August 16, 2014 Share Posted August 16, 2014 addEventHandler( "onClientGUIClick", resourceRoot, function ( ) if ( source == removebu ) then if ( guiGetText ( addedit ) ~= "" ) then guiGridListRemoveRow ( gridlist, guiGetText ( addedit ) ) end elseif ( source == onlinebu ) then if ( guiGetText ( addedit ) ~= "" ) then guiGridListSetItemColor ( gridlist, guiGetText ( addedit ), NameCo, 0, 255, 0 ) end elseif ( source == offlinebu ) then if ( guiGetText ( addedit ) ~= "" ) then guiGridListSetItemColor ( gridlist, guiGetText ( addedit ), NameCo, 255, 0, 0 ) end elseif ( source == addbu ) then if ( guiGetText ( addedit ) ~= "" ) then local membername = guiGridListAddRow ( gridlist ) guiGridListSetItemText ( gridlist, membername, NameCo, ""..guiGridListGetRowCount ( gridlist ) - 1.."- "..guiGetText ( addedit ), false, false ) end end end ) Link to comment
Simple. Posted August 16, 2014 Author Share Posted August 16, 2014 شوف آلديبوق وش يقول Link to comment
#DRAGON!FIRE Posted August 16, 2014 Share Posted August 16, 2014 غريب .. طيب جرب كذا addEventHandler( "onClientGUIClick", resourceRoot, function ( ) if ( source == removebu ) then if ( guiGetText ( addedit ) ~= "" ) then guiGridListRemoveRow ( gridlist, guiGetText ( addedit ) ) end elseif ( source == onlinebu ) then if ( guiGetText ( addedit ) ~= "" ) then guiGridListSetItemColor ( gridlist, guiGetText ( addedit ), NameCo, 0, 255, 0 ) end elseif ( source == offlinebu ) then if ( guiGetText ( addedit ) ~= "" ) then guiGridListSetItemColor ( gridlist, guiGetText ( addedit ), NameCo, 255, 0, 0 ) end elseif ( source == addbu ) then if ( guiGetText ( addedit ) ~= "" ) then local membername = guiGridListAddRow ( gridlist ) local roWCount = guiGridListGetRowCount ( gridlist ) - ( 1 ) guiGridListSetItemText ( gridlist, membername, NameCo, ""..tonumber ( roWCount ).."- "..guiGetText ( addedit ), false, false ) end end end ) Link to comment
Simple. Posted August 16, 2014 Author Share Posted August 16, 2014 يعطيك آلعافيه <3 تعبتك معي يآلحب <3 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