[help]Can someone sort this out for me???
#10

Try this:

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128], name[MAX_PLAYER_NAME];
    if(Adminvariable[playerid] == 1)
    {
        format(string, sizeof(string), "[V.I.P] %s: %s", GetPlayerName(playerid, name, sizeof(name)), text);
        SendClientMessageToAll(playerid, 0x0F5E0CFF,string);
        return 0;
    }
    if(Adminvariable[playerid] == 2)
    {
        format(string, sizeof(string), "[Moderator] %s: %s", GetPlayerName(playerid, name, sizeof(name)), text);
        SendClientMessageToAll(playerid, 0xBA4141FF,string);
        return 0;
    }
    else if(Adminvariable[playerid] >= 3)
    {
        format(string, sizeof(string), "[%d Admin] %s: %s", Adminvariable[playerid], GetPlayerName(playerid, name, sizeof(name)), text);
        SendClientMessageToAll(playerid, 0x969336FF,string);
        return 0;
    }
    else if(Leadervariable[playerid] == 1)
    {
        format(string, sizeof(string), "[Leader] %s: %s", GetPlayerName(playerid, name, sizeof(name)), text);
        SendClientMessageToAll(playerid, 0x0011FFFF,string);
        return 0;
    }
    if(IsPlayerConnected(playerid))
    {
        new msg[256];
        format(msg,sizeof(msg),"(%d){FFFFFF} %s",playerid, text);
        SendPlayerMessageToAll(playerid, 0xFFFFFFFF, msg);
        return 0;
    }
    return 1;
}
And, can't you be a good fellow and actually show us the lines the errors are on? We can't help you if you don't, unless you want us to look all of it over, which will take us longer. Just a future tip, show the lines.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)