24.12.2011, 17:40
pawn Код:
new Model;
new Color1;
new Color2;
new Price;
new Buyable;
pawn Код:
if(dialogid == 1)
{
if(response)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Car Factory","Choose the model of your vehicle:","Continue","");
Model = inputtext;
}
if(!response)
{
SendClientMessage(playerid,-1,"{FF0000}.: Cancelled :.");
}
}
if(dialogid == 2)
{
if(response)
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_INPUT,"Car Factory","Pickup the first color you wish:","Continue","");
Color1 = inputtext;
}
if(!response)
{
SendClientMessage(playerid,-1,"{FF0000}.: Cancelled :.");
}
}
if(dialogid == 3)
{
if(response)
{
ShowPlayerDialog(playerid,4,DIALOG_STYLE_INPUT,"Car Factory","Pickup the second color you wish:","Continue","");
Color2 = inputtext;
}
if(!response)
{
SendClientMessage(playerid,-1,"{FF0000}.: Cancelled :.");
}
}
if(dialogid == 4)
{
if(response)
{
ShowPlayerDialog(playerid,5,DIALOG_STYLE_INPUT,"Car Factory","How much will the car cost?","Continue","");
Price = inputtext;
}
if(!response)
{
SendClientMessage(playerid,-1,"{FF0000}.: Cancelled :.");
}
}
if(dialogid == 5)
{
if(response)
{
ShowPlayerDialog(playerid,6,DIALOG_STYLE_INPUT,"Car Factory","Will the car be buyable? (1 = Yes, 0 = No)","Continue","");
Buyable = inputtext;
}
if(!response)
{
SendClientMessage(playerid,-1,"{FF0000}.: Cancelled :.");
}
}
Код:
error 006: must be assigned to an array error 006: must be assigned to an array error 006: must be assigned to an array error 006: must be assigned to an array error 006: must be assigned to an array