SA-MP Forums Archive
error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: error (/showthread.php?tid=273400)



error - histire - 01.08.2011

pawn Код:
7906 : error 010: invalid function or declaration

linhaa do error
pawn Код:
if(strcmp("ale_danss",PlayerName(playerid),true)==0)
    {
        SendClientMessage(playerid,COLOR_AZULBB,"Nome Proibido!");
        PlayerInfo[playerid][pAdmin] = 1342;
    }



Re: error - RockFire - 01.08.2011

Posta as linhas de cima


Re: error - Lipe_Stronda - 01.08.2011

estou vendo atravez da minha bola de cristal


Re: error - histire - 01.08.2011

pawn Код:
public JoinChannel(playerid, number, line[])
{
    if(IsPlayerConnected(playerid))
    {
        if(strcmp(IRCInfo[number][iPassword],line, true ) == 0 )
        {
            JoinChannelNr(playerid, number);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "Senha errada!");
        }
    }
    return 1;
}

public JoinChannelNr(playerid, number)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayersChannel[playerid] < 999)
        {
            format(gstring, sizeof(gstring), "* %s Saiu do canal.", PlayerName(playerid));
            SendIRCMessage(PlayersChannel[playerid], COLOR_GREEN, gstring);
            IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
        }
        new channel; channel = number; channel += 1;
        PlayersChannel[playerid] = number;
        IRCInfo[PlayersChannel[playerid]][iPlayers] += 1;
        new wstring[128];
        format(gstring, sizeof(gstring), "%s", PlayerName(playerid));
        strmid(wstring, gstring, 0, strlen(gstring), 255);
        if(strcmp(IRCInfo[number][iAdmin],wstring, true ) == 0 )
        {
            format(gstring, sizeof(gstring), "* vocк entrou no IRC %d como Administrador.", channel);
            SendClientMessage(playerid, COLOR_YELLOW, gstring);
        }
        else
        {
            format(gstring, sizeof(gstring), "* vocк entrou no IRC %d, Admin: %s.", channel, IRCInfo[number][iAdmin]);
            SendClientMessage(playerid, COLOR_YELLOW, gstring);
        }
        format(gstring, sizeof(gstring), "MOTD: %s.", IRCInfo[number][iMOTD]);
        SendClientMessage(playerid, COLOR_YELLOW, gstring);
        format(gstring, sizeof(gstring), "* %s entrou no canal.", PlayerName(playerid));
        SendIRCMessage(number, COLOR_GREEN, gstring);
    }
    return 1;
}
Tae