[FilterScript] Xeon's Speedometer (Analog Speedmeter)
#11

PHP Code:
for(new 0GetMaxPlayers(); i++) // looping through connected players 
GetPlayerPoolSize exists, use it (note: making it a plug n\' play script for any "SA-MP version" is not a valid excuse to not use the relatively new function)!

PHP Code:
for(new 04i++) // new PlayerText:p_Speedo[MAX_PLAYERS][4];
for(new 018i++) // new Text:g_Speedo[18]; 
Have you never heard of "sizeof"?

PHP Code:
new speed;
speed GetPlayerSpeed(playerid); 
Can you not do "new speed = GetPlayerSpeed(playerid);"?

PHP Code:
if(speed == 0)
{

}
else
{
    if(
speed 0Gear[playerid] = "D";

The second if-then is useless. Speed will obviously always be over 0 (note: there\'s no negative speed)!


-_-

PHP Code:
if(speed 0Gear[playerid] = "D";
if(
IsVehicleDrivingBackwards(GetPlayerVehicleID(playerid))) Gear[playerid] = "R"
Have you never heard of "else if"? Guess not.

PHP Code:
if(speed 200speed 205
Your system supports up to 200. By setting it to 205 when it\'s over 200 tells us either the representation is inaccurate or you know what.


-----

https://cdn.discordapp.com/attachmen.../sa-mp-087.png


- Speed will never go over 999, the extra zero (0) in "0099 KM/H" is useless.

- "Test Server Name" is not centered.

- The alignment of the bar is terrible and inaccurate.

- I have no idea why "Gear:" is in a different font than the speed.

- The number in the middle is just horrendous.


Overall, 2 stars. And I don\'t see why you feel the need to reply "thanks" or "thank you" to every positive post.
Reply


Messages In This Thread
Xeon\'s Speedometer (Analog Speedometer) - by Xeon™ - 19.09.2017, 18:56
Re: Xeon\'s Speedometer (Analog Speedmeter) - by SonnyGamer - 19.09.2017, 18:59
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 19.09.2017, 19:57
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Meller - 19.09.2017, 20:11
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 19.09.2017, 20:50
Re: Xeon\'s Speedometer (Analog Speedmeter) - by J0sh... - 19.09.2017, 21:11
Re: Xeon\'s Speedometer (Analog Speedmeter) - by R4nd4ll - 19.09.2017, 21:15
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 19.09.2017, 23:03
Re: Xeon\'s Speedometer (Analog Speedmeter) - by DonaldDuck - 20.09.2017, 07:56
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 20.09.2017, 15:38
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Paulice - 20.09.2017, 16:16
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Mr.Vince™ - 20.09.2017, 16:33
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 20.09.2017, 16:37
Re: Xeon\'s Speedometer (Analog Speedmeter) - by AbyssMorgan - 20.09.2017, 16:42
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Jayse - 20.09.2017, 16:45
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Paulice - 20.09.2017, 16:59
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 20.09.2017, 17:04
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Paulice - 20.09.2017, 17:15
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 20.09.2017, 17:42
Re: Xeon\'s Speedometer (Analog Speedmeter) - by vassilis - 22.09.2017, 15:49
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Meller - 22.09.2017, 17:12
Re: Xeon\'s Speedometer (Analog Speedmeter) - by 1fret - 23.09.2017, 01:25
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Kaperstone - 23.09.2017, 02:21
Re: Xeon\'s Speedometer (Analog Speedmeter) - by SyS - 23.09.2017, 02:25
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Paulice - 24.09.2017, 09:31
Re: Xeon\'s Speedometer (Analog Speedmeter) - by GhostHacker9 - 24.09.2017, 11:44
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 24.09.2017, 14:24
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Crystallize - 24.09.2017, 14:58
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 24.09.2017, 15:20
Re: Xeon\'s Speedometer (Analog Speedmeter) - by VVWVV - 24.09.2017, 15:21
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 24.09.2017, 15:26
Re: Xeon\'s Speedometer (Analog Speedmeter) - by VVWVV - 24.09.2017, 15:34
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 24.09.2017, 15:35
Re: Xeon's Speedometer (Analog Speedmeter) - by VVWVV - 24.09.2017, 16:38
Re: Xeon's Speedometer (Analog Speedmeter) - by Xeon™ - 24.09.2017, 16:41
Re: Xeon\'s Speedometer (Analog Speedmeter) - by TakeiT - 24.09.2017, 19:38
Re: Xeon\'s Speedometer (Analog Speedmeter) - by RxErT - 24.09.2017, 21:06
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 25.09.2017, 18:09
Re: Xeon\'s Speedometer (Analog Speedmeter) - by Xeon™ - 10.10.2017, 11:31

Forum Jump:


Users browsing this thread: 2 Guest(s)