22.02.2015, 00:47
pawn Код:
FinalDistance = GetVehicleDistanceFromPoint(GetPlayerVehicleID(playerid), GetPVarFloat(playerid,"MickyMouse"), GetPVarFloat(playerid,"MarioBross"), GetPVarFloat(playerid,"SpiderMan"));
FinalDistance = GetVehicleDistanceFromPoint(GetPlayerVehicleID(playerid), GetPVarFloat(playerid,"MickyMouse"), GetPVarFloat(playerid,"MarioBross"), GetPVarFloat(playerid,"SpiderMan"));
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)); |
new
Float: FinalDistance = (
GetVehicleDistanceFromPoint(
GetPlayerVehicleID(playerid),
GetPVarFloat(playerid, "X"),
GetPVarFloat(playerid, "Y"),
GetPVarFloat(playerid, "Z")
)
)
;