SA-MP Forums Archive
function(playerid) no forwarding or public? - 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)
+--- Thread: function(playerid) no forwarding or public? (/showthread.php?tid=441265)



function(playerid) no forwarding or public? - Hoborific - 02.06.2013

Didn't know this was possible

pawn Код:
Unfreeze(playerid)
{
    TogglePlayerControllable(playerid,1);
}



Re: function(playerid) no forwarding or public? - park4bmx - 02.06.2013

So what do you want ?

Suggest to make it into a stock and then u will need to return a value as well.


Re: function(playerid) no forwarding or public? - Vince - 02.06.2013

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
Suggest to make it into a stock and then u will need to return a value as well.
No and no. A function only needs to return a value if that value is used somewhere. The stock modifier only hides the function when it's not being used.


Re: function(playerid) no forwarding or public? - Konstantinos - 02.06.2013

Take a look at this page: https://sampwiki.blast.hk/wiki/Public_functions

If he uses that function, then it's fine. But if he doesn't, then he'll need to add the 'stock' to prevent the warning.