13.01.2010, 13:34
I am using this script for train service:
My porblem is that, only the first pickup in the script responds to the code for it. That is (i have marked =)to the pickups that work. When i go to those pickups it works fine. But other pickups does not even respond to the script. help me
Код:
new infot;
new ticket;
infot = CreatePickup(1239,23,1433.637,2613.159,11.012); =
CreatePickup(1239,23,1433.814,2663.480,11.207);
CreatePickup(1239,23,2837.806,1290.722,11.210);
CreatePickup(1239,23,1777.130,-1936.748,13.115);
CreatePickup(1239,23,809.744,-1338.202,13.235);
CreatePickup(1239,23,-1984.573,138.182,27.282);
ticket = CreatePickup(1581,23,1429.098,2657.107,11.000); =
CreatePickup(1581,23,1429.090,2622.827,11.000);
CreatePickup(1581,23,2853.677,1286.432,11.000);
CreatePickup(1581,23,1760.7914,-1941.3491,13.5834);
CreatePickup(1581,23,827.257,-1346.100,13.123);
CreatePickup(1581,23,-1971.743,116.647,27.273);
if(pickupid == ticket)
{
ShowPlayerDialog(playerid, TM, DIALOG_STYLE_LIST, "eF Train Service","LS\tMarket Station\nLS\tUnited Station\nSF\tCranberry Station\nLV\tLinden Station\nLV\tYellow Bell Station", "Select", "Cancel");
return 1;
}
if(dialogid == TM)
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid,809.744,-1338.202,13.235);
ApplyAnimation(playerid, "TRAIN","tran_gtup",4.1,1,1,1,1,60);
}
if(listitem == 1)
{
SetPlayerPos(playerid,1759.876,-1941.997,13.972);
ApplyAnimation(playerid, "TRAIN","tran_hng",4.1,1,1,1,1,60);
}
if(listitem == 2)
{
SetPlayerPos(playerid,-1971.743,116.647,13.92);
ApplyAnimation(playerid, "TRAIN","tran_ouch",4.1,1,1,1,1,60);
}
if(listitem == 3)
{
SetPlayerPos(playerid,2853.677,1286.432,13.972);
ApplyAnimation(playerid, "TRAIN","tran_stmb",4.1,1,1,1,1,60);
}
if(listitem == 4)
{
SetPlayerPos(playerid,1429.098,2657.107,13.972);
ApplyAnimation(playerid, "TRAIN","tran_gtup",4.1,1,1,1,1,60);
}
}
}
return 1;
}

