[Ajuda] Admin Chat
#1

PHP код:
public OnPlayerText(playeridtext[])
{
    if(
text[0] == '@' && (PlayerInfo[playerid][pAdminLevel] <2)
    {
    
GetPlayerName(playerid,NomeP,MAX_PLAYER_NAME);
    
format(Stringsizeof(String),"[Admin Chat]: %s: %s",NomeP,text[1]);
    
SendAdminMsg(COLOR_YELLOW,String);
    return 
0;
    }
    return 
1;

Код:
C:\Documents and Settings\Lucas8\Desktop\DM-4FUN\filterscripts\bAdmin.pwn(99) : error 017: undefined symbol "NomeP"
C:\Documents and Settings\Lucas8\Desktop\DM-4FUN\filterscripts\bAdmin.pwn(99) : error 001: expected token: "}", but found ";"
C:\Documents and Settings\Lucas8\Desktop\DM-4FUN\filterscripts\bAdmin.pwn(99) : error 036: empty statement
C:\Documents and Settings\Lucas8\Desktop\DM-4FUN\filterscripts\bAdmin.pwn(99) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '@' && PlayerInfo[playerid][pAdminLevel] > 0)
    {
        new NomeP[MAX_PLAYER_NAME];
        GetPlayerName(playerid,NomeP,MAX_PLAYER_NAME);
        format(String, sizeof(String),"[Admin Chat]: %s: %s",NomeP,text[1]);
        SendAdminMsg(COLOR_YELLOW,String);
        return 0;
    }
    return 1;
}
Reply
#3

C:\Documents and Settings\Lucas8\Desktop\DM-4FUN\filterscripts\pAdmin.pwn(102) : error 017: undefined symbol "SendAdminMsg"
Reply
#4

pawn Код:
stock SendAdminMsg(cor, texto[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && PlayerInfo[i][pAdminLevel] > 0)
        {
            SendClientMessage(i, cor, texto);
        }
    }
    return 1;
}
Reply
#5

Onde ponho isso ?
Reply
#6

fim do gm/fs
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)