24.06.2012, 16:35
Thank you it works but i just found out one more problem if i dont have all 4 car slots filled up the command wont work either here sit he command
If you need any more code just ask
Thanks
pawn Код:
command(callcar, playerid, params[])
{
new string[128];
for(new i; i < sizeof(VehicleNames); i++)
{
format(string, sizeof(string), "%s\n%s\n%s\n%s", VehicleNames[Player[playerid][PlayerCarModel]-400], VehicleNames[Player[playerid][PlayerCarModel2]-400], VehicleNames[Player[playerid][PlayerCarModel3]-400], VehicleNames[Player[playerid][PlayerCarModel4]-400]);
}
ShowPlayerDialog(playerid, 4601, DIALOG_STYLE_LIST, "Call Car", string, "Ok", "Close");
}
Thanks