16
Script Releases / Re: Position System
« on: September 28, 2014, 03:14:28 pm »I don't find it any clean that you're creating a new timer after a timer ends.
You should run an infinite timer, and please, not 100 miliseconds, that'll just lag a server with a decent playercount.
Code: [Select]if(showpos[player.ID]==false)
Should beCode: [Select]if(!showpos[player.ID])
Same with true, you don't need that there.
Also, there's no point in checking if it's true in an else if if the previous statement was false. It's either true or false.Code: [Select]if(!showpos[player.ID]) //player will have it false when it enters the game
{
}
else
{
}
And obviously what heekzs said, the timers are bad. Really bad.
Updated the code.
Made the timer infinite and also changed the if and else .