07.10.2009, 18:16
Код:
stock HidePlayerDialog(playerid) { ShowPlayerDialog(playerid,-1,0,"","","",""); }
stock HidePlayerDialog(playerid) { ShowPlayerDialog(playerid,-1,0,"","","",""); }
#define HidePlayerDialog(%1) ShowPlayerDialog(%1, -1, 0, " ", " ", " ", " ")
Originally Posted by dre$tA
Код:
#define HidePlayerDialog(%1) ShowPlayerDialog(%1, -1, 0, " ", " ", " ", " ") |
stock Function(string[], arg)
{
// do something here
}
#define Function(%1,%2) // Let it do something here with the values
Originally Posted by Y_Leѕѕ
I really suggest you read pawn-lang.pdf, the explanation given by [NT]Extremo is insanely basic, there is a lot more they can do, but there are also a lot of limitations and problems.
Edit: Pages 93-96 contain the basics, but there is actually more, especially in SA:MP which uses a custom compiler to support stringize tokens (as in C - look them up from C documentation, but note that they're not implemented exactly the same). |