24.05.2013, 15:43
error 001: expected token: "#endif", but found "-end of file-"
error 013: no entry point (no public functions)
End of the script:
And public i have 35+ along the script.
What i have to do?
error 013: no entry point (no public functions)
End of the script:
pawn Код:
stock Float:GetPlayerDistanceToPoint2(playerid, {Float,_}:...)
{
new num = numargs(), Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
if(num == 3) return floatsqroot(floatpower(floatabs(floatsub(pos[0], Float:getarg(1))), 2) + floatpower(floatabs(floatsub(pos[1], Float:getarg(2))), 2));
else if(num == 4) return floatsqroot(floatpower(floatabs(floatsub(pos[0], Float:getarg(1))), 2) + floatpower(floatabs(floatsub(pos[1], Float:getarg(2))), 2) + floatpower(floatabs(floatsub(pos[2], Float:getarg(3))), 2));
return -1.0;
}
return 0;
}
#endif
What i have to do?