[Ajuda] warning 202: number of arguments does not match definition
#1

(4976) : warning 202: number of arguments does not match definition
(4985) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

Linhas:

if(strcmp(cmd, "/cnn", true) == 0) {
if(PlayerInfo[playerid][Level] >= 2) {
tmp = strtok(cmdtext, idx, strlen(cmdtext));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(!strlen(tmp)) {
SendClientMessage(playerid, red, "Uso correto: /cnn [menssagem]");
return 1;
}
CMDMessageToAdmins(playerid,"CNN");
if(PlayerInfo[playerid][LoggedIn] == 1){

tmp = strtok(cmdtext, idx, strlen(cmdtext));
format(string, sizeof(string), "~g~%s~p~:~y~%s", sendername, cmdtext[4]);
return GameTextForAll(string, 5000, 3);

}
else
{
SendClientMessage(playerid, red, "Vocк tem que ter nivel 2 para usar este comando!");
}
}
else
{
SendClientMessage(playerid, red, "Vocк nгo pode usar este comando!");
}
return 1;
}

grato desde jб , espero a ajuda de vcs !
Reply
#2

Quote:
Originally Posted by iD4N0N3_.x[X]x
Посмотреть сообщение
(4976) : warning 202: number of arguments does not match definition
(4985) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

Linhas:

if(strcmp(cmd, "/cnn", true) == 0) {
if(PlayerInfo[playerid][Level] >= 2) {
tmp = strtok(cmdtext, idx, strlen(cmdtext));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(!strlen(tmp)) {
SendClientMessage(playerid, red, "Uso correto: /cnn [menssagem]");
return 1;
}
CMDMessageToAdmins(playerid,"CNN");
if(PlayerInfo[playerid][LoggedIn] == 1){

tmp = strtok(cmdtext, idx, strlen(cmdtext));
format(string, sizeof(string), "~g~%s~p~:~y~%s", sendername, cmdtext[4]);
return GameTextForAll(string, 5000, 3);

}
else
{
SendClientMessage(playerid, red, "Vocк tem que ter nivel 2 para usar este comando!");
}
}
else
{
SendClientMessage(playerid, red, "Vocк nгo pode usar este comando!");
}
return 1;
}

grato desde jб , espero a ajuda de vcs !
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.


Linhas:

if(strcmp(cmd, "/cnn", true) == 0) {
if(PlayerInfo[playerid][Level] >= 2) {
tmp = strtok(cmdtext, idx, strlen(cmdtext));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(!strlen(tmp)) {
SendClientMessage(playerid, red, "Uso correto: /cnn [menssagem]");
return 1;
}
CMDMessageToAdmins(playerid,"CNN");
if(PlayerInfo[playerid][LoggedIn] == 1){

tmp = strtok(cmdtext, idx, strlen(cmdtext));
format(string, sizeof(string), "~g~%s~p~:~y~%s", sendername, cmdtext[4]);
return GameTextForAll(string, 5000, 3);

}
else
{
SendClientMessage(playerid, red, "Vocк tem que ter nivel 2 para usar este comando!");
}
}
else
{
SendClientMessage(playerid, red, "Vocк nгo pode usar este comando!");
}
return 1;
}

grato desde jб , espero a ajuda de vcs !
tem skype manda ae
Reply
#3

natan.martini1 ^^
Reply
#4

Me manda sу as linhas do warning.
Reply
#5

(4976) tmp = strtok(cmdtext, idx, strlen(cmdtext));

(4985) tmp = strtok(cmdtext, idx, strlen(cmdtext));

awe , tu й da cooper ?
Reply
#6

pawn Код:
if(strcmp(cmd, "/cnn", true) == 0)
    {
    new params [256];
    if(PlayerInfo[playerid][Level] >= 2)
    {
        if(!strlen(params)) return SendClientMessage(playerid,red,"USO: /cnn <texto>");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        CMDMessageToAdmins(playerid,"CNN");
        if(PlayerInfo[playerid][LoggedIn] == 1)
        {
            format(string, sizeof(string), "~g~%s~p~:~y~%s", sendername, cmdtext[4]);
            return  GameTextForAll(string, 5000, 3);
        } else {
            SendClientMessage(playerid, red, "Vocк tem que ter nivel 2 para usar este comando!");
        }
    } else  {
        SendClientMessage(playerid, red, "Vocк nгo pode usar este comando!");
    }
    return 1;
}


Tenta ai
Reply
#7

PHP код:
if(strcmp(cmd"/cnn"true) == 0)
{
    if(
PlayerInfo[playerid][Level] >= 2)
    {
          
strmid(tmpcmdtext4strlen(cmdtext));
        
GetPlayerName(playeridsendernamesizeof(sendername));
        if(!
strlen(tmp))
        {
            
SendClientMessage(playeridred"Uso correto: /cnn [menssagem]");
            return 
1;
        }
        
CMDMessageToAdmins(playerid,"CNN");
        if(
PlayerInfo[playerid][LoggedIn] == 1)
        {
            
strmid(tmpcmdtext4strlen(cmdtext));
            
format(stringsizeof(string), "~g~%s~p~:~y~%s"sendernamecmdtext[4]);
            return 
GameTextForAll(string50003);
        }
        else
        {
            
SendClientMessage(playeridred"Vocк tem que ter nivel 2 para usar este comando!");
        }
    }
    else
    {
        
SendClientMessage(playeridred"Vocк nгo pode usar este comando!");
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)