#3

It must be like this:
Код:
    } 
    return 1; 
}
not this:
Код:
        return 1; 
    } 
}
Full Code:
pawn Код:
CMD:announce(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
        new string[256], text[128];

        if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, -1, " /announce [Announcement]");
        format(string, sizeof(string), "Server Announcement: %s", text);
        SendClientMessageToAll(0x00FF00FF, string);
    }
    return 1;
}

CMD:update(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
        new string[256], text[128];
         
        if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, -1, " /update [Update]");
        format(string, sizeof(string), "Server Update: %s", text);
        SendClientMessageToAll(0xFF8000FF, string);
    }
    return 1;
}
Reply


Messages In This Thread
Help - by thomaswilliams - 01.11.2013, 12:11
Re: Help - by ]Rafaellos[ - 01.11.2013, 12:30
Re: Help - by SAMProductions - 01.11.2013, 12:33

Forum Jump:


Users browsing this thread: 1 Guest(s)