29.06.2011, 07:57
pawn Код:
CMD:faction(playerid, params[])
{
if(playerVariables[playerid][pStatus] == 1)
{
new
action[32],
string[256],
id,
pin;
if(sscanf(params, "s[32]", action)) {
SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/faction [action]");
SendClientMessage(playerid, COLOR_GREY, "ACTIONS: login");
}
if(strcmp(action, "login", true) == 0)
{
if(sscanf(params, "dd", id,pin)) {
return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/faction login [id group] [pin]");
}
Код:
SYNTAX: /faction [action] ACTIONS: login SYNTAX: /faction login [id group] [pin]
The problem is here:
pawn Код:
if(sscanf(params, "dd", id,pin)) {
return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/faction login [id group] [pin]");
}