[Ajuda] 4 Errors .
#7

Aproveitando para nгo criar outro Topic , alguem pod eme ajudar com esses :

Quote:

C:\Users\Laercio\Documents\Meus arquivos recebidos\ftn.pwn(27) : error 001: expected token: ";", but found "new"
C:\Users\Laercio\Documents\Meus arquivos recebidos\ftn.pwn(232) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Laercio\Documents\Meus arquivos recebidos\ftn.pwn(247) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Laercio\Documents\Meus arquivos recebidos\ftn.pwn(337) : error 035: argument type mismatch (argument 1)

Linha do erro :
pawn Код:
new iBuy1;
Code completo :
pawn Код:
//_____[Pickups]_____//
new iBuy1;
new iBuy2;
Linha do warning:
pawn Код:
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
Code completo :
pawn Код:
SetTimerEx("timer", annoucment, false, "i", playerid);
    GivePlayerMoney(playerid, spawnmoney);
    new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s entrou no server.", pname);
    SendClientMessageToAll(COLOR_RED, string);
    return 1;
}
Linha do warning:
pawn Код:
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
Code completo :
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    switch(reason)
    {
        case 0: format(string, sizeof(string), "%s Saiu do servidor por problemas com crash/coneзгo. ", pname);
        case 1: format(string, sizeof(string), "%s Saiu do servidor. ", pname);
        case 2: format(string, sizeof(string), "%s Foi Kikado ou Banido. ", pname);
    }
    SendClientMessageToAll(COLOR_RED, string);
    return 1;
}
Linha do erro:
pawn Код:
if(strcmp(cmd, "/afk", true) == 0)
Code completo :
pawn Код:
if(strcmp(cmd, "/afk", true) == 0)
        {
        if(Afk[playerid]==0)
        {
        Afk[playerid]=1;
        SetPlayerVirtualWorld(playerid, 1);
        SetCameraBehindPlayer(playerid);
        TogglePlayerControllable(playerid,0);
        TextDrawShowForPlayer(playerid,Ausente);
        TextDrawShowForPlayer(playerid,On);
        new Ausentes[200];
        GetPlayerName(playerid, Ausentes, 30);
        format(string, 256, "[BDF]%s Esta Ausente /afk", Ausentes);
        SendClientMessageToAll( 0x00FFFFAA, string);
        }else{
        SendClientMessage(playerid,0xF60000AA,"(ERRO) Vocк jб estб no modo AFK!");
        return 1;
        }
        return 1;
        }
Reply


Messages In This Thread
[Ajuda] 4 Errors . - by Laercio - 10.11.2011, 20:13
Re: [Ajuda] 4 Errors . - by array13 - 10.11.2011, 20:15
Re: [Ajuda] 4 Errors . - by Pharrel - 10.11.2011, 20:16
Re: [Ajuda] 4 Errors . - by Laercio - 10.11.2011, 20:20
Re: [Ajuda] 4 Errors . - by Pharrel - 10.11.2011, 20:21
Re: [Ajuda] 4 Errors . - by Laercio - 10.11.2011, 20:22
Re: [Ajuda] 4 Errors . - by Laercio - 10.11.2011, 20:37
Re: [Ajuda] 4 Errors . - by RebeloX - 10.11.2011, 20:41
Re: [Ajuda] 4 Errors . - by Laercio - 10.11.2011, 20:53
Re: [Ajuda] 4 Errors . - by RebeloX - 10.11.2011, 20:57

Forum Jump:


Users browsing this thread: 2 Guest(s)