enzopaul4 Posted February 8, 2017 Posted February 8, 2017 function Slotmachine:StartPlayer(thePlayer) if(exports.global:takeMoney(thePlayer) >= self.prices.bet) then if(self.canSpin == true) then exports.global:giveMoney(thePlayer, -self.prices.bet) triggerClientEvent(thePlayer, "onSlotmachineWintext", thePlayer, "#FF0000-$"..self.prices.bet) self:Start(thePlayer) end else triggerClientEvent(thePlayer, "onSlotmachineWintext", thePlayer, "#FF0000Iti trebuie $"..self.prices.bet.." lei , ca sa dai de maneta") end end Hi guys , i make this script for my server , and this isn”t work , here is the problem i see in the debug script and consol , but i cannot find it.
enzopaul4 Posted February 8, 2017 Author Posted February 8, 2017 Just now, nikitafloy said: What do "takeMoney"? ..... it takes money from the player
nikitafloy Posted February 8, 2017 Posted February 8, 2017 1 minute ago, enzopaul4 said: ..... it takes money from the player Why do u need exports define variable?
enzopaul4 Posted February 8, 2017 Author Posted February 8, 2017 Becouse i use phpmyadmin first time , and secound time , i use a another resource for this.
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