24.12.2014, 12:23
pawn Код:
COMMAND:list(playerid, params[])
{
new string_total[256];
for(new i = 1; i <= MAX_VEHICLES; i++)
{
printf("i = %i | proprio: %s | name: %s", i, VehInfo[(i - 1)][Proprio], NameRequete[playerid]);
if(!strcmp(VehInfo[(i - 1)][Proprio], NameRequete[playerid], true) && strlen(VehInfo[(i - 1)][Proprio]))
{
printf("on a trouver ton veh: i = %i", i);
if(!IsABike(i))
{
printf("et c pas un bike!");
new stringveh[25];
format(stringveh, sizeof(stringveh), "%s\n", GetVehicleName(i));
strins(string_total, stringveh, strlen(string_total));
printf("fin!");
}
}
}
return ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "Veh:", string_total, "Valider", "Annuler");
}