Hi.
I have 2 problem. In Pawn (sa-mp hello) i can write
stock Function(value1, value2 = 5, value3 = 10) // value2 and value3 optional parameters
{
return 1;
}
how make it in Lua (i talking about optional parameters)?
if make so
function Function(value1, value2 = 5, value3 = 10)
{
}
i have error from interpreter
and more question... how skip argument?
again in Pawn i can write
stock Function(value1, value2 = 5, value = 10)
{
return 1;
}
public OnPlayerConnect(playerid)
{
Function(value1, .value3 = 20); // <<<----------- skip value2
}
how make it on Lua?
thx.