No_name Posted July 7, 2018 Share Posted July 7, 2018 (edited) وش الخطأ هنا سيرفر local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) local Name = getPlayerName(source) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then -------------------Money------------------------------- if money == nil or not tonumber(money) then money = 0 end if ( money >= tonumber(money)) then كلنت xMainFunctions_ = function ( ) local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); local money = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,3 )); if ( row and col and row ~= -1 and col ~= -1 ) then الفكرة يشتري رتب بفلوس وساعات الساعات شغالة بس نبي تصحيح للفلوس وشكرا Edited July 7, 2018 by No_name Link to comment
[T]|O|[P]George Posted July 7, 2018 Share Posted July 7, 2018 (edited) ------------------Client-------------------------- local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); local Price = tonumber ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); -- عدلت تو سترنج local money = tonumber ( guiGridListGetItemText(GUIEditor.gridlist[1],row,3 )); -- نفس الكلام if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent("gettherank",localPlayer,Group,Price,money) ------------------Server-------------------------- addEvent("gettherank",true) addEventHandler("gettherank",root, function ( Group,Price,money ) local mo = getPlayerMoney(source) if (mo >= tonumber(money)) then takePlayerMoney ( source, tonumber(money) ) end end ) Edited July 7, 2018 by [T]|O|[P]George 1 1 Link to comment
#Major . Posted July 7, 2018 Share Posted July 7, 2018 local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) local Name = getPlayerName(source) local money = getPlayerMoney(source) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then -------------------Money------------------------------- if money == nil or not tonumber(money) then money = 0 end if ( money >= tonumber(PriceM)) then حق جورج كمان شغال 1 Link to comment
No_name Posted July 7, 2018 Author Share Posted July 7, 2018 @*RayaN-Alharbi. PriceM = اسم كولوم الفلوس بالقريد ليست صح؟ Link to comment
No_name Posted July 7, 2018 Author Share Posted July 7, 2018 *RayaN-Alharbi. كودك خطأ وماشتغل Link to comment
#Major . Posted July 7, 2018 Share Posted July 7, 2018 هات كودك كامل 3 hours ago, No_name said: *RayaN-Alharbi. كودك خطأ وماشتغل 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