SA-MP Forums Archive
[Ajuda] Como tira esse Warning Pls - 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: [Ajuda] Como tira esse Warning Pls (/showthread.php?tid=384215)



Como tira esse Warning Pls - victor304 - 10.10.2012

Bom galera estou com 1 probleminha antes estava normal, dai compilei sem NEM MEXER NISSO e deu isso

C:\Documents and Settings\******\Desktop\*****\gamemodes\*****.pwn( 28714) : warning 202: number of arguments does not match definition

Codigo Completo

pawn Code:
else if(strcmp(cmdtext, "/removercorrente", true)==0 || strcmp(cmdtext, "/rcorrente", true)==0)
    {
        if (PlayerInfo[playerid][pMember] != 14 && PlayerInfo[playerid][pLeader] != 14 && PlayerInfo[playerid][pMember] != 21 && PlayerInfo[playerid][pLeader] != 21)
        {
            SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й um Policial Rodoviario");
            return 1;
        }
        else
        {
            DeleteClosestStrip();
            PlayerInfo[playerid][pCorrente] = 0;
        }
        return 1;
    }
Linha 28714

pawn Code:
DeleteClosestStrip();
EDIT: Uйee, [.pawn] [./pawn] n mostra mais PAWN CODE?? digitei isso e apareceu CODE lol shausa :S


Re: Como tira esse Warning Pls - Jason` - 10.10.2012

Falta de argumentos.


Re: Como tira esse Warning Pls - ForT - 10.10.2012

poste a public DeleteClosestStrip


Re: Como tira esse Warning Pls - Diogo123 - 10.10.2012

number of arguments does not match definition

Nъmeros de argumentos nгo tiveram definiзгo ( um troзo assim )



Re: Como tira esse Warning Pls - Life Advanced - 10.10.2012

Tenta ae :
PHP Code:
else if(strcmp(cmdtext"/removercorrente"true)==|| strcmp(cmdtext"/rcorrente"true)==0)
{
    if (
PlayerInfo[playerid][pMember] != 14 && PlayerInfo[playerid][pLeader] != 14 && PlayerInfo[playerid][pMember] != 21 && PlayerInfo[playerid][pLeader] != 21)
    {
        
SendClientMessage(playeridCOLOR_GREY"Vocк nгo й um Policial Rodoviario");
        return 
1;
    }
    else
    {
        
DeleteClosestStrip(playerid); 
        
PlayerInfo[playerid][pCorrente] = 0;
    }
    return 
1;




Re: Como tira esse Warning Pls - Jason` - 10.10.2012

Ou entгo:

PHP Code:
DeleteClosestStrip(playerid); 



Re: Como tira esse Warning Pls - victor304 - 11.10.2012

Resolvido +RED Life Advanced