JoZeFSvK Posted April 21, 2013 Share Posted April 21, 2013 Who know where is problem ? local account = getPlayerAccount(source) if not isGuestAccount(account) then for i,data in ipairs(dataTable) do if not getAccountData(account, data) then setAccountData(account, data, "0") outputDebugString("Setting data: " .. tostring(data) .. " for player: " .. tostring(getPlayerName(source)) .. " to 0") end end end if not isGuestAccount(account) then for i,data in pairs(textDataTable) do if not getAccountData(account, data) then setAccountData(account, data, getPlayerName(source)) end end ------------------------------------------------------------------ function BuyRepair (player, command) if (getAccountData(account, "cash") > 2000) then local auto = getPedOccupiedVehicle(player) local nick = getPlayerName(player) fixVehicle(auto) setAccountData(account, "cash", playerCash - 2000) scoreboardRefresh(thePlayer) outputChatBox("Player #0fc0fc" .. nick .. " #0fc0fcbought for $10 000 repair! #0fc0fc(/fix for #ffff00VIP#0fc0fc)", getRootElement(), 255, 0, 0, true) else outputChatBox("Not enough money.", player, 255, 0, 0, true) end end addCommandHandler("fix", BuyRepair) Link to comment
Jaysds1 Posted April 21, 2013 Share Posted April 21, 2013 Please post the full script, because this is nothing... 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