Command define
#4

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
You can use a very simple definition:
pawn Код:
#define SendMessage SendClientMessage
Means the compiler will replace every SendMessage with SendClientMessage on the compilation and vice versa.

Or simply:
pawn Код:
stock SendMessage(playerid,color,message[])
{
    return SendClientMessage(playerid,color,message);
}
Thanks!

What about..? ProxDetector?

stock Prox(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
{
ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
}

then?

forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
Reply


Messages In This Thread
Command define - by Typhome - 19.09.2010, 12:56
Re: Command define - by Thebest96 - 19.09.2010, 12:59
Re: Command define - by [XST]O_x - 19.09.2010, 13:01
Re: Command define - by Typhome - 19.09.2010, 13:04
Re: Command define - by [XST]O_x - 19.09.2010, 13:07

Forum Jump:


Users browsing this thread: 1 Guest(s)