Speedometer peroblems
#1

ok i got this speedo code from Useful snippets: http://forum.sa-mp.com/index.php?top...97.30#msg96289

Код:
// LINE 5163
new Float:dis = floatsqroot(floatpower(floatabs(floatsub(ppos[i][0],x)),2) + floatpower(floatabs(ppos[i][1],y)),2)+floatpower(floatabs(floatsub(ppos[i][2],z)),2));
it gives me
Код:
C:\Users\Ethan\Desktop\SAMPSERVER\gamemodes\UCnR.pwn(5163) : warning 202: number of arguments does not match definition
C:\Users\Ethan\Desktop\SAMPSERVER\gamemodes\UCnR.pwn(5163) : warning 202: number of arguments does not match definition
C:\Users\Ethan\Desktop\SAMPSERVER\gamemodes\UCnR.pwn(5163) : warning 202: number of arguments does not match definition
C:\Users\Ethan\Desktop\SAMPSERVER\gamemodes\UCnR.pwn(5163) : error 001: expected token: ";", but found ")"
C:\Users\Ethan\Desktop\SAMPSERVER\gamemodes\UCnR.pwn(5163) : error 029: invalid expression, assumed zero
C:\Users\Ethan\Desktop\SAMPSERVER\gamemodes\UCnR.pwn(5163) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
can anyone please fix that line? thanks!
Reply
#2

BUMP~ anyone? please?
Reply
#3

Код:
new Float:dis = floatsqroot(floatpower(floatabs(floatsub(ppos[i][0],x)),2) + floatpower(floatabs(floatsub(ppos[i][1],y)),2)+floatpower(floatabs(floatsub(ppos[i][2],z)),2));
Reply
#4

thx! compiled perfectly now im gona test it!
Reply
#5

ummm.... it reads like: 1234142345234 MPH.... that's not right.....
Reply
#6

There's a really nice spedometer by lethal ( i think ), possibly you should try using it instead. It is already completely working and it is overall a nice script.

Don't ask me where to find it. A long time ago, phpBB was a sad world. People were always lost. Then, some n00b said "Put in a search button, foo!". And so, the search button was used for everyone to use.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)