01.11.2010, 11:39
(
Последний раз редактировалось benyskate; 01.11.2010 в 11:59.
)
Hi everybody.
Im coding a trunk system, and i have an error that i cant solve.
This is the error.
And this is the code.
This is the error line.
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)
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;
}
pawn Код:
GetVehiclePos(vehicleid, X,Y,Z);