[AJUDA] : error 017: undefined symbol "params" - 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] : error 017: undefined symbol "params" (
/showthread.php?tid=354634)
[AJUDA] : error 017: undefined symbol "params" -
Pablo_Mantega - 27.06.2012
Botei uma Sistema zcmd e tranformei strcmd soque deu um erros : error 017: undefined symbol "params"
Linha :
Код:
if(strcmp("/comprarcigarro", cmd, true) == 0)
{
new Marca[128];
if(sscanf(params,"s",Marca))
{
SendClientMessage(playerid,-1,"Use: /comprarcigarro (marca)");
SendClientMessage(playerid,-1,"| - = - = Disponiveis = - = -|");
SendClientMessage(playerid,-1,"| Carlton | Free | Marlboro |");
SendClientMessage(playerid,-1,"| - = - = - = - = - = - = - =|");
return 1;
}
Re: [AJUDA] : error 017: undefined symbol "params" -
[JD]BlackFire - 27.06.2012
pawn Код:
if(strcmp("/comprarcigarro", cmd, true) == 0)
{
new Marca[128];
if(sscanf(cmd,"s",Marca))
{
SendClientMessage(playerid,-1,"Use: /comprarcigarro (marca)");
SendClientMessage(playerid,-1,"| - = - = Disponiveis = - = -|");
SendClientMessage(playerid,-1,"| Carlton | Free | Marlboro |");
SendClientMessage(playerid,-1,"| - = - = - = - = - = - = - =|");
return 1;
}
Re: [AJUDA] : error 017: undefined symbol "params" -
cJMaster_ - 27.06.2012
pawn Код:
if(strcmp("/comprarcigarro", cmd, true) == 0)
{
new Marca[128];
if(!strlen(tmp))
{
SendClientMessage(playerid,-1,"Use: /comprarcigarro (marca)");
SendClientMessage(playerid,-1,"| - = - = Disponiveis = - = -|");
SendClientMessage(playerid,-1,"| Carlton | Free | Marlboro |");
SendClientMessage(playerid,-1,"| - = - = - = - = - = - = - =|");
return 1;
}
if(strcmp(Marca, "Carlton", true) == 0)
{
//Funcao
}
else if(strcmp(Marca, "Free", true) == 0)
{
//Funcao
}
else if(strcmp(tmp, "Marlboro", true) == 0)
{
//Funcao
}
return 1;
}
Tenta-ste usar desta forma.