Admin Chat |help|
#1

Код:
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\gamemodes\xD.pwn(230) : error 010: invalid function or declaration
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\gamemodes\xD.pwn(231) : error 010: invalid function or declaration
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\gamemodes\xD.pwn(3136) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\gamemodes\xD.pwn(3146) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\gamemodes\xD.pwn(3218) : error 010: invalid function or declaration
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\gamemodes\xD.pwn(3229) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
pawn Код:
forward MessageToPlayerVIP(color,const string[]); //<<<< Line 230
forward MessageToAdmins(color,const string[]); //<<< Line 231
public OnPlayerText(playerid, text[])
{
    if(text[0] == '!' && P_Data[playerid][VIP] >= 1)
    {
        new string[128]; GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"[DONATOR] %s: %s",string,text[1]);
        MessageToPlayerVIP(COLOR_GREEN,string); //<<< 3136
        return 0;
    }
//==============================================================================
// Administration Chat
//==============================================================================
    if(text[0] == '#' && P_Data[playerid][pAdmin] >= 1)
    {
        new string[128]; GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"[ADMIN]: %s: %s",string,text[1]);
        MessageToAdmins(COLOR_GREY,string); //<<3146
        #if ADM_CHAT_LOG == true
        #endif
        return 0;
    }
public MessageToPlayerVIP(color,const string[]) //<<< 3218
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) == 1)
    if(P_Data[i][VIP] >= 1)
    SendClientMessage(i, color, string);
    }
    return 1;
}

public MessageToAdmins(color,const string[])//<<< 3229
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) == 1)
    if(P_Data[i][pAdmin] >= 1)
    SendClientMessage(i, color, string);
    }
    return 1;
}
Reply


Messages In This Thread
Admin Chat |help| - by AYOUYOU - 01.01.2015, 12:06
Re : Admin Chat |help| - by MCZOFT - 01.01.2015, 12:22
Re : Admin Chat |help| - by AYOUYOU - 01.01.2015, 12:35
Re: Admin Chat |help| - by Lordzy - 01.01.2015, 12:36
Re : Admin Chat |help| - by AYOUYOU - 01.01.2015, 12:37
Re : Admin Chat |help| - by MCZOFT - 01.01.2015, 12:40
Re: Admin Chat |help| - by ReD_HunTeR - 01.01.2015, 12:47
Re : Re: Admin Chat |help| - by AYOUYOU - 01.01.2015, 12:55
Re: Admin Chat |help| - by DavidBilla - 01.01.2015, 13:00
Re : Admin Chat |help| - by AYOUYOU - 01.01.2015, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)