Tag mismatch
#3

Quote:
Originally Posted by admantis
Посмотреть сообщение
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));
https://sampwiki.blast.hk/wiki/GetVehicleDistanceFromPoint

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")
        )
    )
;
Reply


Messages In This Thread
Tag mismatch - by Cerealguy - 22.02.2015, 00:47
Re: Tag mismatch - by admantis - 22.02.2015, 01:06
AW: Re: Tag mismatch - by Nero_3D - 22.02.2015, 02:07
Respuesta: Tag mismatch - by Cerealguy - 22.02.2015, 02:38

Forum Jump:


Users browsing this thread: 1 Guest(s)