SA-MP Forums Archive
[Help] Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Error (/showthread.php?tid=187138)



[Help] Error - benyskate - 01.11.2010

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



Re: [Help] Error - DarrenReeder - 01.11.2010

show us the whole error and which line the error is on...


Re: [Help] Error - benyskate - 01.11.2010

Updated.

NVM, error solved. (: