06.05.2012, 12:01
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:
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);
}