Question about 'stock'
#1

I'd like to make my own stock like this, how is this possible?
pawn Код:
stock SendMessage(playerid, case,string[]) // something like 'case' or something ?
{
     if(case = yellow) SendClientMessage(playerid, COLOR_YELLOW, string);
     if(case = red) SendClientMessage(playerid, COLOR_RED, string);
     if(case = blue) SendClientMessage(playerid, COLOR_BLUE, string);
     else return 0;
}
Please dont ask me why i want it like this, because this is just a quick example of how i want to make my other stock.

PS. Is it possible to make it formated, like this: SendMessage(playerid, yellow, "%s", Name(playerid)); ?
Reply


Messages In This Thread
Question about 'stock' - by ddnbb - 12.08.2012, 12:58
Re: Question about 'stock' - by leonardo1434 - 12.08.2012, 13:18
Re: Question about 'stock' - by ddnbb - 12.08.2012, 13:23
Re: Question about 'stock' - by leonardo1434 - 12.08.2012, 13:26
Re: Question about 'stock' - by ddnbb - 12.08.2012, 13:41

Forum Jump:


Users browsing this thread: 1 Guest(s)