11.07.2009, 07:53
Why should I use CallLocalFunction if I can also just use the function's name to call it?
example:
example:
Код:
forward examplefunction(playerid, Float:angle);
public examplefunction(playerid, Float:angle)
{
SetPlayerFacingAngle(playerid, angle);
return 1;
}
/* somewhere else in the script: */
CallLocalFunction("examplefunction", "if", playerid, "90.0");
/* but I could also use this: */
examplefunction(playerid, "90.0");


