CMD:encontrar(playerid, params[])
{
new
sEncontrar[64],
Count;
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(cInfo[i][ownerID] == pInfo[playerid][pID])
{
format(sEncontrar, sizeof(sEncontrar), "%d - Vehнculo: %s | ID: %d \n", Count, VehicleNames[cInfo[i][model]], i);
Count++;
}
}
ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, 0 ,"Lista de tus vehнculos", sEncontrar, "Aceptar", "Cancelar");
return 1;
}
Que mas brothers! ven algo raro en este comando? es que me envia un Unknow Command al usarlo
PHP код:
Ven algo extraсo? |
CMD:encontrar(playerid, params[])
{
new
sEncontrar[64],
Count,
dest[256];
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(cInfo[i][ownerID] == pInfo[playerid][pID])
{
format(sEncontrar, sizeof(sEncontrar), "%d - Vehнculo: %s | ID: %d \n", Count, VehicleNames[cInfo[i][model]], i);
Count++;
strcat(dest, sEncontrar);
}
}
ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, 0 ,"Lista de tus vehнculos", dest, "Aceptar", "Cancelar"); //igual param i esta mal el ID del dialog tmb
return 1;
}
CMD:encontrar(playerid, params[])
{
new
sEncontrar[64],
Count,
dest[256];
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(cInfo[i][ownerID] == pInfo[playerid][pID])
{
format(sEncontrar, sizeof(sEncontrar), "%d - Vehнculo: %s | ID: %d \n", Count, VehicleNames[cInfo[i][model]], i);
Count++;
strcat(dest, sEncontrar);
}
}
SendClientMessage(playerid, -1, dest);
ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, 0 ,"Lista de tus vehнculos", dest, "Aceptar", "Cancelar");
return 1;
}
if(cInfo[i][ownerID] == pInfo[playerid][pID])
CMD:encontrar(playerid, params[])
{
print("0");
new
sEncontrar[64],
Count;
print("1");
for(new i = 0; i < MAX_VEHICLES; i++)
{
print("2");
if(cInfo[i][ownerID] == pInfo[playerid][pID])
{
print("3");
format(sEncontrar, sizeof(sEncontrar), "%d - Vehнculo: %s | ID: %d \n", Count, VehicleNames[cInfo[i][model]], i);
Count++;
print("4");
}
print("5");
}
print("6");
ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, 0 ,"Lista de tus vehнculos", sEncontrar, "Aceptar", "Cancelar");
print("7");
return 1;
}
CMD:encontrar(playerid, params[])
{
print("0");
new
sEncontrar[64],
Count;
print("1");
for(new i = 0; i < MAX_VEHICLES; i++)
{
print("2");
if(cInfo[i][ownerID] == pInfo[playerid][pID])
{
print("3");
if(i == 0) format(sEncontrar, sizeof(sEncontrar), "%d - Vehнculo: %s | ID: %d", Count, VehicleNames[cInfo[i][model]], i);
else format(sEncontrar, sizeof(sEncontrar), "%s\n%d - Vehнculo: %s | ID: %d", sEncontrar, Count, VehicleNames[cInfo[i][model]], i);
Count++;
print("4");
}
print("5");
}
print("6");
ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, 0 ,"Lista de tus vehнculos", sEncontrar, "Aceptar", "Cancelar");
print("7");
return 1;
}