iMr.3a[Z]eF Posted July 9, 2013 Share Posted July 9, 2013 I said trigger not the event -_-'! the errors from the markers the aren't defined Link to comment
iPrestege Posted July 9, 2013 Share Posted July 9, 2013 No it's not please read the topic. Link to comment
LiOneLMeSsIShoT Posted July 9, 2013 Author Share Posted July 9, 2013 I say you want this , local bank3 = createMarker(...) local bank4 = createMarker(...) local bank5 = createMarker(...) local bank6 = createMarker(...) local bank7 = createMarker(...) local bank8 = createMarker(...) local bank9 = createMarker(...) local bank10 = createMarker(...) local bank11 = createMarker(...) for the event ' onMarkerHit'. I wanted you to edit the script to have only 1 marker no more..that's what i mean now Link to comment
itoko Posted July 9, 2013 Share Posted July 9, 2013 Learn to read properly the errors written in the debugsmode. It's telling you there are errors with the events and it even tell you the line. From what i got, you want only one marker so you removed the createMarker, but you also have to remove the events that are triggering the markers you removed: local bank1 = createMarker ( 2290.8999023438, 537.09997558594, 0.80000001192093, "cylinder", 1.5, 255, 0, 0, 170 ) local bankBlip1 = createBlip ( 2290.8999023438, 537.09997558594, 0.80000001192093, 52, 2, 0, 0, 0, 255, 0, 15, getRootElement()) addEvent("CLBankGUI", true) addEvent("DepozytBank", true) addEvent("WyplacBank", true) addEvent("onSendVars", true) addEvent("potrzebujeBankBalance", true) addEvent("otoBalans", true) addEvent("chatBank", true) function bankHit(thePlayer) outputChatBox("Welcome to Zombie Island Bank system", thePlayer, 255, 0, 0) triggerClientEvent ("CLBankGUI", getRootElement()) end addEventHandler( "onMarkerHit", bank1, bankHit ) function DepozytDoBanku(amount) if not (tonumber(amount) <= 0) then local bankBalance = getAccountData (getPlayerAccount (source), "clroleplay-bank") takePlayerMoney(source, amount) amount2 = bankBalance + amount setAccountData (getPlayerAccount (source), "clroleplay-bank", amount2) outputChatBox("Your bank balance: " .. amount2 .. "$!", source, 255, 255, 0) else outputChatBox("Don't try to deposit " .. amount .. "$! =]", source, 255, 0, 0) end end addEventHandler( "DepozytBank", getRootElement(), DepozytDoBanku ) function potrzebaBalansu() local balans = getAccountData (getPlayerAccount (source), "clroleplay-bank") --New player anty-bug if(tostring(balans) == "false" or tostring(balans) == "")then setAccountData (getPlayerAccount (source), "clroleplay-bank", 0) balans = getAccountData (getPlayerAccount (source), "clroleplay-bank") end triggerClientEvent ("otoBalans", getRootElement(), balans) end addEventHandler( "potrzebujeBankBalance", getRootElement(), potrzebaBalansu ) function chatBank() local balans = getAccountData (getPlayerAccount (source), "clroleplay-bank") triggerClientEvent ("bankBalanceChat", getRootElement(), balans) end addEventHandler( "chatBank", getRootElement(), chatBank ) function WyplacZBanku(amount) local BankCash = getAccountData (getPlayerAccount (source), "clroleplay-bank") if (tonumber(amount) <= tonumber(BankCash)) then if(tonumber(amount) >= 1) then amount2 = BankCash-amount setAccountData (getPlayerAccount (source), "clroleplay-bank", amount2) givePlayerMoney(source, amount) outputChatBox("Your bank balance: " .. amount2 .. "$!", source, 255, 255, 0) else outputChatBox("Withdrawing " .. amount .. "$ is impossible!", source, 255, 0, 0) end else outputChatBox("You entered wrong value!", source, 255, 0, 0) outputChatBox("Your bank balance is " .. BankCash .. "$!", source, 255, 0, 0) end end addEventHandler( "WyplacBank", getRootElement(), WyplacZBanku ) Try to understand the debugmode, it's helpfull. Link to comment
LiOneLMeSsIShoT Posted July 9, 2013 Author Share Posted July 9, 2013 Learn to read properly the errors written in the debugsmode. It's telling you there are errors with the events and it even tell you the line. From what i got, you want only one marker so you removed the createMarker, but you also have to remove the events that are triggering the markers you removed: local bank1 = createMarker ( 2290.8999023438, 537.09997558594, 0.80000001192093, "cylinder", 1.5, 255, 0, 0, 170 ) local bankBlip1 = createBlip ( 2290.8999023438, 537.09997558594, 0.80000001192093, 52, 2, 0, 0, 0, 255, 0, 15, getRootElement()) addEvent("CLBankGUI", true) addEvent("DepozytBank", true) addEvent("WyplacBank", true) addEvent("onSendVars", true) addEvent("potrzebujeBankBalance", true) addEvent("otoBalans", true) addEvent("chatBank", true) function bankHit(thePlayer) outputChatBox("Welcome to Zombie Island Bank system", thePlayer, 255, 0, 0) triggerClientEvent ("CLBankGUI", getRootElement()) end addEventHandler( "onMarkerHit", bank1, bankHit ) function DepozytDoBanku(amount) if not (tonumber(amount) <= 0) then local bankBalance = getAccountData (getPlayerAccount (source), "clroleplay-bank") takePlayerMoney(source, amount) amount2 = bankBalance + amount setAccountData (getPlayerAccount (source), "clroleplay-bank", amount2) outputChatBox("Your bank balance: " .. amount2 .. "$!", source, 255, 255, 0) else outputChatBox("Don't try to deposit " .. amount .. "$! =]", source, 255, 0, 0) end end addEventHandler( "DepozytBank", getRootElement(), DepozytDoBanku ) function potrzebaBalansu() local balans = getAccountData (getPlayerAccount (source), "clroleplay-bank") --New player anty-bug if(tostring(balans) == "false" or tostring(balans) == "")then setAccountData (getPlayerAccount (source), "clroleplay-bank", 0) balans = getAccountData (getPlayerAccount (source), "clroleplay-bank") end triggerClientEvent ("otoBalans", getRootElement(), balans) end addEventHandler( "potrzebujeBankBalance", getRootElement(), potrzebaBalansu ) function chatBank() local balans = getAccountData (getPlayerAccount (source), "clroleplay-bank") triggerClientEvent ("bankBalanceChat", getRootElement(), balans) end addEventHandler( "chatBank", getRootElement(), chatBank ) function WyplacZBanku(amount) local BankCash = getAccountData (getPlayerAccount (source), "clroleplay-bank") if (tonumber(amount) <= tonumber(BankCash)) then if(tonumber(amount) >= 1) then amount2 = BankCash-amount setAccountData (getPlayerAccount (source), "clroleplay-bank", amount2) givePlayerMoney(source, amount) outputChatBox("Your bank balance: " .. amount2 .. "$!", source, 255, 255, 0) else outputChatBox("Withdrawing " .. amount .. "$ is impossible!", source, 255, 0, 0) end else outputChatBox("You entered wrong value!", source, 255, 0, 0) outputChatBox("Your bank balance is " .. BankCash .. "$!", source, 255, 0, 0) end end addEventHandler( "WyplacBank", getRootElement(), WyplacZBanku ) Try to understand the debugmode, it's helpfull. Understand now..gonna try to fix..and THANKS 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