[AJUDA] Comando
#1

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
Reply
#2

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;

Reply
#3

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
Reply
#4

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;

Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)