22.02.2015, 02:07
Quote:
What are you trying to do? Can you post a full snippet? That code doesn't make sense. You can't use commas to assign multiple values to a single variable. That's not how you use commas.
Ideally, your code should look like this (and I assume FinalDistance is a float): FinalDistance = GetVehicleDistanceFromPoint(GetPlayerVehicleID(pla yerid)); |
Well the parameter have all the correct tag, so he probably just missed declaring FinalDistance as Float
pawn Код:
new
Float: FinalDistance = (
GetVehicleDistanceFromPoint(
GetPlayerVehicleID(playerid),
GetPVarFloat(playerid, "X"),
GetPVarFloat(playerid, "Y"),
GetPVarFloat(playerid, "Z")
)
)
;