Posts: 423
Threads: 7
Joined: Jul 2010
Reputation:
0
Show us the block of code around it.
Posts: 725
Threads: 4
Joined: Nov 2010
Reputation:
0
That can't be the problem since this vairable looks okay, so you might have forgot to close a bracket or accidenlty added one and it causes a problem.
Posts: 1,767
Threads: 124
Joined: Mar 2010
You got it all defined for sure?
pawn Код:
#include "a_samp"
new
Float:sva[MAX_PLAYERS],
Float:svb[MAX_PLAYERS],
Float:svc[MAX_PLAYERS];
public speedometer(playerid)
{
GetVehicleVelocity(GetPlayerVehicleID(playerid), sva[playerid], svb[playerid], svc[playerid]);
svd[playerid] = floatsqroot(((sva[playerid]*sva[playerid])+(svb[playerid]*svb[playerid]))+(svc[playerid]*svc[playerid]))*100;
s2[playerid] = floatround(svd[playerid],floatround_round);
format(s3[playerid], sizeof(64), "%i MPH", s2[playerid]);
TextDrawSetString(sdisplay[playerid], s3[playerid]);
return true;
}
If yes and you have still error.. i'll give you a better way to make Speedometer.
Posts: 1,753
Threads: 277
Joined: Sep 2010
Reputation:
0
It still gave errors, please could you show me? PM it to me?, thanks.
Posts: 1,767
Threads: 124
Joined: Mar 2010
Posts: 1,767
Threads: 124
Joined: Mar 2010
I helped him on PM. Topic is ended