[FilterScript] Clock speedometer
#21

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.
Reply
#22

big(((
Reply
#23

Wow very nice '-'
Reply
#24

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
Reply
#25

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.
Reply
#26

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
Reply
#27

One of the best!
Reply
#28

Btw which coords are for full fuel tank?
Reply
#29

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

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

someone plzzz tell me how to refuel
Reply
#32

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.
Reply
#33

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.
Reply
#34

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
Reply
#35

Nice!
Reply
#36

Really well done!
Reply
#37

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

damn thats fucking epic man fuck fuck epic fuck man.. awesome *-*
Reply
#39

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


Forum Jump:


Users browsing this thread: 1 Guest(s)