Stock/public
#3

A stock function is a function that can only be called by the script which it is in. A public function can be called from other scripts with CallRemoteFunction (or the same script with CallLocalFunction or just calling it like 'OnPlayerSpawn(playerid);'.

I'm not sure exactly what you want, but here's what I assume you want, or thereabouts:

pawn Код:
stock WelcomeTo(color, msg[])
{
    new formatted_msg[128];
    format(formatted_msg, sizeof(formatted_msg), "Welcome to %s!", msg);
    SendClientMessage(playerid, color, formatted_msg);
}
Reply


Messages In This Thread
Stock/public - by vassilis - 06.05.2012, 11:56
Re: Stock/public - by antonio112 - 06.05.2012, 12:00
Re: Stock/public - by MP2 - 06.05.2012, 12:01
Re: Stock/public - by vassilis - 06.05.2012, 12:01
Re: Stock/public - by Niko_boy - 06.05.2012, 12:02
Re: Stock/public - by vassilis - 06.05.2012, 12:04
Re: Stock/public - by Pinguinn - 06.05.2012, 12:06
Re: Stock/public - by vassilis - 06.05.2012, 12:16

Forum Jump:


Users browsing this thread: 2 Guest(s)