02-09-2018, 12:15 AMGarryLT Wrote: Try add those semicolons ( maybe program code reads as one line [Turn at 88 th line]: Code:if pPlayer.m_tblSpeedFlags then for k, v in pairs( pPlayer.m_tblSpeedFlags ) do newWalk = newWalk +v[1]; newRun = newRun +v[2]; end; end;Also sometimes on loop's helps value resets [on 84 th line] Code:local newWalk = 0, newRun = GAMEMODE.Config.DefWalkSpeed, GAMEMODE.Config.DefRunSpeed It is my predictions, better to test it.
if pPlayer.m_tblSpeedFlags then for k, v in pairs( pPlayer.m_tblSpeedFlags ) do newWalk = newWalk +v[1]; newRun = newRun +v[2]; end; end;
local newWalk = 0, newRun = GAMEMODE.Config.DefWalkSpeed, GAMEMODE.Config.DefRunSpeed
Loading Info...