27.10.2009, 14:41
Updated again, check the frist post please.
@Dabombber, you can do this instead:
Edit:
You can do even better, with a simple define:
@Dabombber, you can do this instead:
pawn Код:
COMMAND:something(playerid, params[])
{
if (!strcmp(params, "help", true, 4)) {
SendClientMessage(playerid, 0x00FF00FF, "This command does something");
return 1;
}
// do something
return 1;
}
You can do even better, with a simple define:
pawn Код:
#define HELP (!strcmp(params, "help", true, 4))
COMMAND:something(playerid, params[])
{
if (HELP) {
SendClientMessage(playerid, 0x00FF00FF, "This command does something");
return 1;
}
// do something
return 1;
}