Any Suggestions as to why this happens? (Screenshots)
#1

When the FIRST person logs in, types /eon this happens: (How it should work).

(SPEEDOMETER)



When the second person comes in the server, this happens: (Not working.)




I've debugged, re-written etc, can't possibly have any suggestions! Any code you want to see, ask me and I'll post.
Reply
#2

No code. No Help.
Reply
#3

Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
No code. No Help.
Lol'd..

Indeed, how are we supposed to help if you do not provide your source code?
Reply
#4

Heres the link to the code:

https://sampforum.blast.hk/showthread.php?tid=376747
Reply
#5

Could someone take a look and maybe assist me? Was a while ago, still not resolved.
Reply
#6

Try this, under OnPlayerConnect, add

pawn Код:
TextDrawHideForPlayer(playerid, speed[playerid]);
TextDrawHideForPlayer(playerid, fuel[playerid]);
It's hidding the textdraws for the new player that connects, so once they type the command for it to show up - it should show.

Quoted from another topic;
Quote:
Originally Posted by park4bmx
Посмотреть сообщение
if the dialog didnt show then the Textdraw must have being Destroyed in previous code !
EDIT:

You don't destroy it, you just hide it where you don't have to recreate it - but make sure when they turn the engine off of the vehicle or get out of the vehicle to hide the textdraws until they get back into the vehicle - a better way of showing the fuel/speedometer would be adding the textdraws under OnPlayerEnterVehicle instead of a command, and OnPlayerEnterVehicle, show the textdraws - and under OnPlayerExitVehicle, hide them.
Reply
#7

Alright, I'll do all that and get back to you, thank you very much.
Reply
#8

It won't work on OnPlayerEnterVehicle, but it works on OnPlayerExitVehicle. I.e It won't display the same.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)