SA-MP Forums Archive
small problem! error: (argument 2) - 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: small problem! error: (argument 2) (/showthread.php?tid=248334)



small problem! error: (argument 2) - Cpt.Shady - 13.04.2011

Float:function510(playerid)
{
new Float:var0[4];
GetVehicleVelocity(GetPlayerVehicleID(playerid), var0, var0, var0);
return floatround(1.61 * floatsqroot(floatabs(floatpower(var0[0] + var0[1] + var0[2], 2.0))) * 100, 0);
}

THX!


Re: small problem! error: (argument 2) - !Easy! - 13.04.2011

pawn Код:
Float:function510(playerid)
{
    new Float:var0[4];
    GetVehicleVelocity(GetPlayerVehicleID(playerid), var0[0], var0[1], var0[2]);
    return floatround(1.61 * floatsqroot(floatabs(floatpower(var0[0] + var0[1] + var0[2], 2.0))) * 100, 0);
}



Re: small problem! error: (argument 2) - Cpt.Shady - 13.04.2011

BIG THANKS!


Re: small problem! error: (argument 2) - Cpt.Shady - 13.04.2011

and 3 warnings ...


Float:function510(playerid)
{
new Float:var0[4];
GetVehicleVelocity(GetPlayerVehicleID(playerid), var0[0], var0[1], var0[2]);
return floatround(1.61 * floatsqroot(floatabs(floatpower(var0[0] + var0[1] + var0[2], 2.0))) * 100, 0);
}


1) warning 208: function with tag result used before definition, forcing reparse
2) warning 213: tag mismatch
3) warning 213: tag mismatch
THANKS!


Re: small problem! error: (argument 2) - Stigg - 13.04.2011

Try:

pawn Код:
new Float:var0[3];



Re: small problem! error: (argument 2) - Cpt.Shady - 13.04.2011

idem!

any ideas


Re: small problem! error: (argument 2) - Cpt.Shady - 15.04.2011

up!!


Re: small problem! error: (argument 2) - Cpt.Shady - 17.04.2011

any ideas?