Fixed Two Small Problems

This commit is contained in:
Cooldude2606
2018-01-06 21:34:58 +00:00
parent 62d79c4104
commit 3d894cced4
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ local function search_player(player)
end
Event.register(defines.events.on_tick,function(event)
if not (game.tick%3600) then return end
if not (game.tick%3600)==0 then return end
local players = game.connected_players
local player = players[math.random(#players)]
search_player(player)

View File

@@ -140,7 +140,7 @@ function Admin.give_warning(player,by_player,reason,min)
warnings = warnings+1
_reports().warnings[player.name] = warnings
player_return({'reports.warning-given-by',by_player_name},defines.text_color.info,player)
game.print({'reports.player-warning',player.name,by_player_name})
game.print({'reports.player-warning',player.name,by_player_name,reason})
give_punishment(player,by_player,reason)
end