Oh darn I forgot to put it in my example.
PHP Code:
(stock/public) myFunction(Float:myVar[3]={0.0, 0.0, 0.0})
{
// Function body
}
public cp_teleport(iPlayer, Float:fPosition[3], Float:fAngles[3]={0.0, 0.0, 0.0})
{
set_pev(iPlayer, pev_velocity, Float:{0.0, 0.0, 0.0});
set_pev(iPlayer, pev_origin, fPosition);
if(fAngles[0] != 0.0 && fAngles[1] != 0.0 && fAngles[2] != 0.0)
{
entity_set_vector(iPlayer, EV_VEC_angles, fAngles);
entity_set_int(iPlayer, EV_INT_fixangle, 1);
DuckDelay(iPlayer);
}
}
Problem still remains.
Cause when function is public parser shows me fallowing error.
Quote:
|
Error: Function argument may not have a default value (variable "fAngles") on line 496
|