06.05.2012, 12:02
you will be needing an destination[playerid] here WelcomeTo(color,"blahblah");. if u wanna send message to particular player
so stock will be;
which makes no diffence though so instead of stock use macro
Edit:
that wont work lol you can create
WelcomeTo(playerid,"{FFFFF}Four Dragons Casino"); instead
so stock will be;
pawn Код:
stock WelcomeTo(playerid,color,string[])
{
SendClientMessage(playerid,color,string);
}
pawn Код:
#define WelcomeTo(%1,%2,%3) SendClientMessage(%1,%2,%3)
Quote:
Simple exampple:
instead of writing: SendClientMessage(playerid,colorhere,"Welcome to Four Dragons Casino"); i would like to convert it to WelcomeTo(colorhere,"Four Dragons Casino"); |
WelcomeTo(playerid,"{FFFFF}Four Dragons Casino"); instead