3 errors
#1

pawn Код:
// Insulting Bot

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("Insulting Bot 1.0");
    print("--------------------------------------\n");
    return 1;
}


#endif


public OnPlayerText(playerid, text[])
{
    if (strfind(text, "Fuck") != -1)
    {
        new string[80], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "%s Please Don't Insult!", name);
        SendChat(string);
    }
    return 1;
}

public OnPlayerTeamPrivmsg(playerid, text[])
{
        new
        sSenderName[24],
        sString[128];

    GetPlayerName(playerid, sSenderName, sizeof sSenderName);
    format(sString, sizeof sString, "(Team Message) ID: %d.%s. (%s) ",playerid, senderName, text);

    for(new iPlayer = 0 ; iPlayer < MAX_PLAYERS; iPlayer++)
    {
        if(IsPlayerAdmin(iPlayer))
        {
            SendPlayerMessage(iPlayer, 0xFFFFFFAA, sString);
        }
    }

    return true;
}
Код:
C:\Users\user\Desktop\TextTT.pwn(26) : error 017: undefined symbol "SendChat"
C:\Users\user\Desktop\TextTT.pwn(31) : warning 235: public function lacks forward declaration (symbol "OnPlayerTeamPrivmsg")
C:\Users\user\Desktop\TextTT.pwn(37) : warning 217: loose indentation
C:\Users\user\Desktop\TextTT.pwn(38) : error 017: undefined symbol "senderName"
C:\Users\user\Desktop\TextTT.pwn(44) : error 017: undefined symbol "SendPlayerMessage"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply


Messages In This Thread
3 errors - by Davz*|*Criss - 10.02.2011, 12:43
Re: 3 errors - by Davz*|*Criss - 10.02.2011, 12:59
Re: 3 errors - by TouR - 10.02.2011, 13:03
Re: 3 errors - by Calgon - 10.02.2011, 13:09
Re: 3 errors - by Davz*|*Criss - 10.02.2011, 13:15
Re: 3 errors - by Davz*|*Criss - 10.02.2011, 13:17
Re: 3 errors - by alpha500delta - 10.02.2011, 13:18

Forum Jump:


Users browsing this thread: 1 Guest(s)