10.08.2013, 19:46
something like this, try if works
pawn Код:
Dialog_SelectConvoy(playerid, response, listitem)
{
// Just close the dialog if the player clicked "Cancel"
if(!response) return 1;
// Setup local variables
new Convoy;
// The convoy-id is automatically the listitem
Convoy = listitem;
// Check the status of the selected convoy to determine what to do
switch (AConvoys[Convoy][Status2])
{
case CONVOY_EMPTY: Convoy_Create(playerid, Convoy);
case CONVOY_OPEN: Convoy_Join(playerid, Convoy);
case CONVOY_FULL: SendClientMessage(playerid, 0xFFFFFFFF, "Convoy is full!");
case CONVOY_CLOSED: SendClientMessage(playerid, 0xFFFFFFFF, "Convoy is already on en-route to it's destination");
}
return 1;
}