SA-MP Forums Archive
Speed problem {FIXED} - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Speed problem {FIXED} (/showthread.php?tid=86763)



Speed problem {FIXED} - Byrner - 15.07.2009

Nvm I gotz it.


Re: Speed problem - Butilka - 15.07.2009

Код:
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");



Re: Speed problem - refshal - 15.07.2009

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++)



Re: Speed problem - yom - 15.07.2009

0 * 5000 = 0
0 / 1600 = 0


Re: Speed problem - Butilka - 15.07.2009

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


Re: Speed problem - Byrner - 15.07.2009

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 ?


Re: Speed problem - yom - 15.07.2009

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).


Re: Speed problem - Byrner - 15.07.2009

udie
check first post.


Re: Speed problem - yom - 15.07.2009

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


Re: Speed problem - Byrner - 15.07.2009

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.