Tag mismatch
#1

pawn Код:
FinalDistance = GetVehicleDistanceFromPoint(GetPlayerVehicleID(playerid), GetPVarFloat(playerid,"MickyMouse"), GetPVarFloat(playerid,"MarioBross"), GetPVarFloat(playerid,"SpiderMan"));
її :/, <3
Reply
#2

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));
Reply
#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
#4

jajjaja, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)