24.05.2012, 12:35
pawn Код:
if(dialogid == 100)
{
if(!response) return SendClientMessage(playerid, 0xFF0000FF, "You cancelled.");
switch(listitem)
{
case 0:
{
new part1[] = "\n/car - Info about your vehicle\n/cars - Statistics about the server vehicles\n/buycar\t\t- Buy a vehicle\n/sellcar - to sell your vehicle\n/callcar - call your vehicle";
new part2[] = "\n/watch[car/off] - to spectate your vehicle\n/[Un]lock - To lock/unlock your vehicle\n/resetcar - to reset your vehicle to the parked position\n/eject[all] - To eject a player from your vehicle";
new string[400]; //128 is way to small (part2 = nearly 200)
format(string, sizeof(string),"%s %s",part1,part2);
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX,"Vehicle Car System",string,"Done","");
}
case 1:
{
//Second page
}
case 2:
{
//3rd page
}
}
}
Thanks.