ErRoR
#2

Read the pawn pdf and learn how to indent?

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(PlayerData[playerid][Muted] == 1)
    {
        return 0;
    }
    new string[128],name[24];
    GetPlayerName(playerid,name,24);
    if(PlayerData[playerid][AdminLevel] >= 1 && text[0]=='#')
    {
        format(string,256,"[ADMIN] %s: %s",name,text[1]);
        AdminMessage(COLOR_GREEN, string);
        return 0;
    }
    if(PlayerData[playerid][AdminLevel]>=1 || PlayerData[playerid][VIP]==1 && text[0]=='@')
    {
        format(string,256,"[ADMIN] %s: %s",name,text[1]);
        AdminMessage(COLOR_GREEN, string);
    }
    return 1;
}
Try that. There are many things wrong with your code that it is almost unclear what you're trying to do.
Reply


Messages In This Thread
ErRoR - by My_Waffles_Bitch_L0L - 15.02.2009, 05:01
Re: ErRoR - by Backwardsman97 - 15.02.2009, 05:08
Re: ErRoR - by [RP]Rav - 15.02.2009, 08:47
Re: ErRoR - by My_Waffles_Bitch_L0L - 15.02.2009, 08:55

Forum Jump:


Users browsing this thread: 1 Guest(s)