05.08.2012, 03:20
(
Последний раз редактировалось ReneG; 05.08.2012 в 03:25.
Причина: Forgot that 'params' is indeterminate at compile time.
)
Although there are many changes that need to be done. (colors, format, restriction timers, etc.)
This is the basic idea of a /n command.
EDIT: I forgot that 'params' is indeterminate at compile time.
This is the basic idea of a /n command.
EDIT: I forgot that 'params' is indeterminate at compile time.
pawn Код:
CMD:n(playerid, params[])
{
if(isnull(params)) {
return SendClientMessage(playerid, -1, "USAGE: /n(ewbie) [question]");
}
new name[MAX_PLAYER_NAME], msg[128];
GetPlayerName(playerid, name, sizeof(name));
format(msg, sizeof(msg), "* Newbie %s: %s", name, params);
SendClientMessageToAll(-1, params);
return 1;
}
CMD:newbie(playerid, params[]) return cmd_n(playerid, params); // so the command /newbie is also valid.