Speed problem {FIXED}
#1

Nvm I gotz it.
Reply
#2

Код:
SendClientMessage(i, 0xA9A9A9AA, "You're going over 200 MPH");
Maybe mistake is here. It's will be like this:
Код:
SendClientMessage(playerid, 0xA9A9A9AA, "You're going over 200 MPH");
Reply
#3

Try using this:

pawn Код:
SendClientMessageToAll(0xA9A9A9AA, "You're going over 200 MPH");
Instead of:

pawn Код:
SendClientMessage(i, 0xA9A9A9AA, "You're going over 200 MPH");
And remove the:

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
Reply
#4

0 * 5000 = 0
0 / 1600 = 0
Reply
#5

eddy, is there a need to show all, that a player rides more than 200?
Reply
#6

Quote:
Originally Posted by еddy
Try using this:

pawn Код:
SendClientMessageToAll(0xA9A9A9AA, "You're going over 200 MPH");
Instead of:

pawn Код:
SendClientMessage(i, 0xA9A9A9AA, "You're going over 200 MPH");
And remove the:

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
1) I don't want to show all the players.
2) It wouldn't make the code work if I did that ..
Quote:
Originally Posted by 0rb
0 * 5000 = 0
0 / 1600 = 0
Whut ?
Reply
#7

Quote:
Originally Posted by Byrner
Whut ?
Ok..you never set a value to 'distance', so it stay 0 (and 0 will never be greater than 200).
Reply
#8

udie
check first post.
Reply
#9

Why you don't check if its greater than 200 near the textdraw part?
Reply
#10

Because that's separte code for something else, would look pretty stupid and would get confusing if I had it all in the same function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)