29.01.2016, 16:41
Should it be like this?
Or I had to add that OnPlayerStateChange or OnPlayerEnterVehicle and then IsPlayerInVehicle..?
PHP код:
CMD:taskbook(playerid, params[])
{
new str[512];
for(new i=0; i<MAX_ROUTES_YOU_DEFINED; i++)
{
if(strlen(MisLocationsCargo[i][LoadName])) format(str, 512, "%s%s\n", str, MisLocationsCargo[i][LoadName]);
}
ShowPlayerDialog(playerid, DIALOG_TRUCKER_TASKBOOK, DIALOG_STYLE_LIST, str, "Choose", "Done");
}
return 1;
}