[Ajuda] warning 202: number of arguments does not match definition
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)