SA-MP Forums Archive
[AJUDA] Comando - 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] Comando (/showthread.php?tid=348039)



[AJUDA] Comando - goku114 - 03.06.2012

pawn Код:
if (strcmp("/carro", cmdtext, true, 10) == 0)
    {
        new allvehicles[] = "1\tAirplanes\n2\tHelicopters\n3\tBikes\n4\tConvertibles\n5\tIndustrial\n6\tLowriders\n7\tOffRoad\n8\tPublic Service Vehicles\n9\tSaloons\n10\tSport Vehicles\n11\tStation Wagons\n12\tBoats\n13\tUnique Vehicles\n14\tRC Vehicles\n15\tTrailers";
        ShowPlayerDialog(playerid, 2,DIALOG_STYLE_LIST," Vehicles: || Scroll Down for more",allvehicles,"Select","Cancel");
        return 1;
    }
 return 0;
}
o que esta errado?

eu digito io comando mas nгo vai


Re: [AJUDA] Comando - Crueliz0n - 03.06.2012

tire esse retrun 0; do codigo

PHP код:
if (strcmp("/carro"cmdtexttrue10) == 0)
{
new 
allvehicles[] = "1\tAirplanes\n2\tHelicopters\n3\tBikes\n4\tConvertibles\n5\tIndustrial\n6\tLowriders\n7\tOffRoad\n8\tPublic Service Vehicles\n9\tSaloons\n10\tSport Vehicles\n11\tStation Wagons\n12\tBoats\n13\tUnique Vehicles\n14\tRC Vehicles\n15\tTrailers";
ShowPlayerDialog(playerid2,DIALOG_STYLE_LIST," Vehicles: || Scroll Down for more",allvehicles,"Select","Cancel");
return 
1;




Re: [AJUDA] Comando - goku114 - 03.06.2012

Quote:
Originally Posted by BlackDonelly
Посмотреть сообщение
tire esse retrun 0; do codigo

PHP код:
if (strcmp("/carro"cmdtexttrue10) == 0)
{
new 
allvehicles[] = "1\tAirplanes\n2\tHelicopters\n3\tBikes\n4\tConvertibles\n5\tIndustrial\n6\tLowriders\n7\tOffRoad\n8\tPublic Service Vehicles\n9\tSaloons\n10\tSport Vehicles\n11\tStation Wagons\n12\tBoats\n13\tUnique Vehicles\n14\tRC Vehicles\n15\tTrailers";
        
ShowPlayerDialog(playerid2,DIALOG_STYLE_LIST," Vehicles: || Scroll Down for more",allvehicles,"Select","Cancel");
        return 
1;
    }

return 0 e da public


Re: [AJUDA] Comando - Crueliz0n - 03.06.2012

tente assim:
PHP код:
if(strcmp(cmdtext,"/carro"true) == 0)
{
    new 
allvehicles[] = "1\tAirplanes\n2\tHelicopters\n3\tBikes\n4\tConvertibles\n5\tIndustrial\n6\tLowriders\n7\tOffRoad\n8\tPublic Service Vehicles\n9\tSaloons\n10\tSport Vehicles\n11\tStation Wagons\n12\tBoats\n13\tUnique Vehicles\n14\tRC Vehicles\n15\tTrailers";
    
ShowPlayerDialog(playerid2,DIALOG_STYLE_LIST," Vehicles: || Scroll Down for more",allvehicles,"Select","Cancel");
    return 
1;
}
    return 
0;




Re: [AJUDA] Comando - zbt - 03.06.2012

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) {
    if(!strcmp(cmdtext, "/carro", true)) {
        new allvehicles[] = "1\tAirplanes\n2\tHelicopters\n3\tBikes\n4\tConvertibles\n5\tIndustrial\n6\tLowriders\n7\tOffRoad\n8\tPublic Service Vehicles\n9\tSaloons\n10\tSport Vehicles\n11\tStation Wagons\n12\tBoats\n13\tUnique Vehicles\n14\tRC Vehicles\n15\tTrailers";
        ShowPlayerDialog(playerid, 2,DIALOG_STYLE_LIST," Vehicles: || Scroll Down for more",allvehicles,"Select","Cancel");
        return 1;
    }
    return 0;
}
Se vocк estiver usando a include zcmd, retire ela.