SA-MP Forums Archive
[FilterScript] Clock speedometer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Clock speedometer (/showthread.php?tid=473589)

Pages: 1 2


Re: Clock speedometer - Daddy Yankee - 04.11.2013

Quote:
Originally Posted by Tuntun
Посмотреть сообщение
What about this?
Код:
E:\My server\filterscripts\Meter.pwn(37) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(39) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(41) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(44) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(46) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(48) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(112) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(114) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(116) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(121) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(123) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(125) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(130) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(132) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(134) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(139) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(141) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(143) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(148) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(150) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(152) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(157) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(159) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(161) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(166) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(168) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
It works for 0.3x only.

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
1.) You shouldn't use player textdraws for any textdraws that are common it's silly to create them everytime
Why would I create that many normal textdraws for each player since there's a limit ?

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
2.) In addition to the first point it is silly to create/destroy the textdraws everytime you enter exit a vehicle
That wasn't my first choice, however, I did that so I can have the posibility to add different speedo color combinations for each vehicle (every owner with his choice) in the future versions.

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
4.) You don't need this line.

pawn Код:
if(GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1)
You have already made that check on this line

pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
Passenger can also be seat 2 or 3, what's the point for the people on the back seats to see it ?

Thanks for replaying, I'll update the velocity calculation as soon as possible.


Re: Clock speedometer - AnGeL_KRAMER - 04.11.2013

big(((


Re: Clock speedometer - P1c4550 - 04.11.2013

Wow very nice '-'


Re: Clock speedometer - Pottus - 04.11.2013

For the first point I don't think you quite understand what I meant by that. What I meant was a lot of TD's don't actually change which means you only need to create them once during OnGameModeInit() they're background textdraws essentially which are common to all players so you don't need to create them for every player instead they only need to be shown.

Now your next point if you want to change the colors of the TD you still won't need playertextdraws as TD's won't update their color until they are hidden/shown that means before showing a player the TD's you just set the color then show.

Last point that is perfectly fine and understandable.

Just one more thing, some TD's do indeed need to remain playertextdraws but only the ones that update uniquely for a player.

Let me know if you need any help getting it setup like that you can really reduce the function calls but at the same time increase features that is a win/win in my eyes


Re: Clock speedometer - Daddy Yankee - 04.11.2013

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
For the first point I don't think you quite understand what I meant by that. What I meant was a lot of TD's don't actually change which means you only need to create them once during OnGameModeInit() they're background textdraws essentially which are common to all players so you don't need to create them for every player instead they only need to be shown.

Now your next point if you want to change the colors of the TD you still won't need playertextdraws as TD's won't update their color until they are hidden/shown that means before showing a player the TD's you just set the color then show.

Last point that is perfectly fine and understandable.

Just one more thing, some TD's do indeed need to remain playertextdraws but only the ones that update uniquely for a player.

Let me know if you need any help getting it setup like that you can really reduce the function calls but at the same time increase features that is a win/win in my eyes
Thanks man, you made your point . I'll update it soon.


Re: Clock speedometer - Pottus - 04.11.2013

No problem I just want to see the best be the best, it may look pretty on the surface but under the hood counts a lot


Re: Clock speedometer - Mark_Samp - 04.11.2013

One of the best!


Re: Clock speedometer - Scrillex - 06.11.2013

Btw which coords are for full fuel tank?


Re: Clock speedometer - Daddy Yankee - 06.11.2013

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
Btw which coords are for full fuel tank?
The angle is 20 for empty and 160 for full.


Re: Clock speedometer - kingcrome - 08.11.2013

This looks just amazing. I hope you realse more amazing stuff like this. I will use this!


Re: Clock speedometer - HitterHitman - 10.11.2013

someone plzzz tell me how to refuel


Re: Clock speedometer - Daddy Yankee - 10.11.2013

Quote:
Originally Posted by HitterHitman
View Post
someone plzzz tell me how to refuel
The fuel system was only added as an example on how to update it. You should adjust it to your own fuel system. There's no refill command in this filterscript.


Re: Clock speedometer - HitterHitman - 11.11.2013

Quote:

The fuel system was only added as an example on how to update it. You should adjust it to your own fuel system. There's no refill command in this filterscript.

so if the meter goes down their should be no effect right? I mean the vehicle will not stop.


Re: Clock speedometer - Daddy Yankee - 11.11.2013

Quote:
Originally Posted by HitterHitman
View Post
so if the meter goes down their should be no effect right? I mean the vehicle will not stop.
It will stop unless you remove the lines from 851 to 853


Re: Clock speedometer - iDuckling - 11.11.2013

Nice!


Re: Clock speedometer - Baboon - 11.11.2013

Really well done!


Re: Clock speedometer - Pro_LiZzy - 11.11.2013

Its bugged.If you use it in samp server others players will get bugged and you will look AFK for them not sure why.


Re: Clock speedometer - whatthefuck123 - 11.11.2013

damn thats fucking epic man fuck fuck epic fuck man.. awesome *-*


Re: Clock speedometer - Akira297 - 11.11.2013

Beautiful. You should make it adjustable to make it smaller or bigger.