09.06.2015, 13:02
Hi all, I did:
In the game when I type /vmenu, it show me: ERROR UNKOWN COMMAND.
Why?
PHP код:
CMD:vmenu(playerid, params[])
{
new
finale[400],
veicolo_1[200],
veicolo_2[200],
veicolo_3[200];
new
id = PlayerInfo[playerid][IDVeicolo],
id2 = PlayerInfo[playerid][IDVeicolo2],
id3 = PlayerInfo[playerid][IDVeicolo3];
if(id == 0) veicolo_1 = "Slot libero\n";
else if(id != 0)
{
format(veicolo_1, sizeof(veicolo_1), "%s - (FC 0%d LV)\n", GetVehicleName( id ), id);
strcat(finale, veicolo_1, sizeof(finale));
}
if(id2 == 0) veicolo_2 = "Slot libero\n";
else if(id2 != 0)
{
format(veicolo_2, sizeof(veicolo_2), "%s - (FC 0%d LV)\n", GetVehicleName( id2 ), id2);
strcat(finale, veicolo_2, sizeof(finale));
}
if(id3 == 0) veicolo_3 = "Slot libero\n";
else if(id3 != 0)
{
format(veicolo_3, sizeof(veicolo_3), "%s - (FC 0%d LV)\n", GetVehicleName( id3 ), id3);
strcat(finale, veicolo_3, sizeof(finale));
}
ShowPlayerDialog(playerid, DIALOG_VMENU, DIALOG_STYLE_LIST, "Menщ veicolo", finale, "Seleziona", "Esci");
return 1;
}
Why?