24.06.2012, 16:25
So im trying to make it show the players car model ID in /callcar dialog and the car name but when ever i do /callcar nothing happens
The command
If you need any more code just ask
Thanks
pawn Код:
new VehicleNames[212][] =
{
"559 - Jester"
};
pawn Код:
command(callcar, playerid, params[])
{
new string[128];
for(new i; i < sizeof(VehicleNames); i++)
{
format(string, sizeof(string), "%s", VehicleNames[Player[playerid][PlayerCarModel]]);
}
ShowPlayerDialog(playerid, 4601, DIALOG_STYLE_LIST, "Call Car", string, "Ok", "Close");
}
Thanks