[Ajuda] Warning ???
#1

[pawno]
dcmd(barricada,9,cmdtext); //warning 1
dcmd(rebarricada,11,cmdtext); //warning 2
[/pawno]

Porque dб warning aqui ?


C:\Users\DaviWindows\Desktop\GTA San Andreas\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3565) : warning 202: number of arguments does not match definition
C:\Users\DaviWindows\Desktop\GTA San Andreas\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3565) : warning 202: number of arguments does not match definition
C:\Users\DaviWindows\Desktop\GTA San Andreas\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3566) : warning 202: number of arguments does not match definition
C:\Users\DaviWindows\Desktop\GTA San Andreas\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3566) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Reply
#2

pawn Код:
dcmd(barricada,9,cmdtext);
nunca mechi com dcmd mais falta aprametro ai
acho que й assim NГO TENHO CERTEZA

pawn Код:
dcmd(a, barricada,9,cmdtext);
pawn Код:
dcmd(b, rebarricada,11,cmdtext);
tente!
Reply
#3

C:\Users\DaviWindows\Desktop\GTA San Andreas\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3566) : error 017: undefined symbol "dcmd_a"
C:\Users\DaviWindows\Desktop\GTA San Andreas\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3567) : error 017: undefined symbol "rebarricada"
C:\Users\DaviWindows\Desktop\GTA San Andreas\Policia x Ladrгo\gamemodes\[CSMBR].pwn(17526) : warning 203: symbol is never used: "dcmd_Barricada"
C:\Users\DaviWindows\Desktop\GTA San Andreas\Policia x Ladrгo\gamemodes\[CSMBR].pwn(17526) : warning 203: symbol is never used: "dcmd_ReBarricada"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

DCMD Nгo se usa a,b e tals....
Reply
#4

Vocк definiu o dcmd? Caso nгo tenha definido:
pawn Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Reply
#5

Sim jб defini.
Reply
#6

poste o comando inteiro ai!
Reply
#7

Код:
dcmd(Barricada,9,cmdtext);

Код:
 	dcmd_Barricada(playerid)
    {
        if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_CIA)
           {
                SendClientMessage(playerid, COLOR_RED, "|ERRO| Vocк nгo й um Policial.");
                return 1;
        }
        SendClientMessage(playerid, COLOR_WHITE, "Barricada Criado Com Sucesso!");
        new Float:X, Float:Y, Float:Z, Float:A;
        GetPlayerPos(playerid, X, Y, Z);
        GetPlayerFacingAngle(playerid, A);
		barricada =	CreateObject(4506, X, Y, Z+2, 0.0, 0.0, A+180, 400.0);
        SetPlayerPos(playerid, X, Y+20, Z);//X -  latitude, ou seja leste e oeste. Y  longitude, ou seja norte e sul. Z й a altura!
        GameTextForPlayer(playerid, "~r~Barricada Criada com sucesso!", 2000, 5);
        return 1;
    }


Код:
dcmd(ReBarricada,11,cmdtext);

Код:
dcmd_ReBarricada(playerid)
    {
        if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_CIA)
           {
        SendClientMessage(playerid, COLOR_RED, "|ERRO| Vocк nгo й um Policial.");
        return 1;
        }
        DestroyObject(barricada);
        SendClientMessage(playerid, COLOR_WHITE, "Destroido Com Sucesso!");
        GameTextForPlayer(playerid, "~r~Barricada Destroida!", 2000, 5);
	return 1;
}
Reply
#8

Nгo sei se foi resolvido...

Nunca mexi com dcmd, mas acredito que sejб assim:

pawn Код:
dcmd_forum(playerid)
{
      SendClientMessage(playerid, -1, " Olб forum.");
      return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(forum, 1, cmdtext);
    return 1;
}

// Ou sejб dcmd(nome do comando, 1, cmdtext);
Acredito que sejб isto.
Reply
#9

Quote:
Originally Posted by @Riichard
Посмотреть сообщение
Nгo sei se foi resolvido...

Nunca mexi com dcmd, mas acredito que sejб assim:

pawn Код:
dcmd_forum(playerid)
{
      SendClientMessage(playerid, -1, " Olб forum.");
      return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(forum, 1, cmdtext);
    return 1;
}

// Ou sejб dcmd(nome do comando, 1, cmdtext);
Acredito que sejб isto.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(comando, 7, cmdtext);
    return 1;
}
pawn Код:
dcmd_comando(playerid)
{
      SendClientMessage(playerid, -1, " Olб forum.");
      return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)