[Help] Error
#1

Hi everybody.

Im coding a trunk system, and i have an error that i cant solve.

This is the error.

Код:
C:\Users\Beny\Desktop\Multimedia Roleplay\gamemodes\mmrp.pwn(17714) : error 035: argument type mismatch (argument 2)
And this is the code.

pawn Код:
stock CheckPlayerDistanceToVehicle(Float:radi, playerid, vehicleid)
{
    if(IsPlayerConnected(playerid))
    {
        new Float:PX,Float:PY,Float:PZ,Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid,PX,PY,PZ);
        GetVehiclePos(vehicleid, X,Y,Z);
        new Float:Distance = (X-PX)*(X-PX)+(Y-PY)*(Y-PY)+(Z-PZ)*(Z-PZ);
        if(Distance <= radi*radi)
        {
            return 1;
        }
    }
    return 0;
}
This is the error line.

pawn Код:
GetVehiclePos(vehicleid, X,Y,Z);
Reply
#2

show us the whole error and which line the error is on...
Reply
#3

Updated.

NVM, error solved. (:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)