Fury Posted September 21, 2012 Share Posted September 21, 2012 function hasar(damage) local player = getVehicleOccupant(source) if player then if (isGuestAccount(getPlayerAccount(source)) == false) then local account = getPlayerAccount( source ) local map = getResourceName ( exports['mapmanager']:getRunningGamemodeMap ( ) ) local ilkhasar = getAccountData( account, ""..map.."-damage" ) or 0 local hasar = math.floor(damage/1000) setAccountData( account,""..map.."-damage",ilkhasar+hasar) end end end addEventHandler("onVehicleDamage", getRootElement(), hasar) error in line 5, 7 and 9. can you please tell me what i am doing wrong? Link to comment
Renkon Posted September 21, 2012 Share Posted September 21, 2012 function hasar(damage) local player = getVehicleOccupant(source) if player then if (isGuestAccount(getPlayerAccount(player)) == false) then local account = getPlayerAccount( player ) local map = getResourceName ( exports['mapmanager']:getRunningGamemodeMap ( ) ) local ilkhasar = getAccountData( account, ""..map.."-damage" ) or 0 local hasar = math.floor(damage/1000) setAccountData( account,""..map.."-damage",ilkhasar+hasar) end end end addEventHandler("onVehicleDamage", getRootElement(), hasar) Link to comment
Fury Posted September 21, 2012 Author Share Posted September 21, 2012 function hasar(damage) local player = getVehicleOccupant(source) if player then if (isGuestAccount(getPlayerAccount(player)) == false) then local account = getPlayerAccount( player ) local map = getResourceName ( exports['mapmanager']:getRunningGamemodeMap ( ) ) local ilkhasar = getAccountData( account, ""..map.."-damage" ) or 0 local hasar = math.floor(damage/1000) setAccountData( account,""..map.."-damage",ilkhasar+hasar) end end end addEventHandler("onVehicleDamage", getRootElement(), hasar) not working. Link to comment
TwiX! Posted September 21, 2012 Share Posted September 21, 2012 won't to guys, who stole scripts Link to comment
Fury Posted September 21, 2012 Author Share Posted September 21, 2012 won't to guys, who stole scripts what ? i dont stole anything? what the fuck are you talking about? im just new at lua thats it.. Link to comment
Fury Posted September 21, 2012 Author Share Posted September 21, 2012 thanks for helping guys.. problem solved.. Link to comment
TwiX! Posted September 22, 2012 Share Posted September 22, 2012 saw debugscript image you don't even bother to change the text in map info just copy it from wtf server, with other color and image Link to comment
Fury Posted September 22, 2012 Author Share Posted September 22, 2012 saw debugscript imageyou don't even bother to change the text in map info just copy it from wtf server, with other color and image what the fuck are you talking about? i dont even know what "wtf" server uses. are you fucking idiot? how can you judge me when you dont know the codes are? omg.... Link to comment
Castillo Posted September 22, 2012 Share Posted September 22, 2012 I don't know if it's stolen or not, but since it's already solved, I'm locking the topic. Link to comment
Recommended Posts