[Ajuda] Warning - 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] Warning (
/showthread.php?tid=480172)
Warning -
Douglas651 - 09.12.2013
Alguem Sabe Resolver Esse Warning? Ja Procurei no ****** e na achei nada que resolvesse
PHP код:
if(strcmp(cmd, "/Desarmar", true) == 0)
{
if(GetPlayerLevel(playerid) < 4) return SendClientMessage(playerid,0x007FFFAA,"|Admin|:Vocк Nгo Tem Permissгo De Usar Esse Comando");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,0x007FFFAA,"|Admin|:Use:/Desarmar [ID]");
return 1;
}
ResetPlayerWeapons(playerid);
SendClientMessage(playerid,0x007FFFAA,"|Admin|:Vocк Desarmou O Player %s Com Sucesso",giveplayer);
printf("|Log|:O Admin %s Desarmou O Player %s",NomePlayer,giveplayer);
return 1;
}
@edit
Opa Desculpa esqueci
PHP код:
(2154) : warning 202: number of arguments does not match definition
PHP код:
Linha 2154:SendClientMessage(playerid,0x007FFFAA,"|Admin|:Vocк Desarmou O Player %s Com Sucesso",giveplayer);
Respuesta: Warning -
ViniKuliveguisky - 09.12.2013
Vocк tem que utilizar um format para poder inserir nomes e etc.
pawn Код:
if(strcmp(cmd, "/Desarmar", true) == 0)
{
if(GetPlayerLevel(playerid) < 4) return SendClientMessage(playerid,0x007FFFAA,"|Admin|:Vocк Nгo Tem Permissгo De Usar Esse Comando");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,0x007FFFAA,"|Admin|:Use:/Desarmar [ID]");
return 1;
}
ResetPlayerWeapons(playerid);
new vini[80];
format(vini, sizeof(vini), "|Admin|:Vocк Desarmou O Player %s Com Sucesso",giveplayer);
SendClientMessage(playerid,0x007FFFAA, vini);
printf("|Log|:O Admin %s Desarmou O Player %s",NomePlayer,giveplayer);
return 1;
}
Re: Warning -
22 - 09.12.2013
@EDIT nгo tinha visto que o cara jб tinha postado..
Re: Respuesta: Warning -
Douglas651 - 09.12.2013
Quote:
Originally Posted by ViniKuliveguisky
Vocк tem que utilizar um format para poder inserir nomes e etc.
pawn Код:
if(strcmp(cmd, "/Desarmar", true) == 0) { if(GetPlayerLevel(playerid) < 4) return SendClientMessage(playerid,0x007FFFAA,"|Admin|:Vocк Nгo Tem Permissгo De Usar Esse Comando"); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid,0x007FFFAA,"|Admin|:Use:/Desarmar [ID]"); return 1; } ResetPlayerWeapons(playerid); new vini[80]; format(vini, sizeof(vini), "|Admin|:Vocк Desarmou O Player %s Com Sucesso",giveplayer); SendClientMessage(playerid,0x007FFFAA, vini); printf("|Log|:O Admin %s Desarmou O Player %s",NomePlayer,giveplayer); return 1; }
|
Vlw Cara +rep
Respuesta: Warning -
ViniKuliveguisky - 09.12.2013
Se precisar estamos ai