Best-Killer Posted November 10, 2016 Share Posted November 10, 2016 function sendTurfPayout ( ) local groupTurfs = { } for i, v in pairs ( turfLocs ) do if ( not groupTurfs [ v.owner ] ) then groupTurfs [ v.owner ] = 0 end if ( not v.attackers ) then groupTurfs [ v.owner ] = groupTurfs [ v.owner ] + 1 end end for i, v in pairs ( getElementsByType ( 'player' ) ) do local g = expors .SAEGGroups:getGroups () or exports.SAEGGroups:getPlayerGroup ( v ) if ( groupTurfs [ g ] > 0 ) then local c = groupTurfs [ g ] * tonumber ( get ( "*PAYOUT_CASH" ) ) exports.SAEGGroups:setGroupBank ( g, exports.SAEGGroups:getGroupBank ( g ) + tostring(c) ) end end end setTimer ( sendTurfPayout, (60*tonumber(get("*PAYOUT_TIME")))*100, 0 ) exports.SAEGGroupsgetPlayerGroup fine but SAEGGroups:getGroups group isn't defined and with that code , money are withdrawed to clan bank but only when the player group online ig i want if player not online ig or online ig the money withdraw to Groupbank !! any help pls ? Note : to that Moderator who removing my posts without make sure my codes aren't stolen or leaked pm me i want know you then i'll give you proffs that my codes arent't leaked or stolen Wtf pffffffffffff Stop removing them really i'm using Nerg Gaming Game mode & developring them want proff Pm me Link to comment
Best-Killer Posted November 10, 2016 Author Share Posted November 10, 2016 any help ! Link to comment
LoPollo Posted November 10, 2016 Share Posted November 10, 2016 Line 17: expors .SAEGGroups:getGroups There's a space between the "expors" and ".SAEGGroups...", also expors should be exports Link to comment
Best-Killer Posted November 10, 2016 Author Share Posted November 10, 2016 lol i forget them , but still same problem Link to comment
idarrr Posted November 19, 2016 Share Posted November 19, 2016 This, will only loop for Online players. If there is no Online players on that group, the code won't work. --line 13 on your code for i, v in pairs ( getElementsByType ( 'player' ) ) do You need to directly add the money into database. 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