Dialog (5 errors)
#1

I can't fix this:

ERROR:
pawn Код:
C:\Users\Antonio\Desktop\FunGaming_Stunt-Freeroam_0.3x\FunGaming Stunt-Freeroam\filterscripts\t.pwn(21) : error 075: input line too long (after substitutions)
C:\Users\Antonio\Desktop\FunGaming_Stunt-Freeroam_0.3x\FunGaming Stunt-Freeroam\filterscripts\t.pwn(22) : error 037: invalid string (possibly non-terminated string)
C:\Users\Antonio\Desktop\FunGaming_Stunt-Freeroam_0.3x\FunGaming Stunt-Freeroam\filterscripts\t.pwn(22) : error 017: undefined symbol "Drift1"
C:\Users\Antonio\Desktop\FunGaming_Stunt-Freeroam_0.3x\FunGaming Stunt-Freeroam\filterscripts\t.pwn(22) : error 029: invalid expression, assumed zero
C:\Users\Antonio\Desktop\FunGaming_Stunt-Freeroam_0.3x\FunGaming Stunt-Freeroam\filterscripts\t.pwn(22) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

MY FILTERSCRIPT
pawn Код:
#include a_samp
#include zcmd
#include spsx
#define COLOR_GRAY 0xCECECEFF
#if defined FILTERSCRIPT



#endif

//----------------------------------------------------------------------------//
CMD:teleport(playerid, params[])
{
    ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_LIST, "Teleports", "Hotspots\nDrifts\nStunts\nJumps\nFun", "Teleport", "Close");
    return 1;
}
//----------------------------------------------------------------------------//
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1000)
    {
     if(listitem == 0) ShowPlayerDialog(playerid, 1001, DIALOG_STYLE_LIST, "Drifts", "Drift1\nDrift2\nDrift3\nDrift4\nDrift5\nDrift6\nDrift7\nDrift8\nDrift9\nDrift10\nDrift11\nDrift12\nDrift13\nDrift14\nDrift15\nDrift16\nDrift17\nDrift18\nDrift19\nDrift20\nDrift21\nDrift22\nDrift23\nDrift24\nDrift25\nDrift26\nDrift27\nDrift28\nDrift29\nDrift30\nDrift31\nDrift32\nDrift33\nDrift34\nDrift35\nDrift36\nDrift37\nDrift38\nDrift39\nDrift40\nDrift41\nDrift42\nDrift43\nDrift44\nDrift45\nDrift46\nDrift47\nDrift48\nDrift49\nDrift50\nDrift51", "Teleport", "Close");
     if(listitem == 1) ShowPlayerDialog(playerid, 1002, DIALOG_STYLE_LIST, "Hotspots", "ArmyBase\nAbandonAirport\nSFAirport\nLSAirport\nLVAirport", "Teleport", "Close");
     if(listitem == 2) ShowPlayerDialog(playerid, 1003, DIALOG_STYLE_LIST, "Stunts", "Stunt1\nStunt2\nStunt3\nStunt4\nStunt5\nStunt6\nStunt7\nStunt8\nStunt9\nStunt10\n...", "Teleport", "Close");
     if(listitem == 3) ShowPlayerDialog(playerid, 1004, DIALOG_STYLE_LIST, "Jumps", "Jump1\nJump2\nJump3\nJump4\nJump5\nJump6\nJump7\nJump8\nJump9\nJump10\nJump11\nJump12\nJump13\nJump14\nJump15", "Teleport", "Close");
     if(listitem == 4) ShowPlayerDialog(playerid, 1005, DIALOG_STYLE_LIST, "Fun", "Island1\nIsland2\nIsland3\nIsland4\nIsland5\nIsland6\nIsland7\nIsland8\nBase1\nBase2\nBase3\nMonster", "Teleport", "Close");

}

    if(dialogid == 1001)
    {
     if(listitem == 0)   SetPlayerPosEx  ( playerid , -329.3348  , 1536.3771  , 76.6117  , 276.8851 , 0 , 0 ) ;
     if(listitem == 1)   SetPlayerPosEx  ( playerid , 2265.3010  , 1399.5085  , 42.8203  , 110.5445 , 0 , 0 ) ;
     if(listitem == 2)   SetPlayerPosEx  ( playerid , -2489.8352 , -616.3492  , 132.5658 , 110.5445 , 0 , 0 ) ;
     if(listitem == 3)   SetPlayerPosEx  ( playerid , 2243.2185  , 1963.3853  , 31.7797  , 110.5445 , 0 , 0 ) ;
     if(listitem == 4)   SetPlayerPosEx  ( playerid , 1886.9543  , 1813.2212  , 18.9339  , 110.5445 , 0 , 0 ) ;
     if(listitem == 5)   SetPlayerPosEx  ( playerid , -766.7427  , -1730.1228 , 95.9759  , 110.5445 , 0 , 0 ) ;
     if(listitem == 6)   SetPlayerPosEx  ( playerid , 711.8475   , 2581.5981  , 25.2460  , 110.5445 , 0 , 0 ) ;
     if(listitem == 7)   SetPlayerPosEx  ( playerid , -2418.8452 , 81.8775    , 34.6797  , 110.5445 , 0 , 0 ) ;
     if(listitem == 8)   SetPlayerPosEx  ( playerid , 915.9879   , -685.1018  , 116.0321 , 148.8388 , 0 , 0 ) ;
     if(listitem == 9)   SetPlayerPosEx  ( playerid , -771.1682  , -100.2281  , 64.8293  , 290.6883 , 0 , 0 ) ;
     if(listitem == 10)  SetPlayerPosEx  ( playerid , 2847.8616  , -758.0251  , 10.4511  , 357.8184 , 0 , 0 ) ;
     if(listitem == 11)  SetPlayerPosEx  ( playerid , 1239.8492  , -2037.4199 , 59.9314  , 260.3887 , 0 , 0 ) ;
     if(listitem == 12)  SetPlayerPosEx  ( playerid , 1636.9423  , -1154.2665 , 23.6056  , 357.5793 , 0 , 0 ) ;
     if(listitem == 13)  SetPlayerPosEx  ( playerid , 1978.7637  , 2238.7798  , 26.8968  , 269.8691 , 0 , 0 ) ;
     if(listitem == 14)  SetPlayerPosEx  ( playerid , -116.2590  , 819.2222   , 20.0582  , 199.9199 , 0 , 0 ) ;
     if(listitem == 15)  SetPlayerPosEx  ( playerid , 2620.0789  , -2406.7498 , 13.1992  , 269.8561 , 0 , 0 ) ;
     if(listitem == 16)  SetPlayerPosEx  ( playerid , -318.4155  , 2518.4719  , 34.4178  , 276.3857 , 0 , 0 ) ;
     if(listitem == 17)  SetPlayerPosEx  ( playerid , -536.4901  , 1985.9124  , 59.8858  , 54.5365  , 0 , 0 ) ;
     if(listitem == 18)  SetPlayerPosEx  ( playerid , 2560.1799  , -1054.5699 , 69.1088  , 174.5037 , 0 , 0 ) ;
     if(listitem == 19)  SetPlayerPosEx  ( playerid , 2744.8188  , -1259.8951 , 59.2429  , 268.8653 , 0 , 0 ) ;
     if(listitem == 20)  SetPlayerPosEx  ( playerid , 664.9158   , -1317.3036 , 13.1367  , 1.9902   , 0 , 0 ) ;
     if(listitem == 21)  SetPlayerPosEx  ( playerid , 293.9851   , -561.8304  , 40.3055  , 89.1122  , 0 , 0 ) ;
     if(listitem == 22)  SetPlayerPosEx  ( playerid , -1257.1068 , -1355.8252 , 119.8318 , 110.5793 , 0 , 0 ) ;
     if(listitem == 23)  SetPlayerPosEx  ( playerid , 1277.5319  , -601.2232  , 100.9038 , 353.0812 , 0 , 0 ) ;
     if(listitem == 24)  SetPlayerPosEx  ( playerid , -1810.9692 , 2685.8086  , 55.8367  , 76.9332  , 0 , 0 ) ;
     if(listitem == 25)  SetPlayerPosEx  ( playerid , -1822.0422 , 2670.2593  , 54.7437  , 144.0571 , 0 , 0 ) ;
     if(listitem == 26)  SetPlayerPosEx  ( playerid , 1104.5126  , 815.3459   , 10.4263  , 305.2941 , 0 , 0 ) ;
     if(listitem == 27)  SetPlayerPosEx  ( playerid , 2509.8716  , 1606.4781  , 10.4566  , 158.8041 , 0 , 0 ) ;
     if(listitem == 28)  SetPlayerPosEx  ( playerid , -1421.2139 , -816.0684  , 80.1159  , 93.0473  , 0 , 0 ) ;
     if(listitem == 29)  SetPlayerPosEx  ( playerid , -1697.0072 , 991.5380   , 17.2838  , 357.3751 , 0 , 0 ) ;
     if(listitem == 30)  SetPlayerPosEx  ( playerid , -2136.3975 , 919.4185   , 79.5486  , 268.2998 , 0 , 0 ) ;
     if(listitem == 31)  SetPlayerPosEx  ( playerid , -1400.5747 , -291.2898  , 5.7002   , 353.6805 , 0 , 0 ) ;
     if(listitem == 32)  SetPlayerPosEx  ( playerid , 1615.3378  , -1659.0410 , 13.2405  , 184.4336 , 0 , 0 ) ;
     if(listitem == 33)  SetPlayerPosEx  ( playerid , 1651.2620  , -2599.9829 , 13.2465  , 269.8469 , 0 , 0 ) ;
     if(listitem == 34)  SetPlayerPosEx  ( playerid , 291.6453   , -1489.1570 , 32.3365  , 50.8979  , 0 , 0 ) ;
     if(listitem == 35)  SetPlayerPosEx  ( playerid , 1591.4022  , -2192.9214 , 13.0724  , 88.7810  , 0 , 0 ) ;
     if(listitem == 36)  SetPlayerPosEx  ( playerid , 1360.9453  , -2465.1997 , 7.3572   , 269.3084 , 0 , 0 ) ;
     if(listitem == 37)  SetPlayerPosEx  ( playerid , -2265.7798 , 1158.4409  , 57.0986  , 0.1581   , 0 , 0 ) ;
     if(listitem == 38)  SetPlayerPosEx  ( playerid , -2119.4114 , -349.4402  , 34.8226  , 270.5172 , 0 , 0 ) ;
     if(listitem == 39)  SetPlayerPosEx  ( playerid , 1476.5244  , 1758.5297  , 10.5100  , 181.3618 , 0 , 0 ) ;
     if(listitem == 40)  SetPlayerPosEx  ( playerid , 137.5619   , 1946.4087  , 19.0599  , 181.3618 , 0 , 0 ) ;
     if(listitem == 41)  SetPlayerPosEx  ( playerid , 2589.9761  , 2800.7749  , 10.3423  , 90.1578  , 0 , 0 ) ;
     if(listitem == 42)  SetPlayerPosEx  ( playerid , 1000.0231  , 2545.3728  , 10.3403  , 235.6451 , 0 , 0 ) ;
     if(listitem == 43)  SetPlayerPosEx  ( playerid , 1322.6106  , 2236.8350  , 10.4909  , 2.3974   , 0 , 0 ) ;
     if(listitem == 44)  SetPlayerPosEx  ( playerid , 1500.5153  , 994.9993   , 10.4639  , 90.1991  , 0 , 0 ) ;
     if(listitem == 45)  SetPlayerPosEx  ( playerid , 2050.2854  , 864.9113   , 6.4736   , 182.3646 , 0 , 0 ) ;
     if(listitem == 46)  SetPlayerPosEx  ( playerid , 2634.6064  , 1312.7318  , 10.4710  , 270.8752 , 0 , 0 ) ;
     if(listitem == 47)  SetPlayerPosEx  ( playerid , 1605.4539  , 2279.6563  , 10.4743  , 1.3359   , 0 , 0 ) ;
     if(listitem == 48)  SetPlayerPosEx  ( playerid , 2080.7761  , -1865.9845 , 13.0337  , 179.1301 , 0 , 0 ) ;
     if(listitem == 49)  SetPlayerPosEx  ( playerid , 1342.4817  , -1576.3361 , 13.0962  , 179.1301 , 0 , 0 ) ;
     if(listitem == 50)  SetPlayerPosEx  ( playerid , -318.4155  , 2518.4719  , 34.4178  , 276.3857 , 0 , 0 ) ;
     if(listitem == 51)  SetPlayerPosEx  ( playerid , 835.6555   , -878.2632  , 68.0216  , 238.8432 , 0 , 0 ) ;

}

    if(dialogid == 1002)
    {
     if(listitem == 0)   SetPlayerPosEx  ( playerid , 305.7045   , 1957.8314  , 17.6645  , 276.8851 , 0 , 0 ) ;
     if(listitem == 1)   SetPlayerPosEx  ( playerid , 401.9276   , 2530.5605  , 16.5542  , 110.5445 , 0 , 0 ) ;
     if(listitem == 2)   SetPlayerPosEx  ( playerid , -1361.5592 , -246.2338  , 14.2775 , 110.5445 , 0 , 0 ) ;
     if(listitem == 3)   SetPlayerPosEx  ( playerid , -1966.6527 , 288.7517   , 35.5596  , 110.5445 , 0 , 0 ) ;
     if(listitem == 4)   SetPlayerPosEx  ( playerid , 1869.3472  , -2359.4951 , 13.6643  , 110.5445 , 0 , 0 ) ;
     if(listitem == 5)   SetPlayerPosEx  ( playerid , 1596.5215  , 1448.4885  , 10.9179  , 110.5445 , 0 , 0 ) ;
}

    if(dialogid == 1003)
    {
     if(listitem == 0)   SetPlayerPosEx  ( playerid , 1838.4784  , -1450.1213 , 13.5628 , 344.1002 , 0 , 0 ) ;
     if(listitem == 1)   SetPlayerPosEx  ( playerid , 1967.3712  , -1423.8013 , 13.5749 , 98.4679  , 0 , 0 ) ;
     if(listitem == 2)   SetPlayerPosEx  ( playerid , 2470.7346  , -2574.3794 , 13.6596 , 332.5301 , 0 , 0 ) ;
     if(listitem == 3)   SetPlayerPosEx  ( playerid , 2791.0352  , -2515.0664 , 13.6303 , 77.8111  , 0 , 0 ) ;
     if(listitem == 4)   SetPlayerPosEx  ( playerid , 1685.5283  , 1449.5259  , 10.7699 , 270.4896 , 0 , 0 ) ;
     if(listitem == 5)   SetPlayerPosEx  ( playerid , 2236.2339  , 1376.1831  , 10.6985 , 270.4896 , 0 , 0 ) ;
     if(listitem == 6)   SetPlayerPosEx  ( playerid , 2805.2703  , 1612.0198  , 10.8203 , 168.9687 , 0 , 0 ) ;
     if(listitem == 7)   SetPlayerPosEx  ( playerid , -1997.1787 , -281.9577  , 35.4688 , 0.0805   , 0 , 0 ) ;
     if(listitem == 8)   SetPlayerPosEx  ( playerid , -2216.7144 , 313.4335   , 35.3203 , 270.8029 , 0 , 0 ) ;
     if(listitem == 9)   SetPlayerPosEx   ( playerid , -2268.1855 , -102.7652  , 35.3203 , 270.8029 , 0 , 0 ) ;
     if(listitem == 10)   SetPlayerPosEx  ( playerid , 2390.0061  , 989.2574   , 10.8203 , 90.6579  , 0 , 0 ) ;
     if(listitem == 11)   SetPlayerPosEx  ( playerid , 2012.7931  , 892.2557   , 10.8203 , 90.3446  , 0 , 0 ) ;
     if(listitem == 12)   SetPlayerPosEx  ( playerid , 1555.9927  , 1865.7771  , 10.8203 , 85.3312  , 0 , 0 ) ;
     if(listitem == 13)   SetPlayerPosEx  ( playerid , 2158.4373  , 2030.4443  , 10.8203 , 357.5971 , 0 , 0 ) ;
     if(listitem == 14)   SetPlayerPosEx  ( playerid , 1942.1293  , 2199.6780  , 10.8203 , 267.9829 , 0 , 0 ) ;
     if(listitem == 15)   SetPlayerPosEx  ( playerid , 1514.2864  , 2377.3728  , 10.8203 , 94.5703  , 0 , 0 ) ;
     if(listitem == 16)   SetPlayerPosEx  ( playerid , 1918.9674  , 2009.9940  , 10.7078 , 194.0858 , 0 , 0 ) ;
     if(listitem == 17)   SetPlayerPosEx  ( playerid , 2193.2122  , 2031.6221  , 10.8203 , 178.4939 , 0 , 0 ) ;
     if(listitem == 18)   SetPlayerPosEx  ( playerid , 2145.7131  , 1805.0660  , 10.8203 , 286.8470 , 0 , 0 ) ;
     if(listitem == 19)   SetPlayerPosEx  ( playerid , 2429.5564  , 1533.9346  , 10.8004 , 86.0109  , 0 , 0 ) ;
     if(listitem == 20)   SetPlayerPosEx  ( playerid , 2199.7300  , 1262.2203  , 10.8203 , 237.1365 , 0 , 0 ) ;
     if(listitem == 21)   SetPlayerPosEx  ( playerid , 2356.1052  , 1193.5247  , 10.7004 , 89.1197  , 0 , 0 ) ;
     if(listitem == 22)   SetPlayerPosEx  ( playerid , 2114.7466  , 1353.0156  , 10.8203 , 267.7866 , 0 , 0 ) ;
     if(listitem == 23)   SetPlayerPosEx  ( playerid , 2582.6667  , 1013.7090  , 10.6719 , 93.2548  , 0 , 0 ) ;
     if(listitem == 24)   SetPlayerPosEx  ( playerid , 1875.4185  , 933.6276   , 10.6719 , 274.7166 , 0 , 0 ) ;
     if(listitem == 25)   SetPlayerPosEx  ( playerid , 1759.3473  , 668.1772   , 10.8203 , 354.4148 , 0 , 0 ) ;
     if(listitem == 26)   SetPlayerPosEx  ( playerid , -2006.7167 , 88.4709    , 27.5391 , 179.9199 , 0 , 0 ) ;
     if(listitem == 27)   SetPlayerPosEx  ( playerid , -1622.9353 , -53.4803   , 3.5611  , 133.8166 , 0 , 0 ) ;
     if(listitem == 28)   SetPlayerPosEx  ( playerid , 742.1480   , -1443.1841 , 17.6953 , 89.1841  , 0 , 0 ) ;
     if(listitem == 29)   SetPlayerPosEx  ( playerid , 1041.4711  , -1632.5573 , 13.3828 , 356.2764 , 0 , 0 ) ;
     if(listitem == 30)   SetPlayerPosEx  ( playerid , 1368.2280  , -2210.5596 , 13.5469 , 270.4402 , 0 , 0 ) ;
     if(listitem == 31)   SetPlayerPosEx  ( playerid , 1713.1559  , -1133.6846 , 24.0859 , 182.3861 , 0 , 0 ) ;
     if(listitem == 32)   SetPlayerPosEx  ( playerid , 1881.7079  , -1436.9398 , 10.5262 , 329.5003 , 0 , 0 ) ;
     if(listitem == 33)   SetPlayerPosEx  ( playerid , 1872.3739  , -1425.9578 , 10.5097 , 271.9248 , 0 , 0 ) ;
     if(listitem == 34)   SetPlayerPosEx  ( playerid , 2087.3330  , -1342.3470 , 23.9844 , 86.1316  , 0 , 0 ) ;
     if(listitem == 35)   SetPlayerPosEx  ( playerid , 2532.5186  , -1725.2180 , 13.5469 , 171.1992 , 0 , 0 ) ;
     if(listitem == 36)   SetPlayerPosEx  ( playerid , 2583.3403  , -1673.1107 , 1.8015  , 357.3568 , 0 , 0 ) ;
     if(listitem == 37)   SetPlayerPosEx  ( playerid , 2574.8992  , -1939.9817 , 3.8594  , 180.2867 , 0 , 0 ) ;
     if(listitem == 38)   SetPlayerPosEx  ( playerid , 2648.4534  , -1455.5315 , 30.4579 , 67.0313  , 0 , 0 ) ;
     if(listitem == 39)   SetPlayerPosEx  ( playerid , 2579.5955  , -1430.5604 , 24.0000 , 89.2221  , 0 , 0 ) ;
     if(listitem == 40)   SetPlayerPosEx  ( playerid , 1070.9346  , -1330.8801 , 13.1202 , 54.3824  , 0 , 0 ) ;
     if(listitem == 41)   SetPlayerPosEx  ( playerid , 785.1093   , -1308.8334 , 13.1249 , 84.3701  , 0 , 0 ) ;
     if(listitem == 42)   SetPlayerPosEx  ( playerid , -2656.2554 , -201.1109  , 3.7615  , 357.7048 , 0 , 0 ) ;
     if(listitem == 43)   SetPlayerPosEx  ( playerid , -2041.0104 , 237.1225   , 34.7895 , 90.7133  , 0 , 0 ) ;
     if(listitem == 44)   SetPlayerPosEx  ( playerid , -1817.0345 , -177.8886  , 8.9681  , 86.1272  , 0 , 0 ) ;
     if(listitem == 45)   SetPlayerPosEx  ( playerid , 1772.0352  , -1886.5211 , 13.2836 , 178.8002 , 0 , 0 ) ;
     if(listitem == 46)   SetPlayerPosEx  ( playerid , 1698.1202  , -1599.1090 , 13.1184 , 180.7355 , 0 , 0 ) ;
     if(listitem == 47)   SetPlayerPosEx  ( playerid , 1408.6091  , -718.9258  , 91.0567 , 282.1646 , 0 , 0 ) ;
     if(listitem == 48)   SetPlayerPosEx  ( playerid , 2422.0229  , -2480.7009 , 13.1292 , 154.4170 , 0 , 0 ) ;
     if(listitem == 49)   SetPlayerPosEx  ( playerid , 2567.7158  , -2339.5640 , 13.1241 , 270.6072 , 0 , 0 ) ;
     if(listitem == 50)   SetPlayerPosEx  ( playerid , 2635.2781  , 1806.0548  , 10.5613 , 89.0868  , 0 , 0 ) ;
     if(listitem == 51)   SetPlayerPosEx  ( playerid , -2431.5378 , 470.2665   , 29.3949 , 306.7686 , 0 , 0 ) ;
     if(listitem == 52)   SetPlayerPosEx  ( playerid , 2091.5540  , 1019.1759  , 10.3769 , 249.9817 , 0 , 0 ) ;
     if(listitem == 53)   SetPlayerPosEx  ( playerid , 2606.5500  , 2320.2676  , 10.2433 , 173.0415 , 0 , 0 ) ;
     if(listitem == 54)   SetPlayerPosEx  ( playerid , 1841.8109  , 2348.6826  , 10.5259 , 260.0419 , 0 , 0 ) ;
     if(listitem == 55)   SetPlayerPosEx  ( playerid , 1139.5536  , -1519.7510 , 15.3363 , 357.7123 , 0 , 0 ) ;
     if(listitem == 56)   SetPlayerPosEx  ( playerid , -179.4252  , 1172.5590  , 19.3182 , 149.7300 , 0 , 0 ) ;
     if(listitem == 57)   SetPlayerPosEx  ( playerid , 2234.2903  , 1357.2488  , 10.3138 , 86.5064  , 0 , 0 ) ;
     if(listitem == 58)   SetPlayerPosEx  ( playerid , -1946.0704 , -568.2023  , 24.1570 , 184.8838 , 0 , 0 ) ;
     if(listitem == 59)   SetPlayerPosEx  ( playerid , 2126.1658  , -2226.0488 , 13.1028 , 301.6728 , 0 , 0 ) ;
     if(listitem == 60)   SetPlayerPosEx  ( playerid , 1930.2485  , -1976.5162 , 13.0854 , 258.3882 , 0 , 0 ) ;
     if(listitem == 61)   SetPlayerPosEx  ( playerid , 2466.8738  , -1880.4503 , 13.1160 , 90.9764  , 0 , 0 ) ;
     if(listitem == 62)   SetPlayerPosEx  ( playerid , -2402.8381 , 733.8307   , 35.0156 , 86.7624  , 0 , 0 ) ;
     if(listitem == 63)   SetPlayerPosEx  ( playerid , -2693.3220 , -184.8218  , 4.3359  , 89.5536  , 0 , 0 ) ;
     if(listitem == 64)   SetPlayerPosEx  ( playerid , 2850.9675  , -966.2324  , 18.8005 , 151.2177 , 0 , 0 ) ;
     if(listitem == 65)   SetPlayerPosEx  ( playerid , 1696.8821  , -1605.7622 , 13.5469 , 182.4701 , 0 , 0 ) ;
     if(listitem == 66)   SetPlayerPosEx  ( playerid , 1927.7153  , 2113.7710  , 10.8691 , 270.5226 , 0 , 0 ) ;
     if(listitem == 67)   SetPlayerPosEx  ( playerid , -1882.8744 , 728.9689   , 45.2969 , 271.0436 , 0 , 0 ) ;
     if(listitem == 68)   SetPlayerPosEx  ( playerid , -1632.3888 , 1098.3477  , 23.6172 , 15.1308  , 0 , 0 ) ;
     if(listitem == 69)   SetPlayerPosEx  ( playerid , 2804.9226  , -1428.5010 , 40.0539 , 187.1780 , 0 , 0 ) ;
     if(listitem == 70)   SetPlayerPosEx  ( playerid , -2713.8865 , 154.6022   , 4.2331  , 0.0000   , 0 , 0 ) ;
     if(listitem == 71)   SetPlayerPosEx  ( playerid , 840.6237   , -953.7637  , 49.2908 , 273.8736 , 0 , 0 ) ;
     if(listitem == 72)   SetPlayerPosEx  ( playerid , 2317.2905  , 2232.5093  , 10.6913 , 0.0000   , 0 , 0 ) ;
     if(listitem == 73)   SetPlayerPosEx  ( playerid , 2505.2195  , 1475.0026  , 10.8189 , 174.9337 , 0 , 0 ) ;
     if(listitem == 74)   SetPlayerPosEx  ( playerid , 1457.6940  , -1306.3654 , 13.3828 , 270.0000 , 0 , 0 ) ;
     if(listitem == 75)   SetPlayerPosEx  ( playerid , -1701.9529 , 1186.4015  , 24.5071 , 83.4712  , 0 , 0 ) ;
     if(listitem == 76)   SetPlayerPosEx  ( playerid , -1927.3737 , 332.1037   , 32.4970 , 342.5048 , 0 , 0 ) ;
     if(listitem == 77)   SetPlayerPosEx  ( playerid , -1945.1385 , 335.7273   , 33.4836 , 88.8832  , 0 , 0 ) ;
     if(listitem == 78)   SetPlayerPosEx  ( playerid , 1776.4548  , -1510.8235 , 10.2088 , 266.0813 , 0 , 0 ) ;
     if(listitem == 79)   SetPlayerPosEx  ( playerid , 1819.3479  , -1510.7700 , 5.4097  , 187.5967 , 0 , 0 ) ;
     if(listitem == 80)   SetPlayerPosEx  ( playerid , 1844.5967  , -1489.4877 , 12.9100 , 339.4789 , 0 , 0 ) ;
     if(listitem == 81)   SetPlayerPosEx  ( playerid , 1296.4586  , 1309.8015  , 10.3865 , 176.1627 , 0 , 0 ) ;
     if(listitem == 82)   SetPlayerPosEx  ( playerid , 2104.5378  , -1807.7749 , 13.0944 , 93.2779  , 0 , 0 ) ;
     if(listitem == 83)   SetPlayerPosEx  ( playerid , 1349.4357  , 1703.9800  , 10.3668 , 284.8614 , 0 , 0 ) ;
     if(listitem == 84)   SetPlayerPosEx  ( playerid , 1960.7589  , -1314.7559 , 22.8502 , 83.3587  , 0 , 0 ) ;
     if(listitem == 85)   SetPlayerPosEx  ( playerid , 2039.0411  , -1587.9512 , 12.5239 , 12.4090  , 0 , 0 ) ;
     if(listitem == 86)   SetPlayerPosEx  ( playerid , -2098.1897 , 301.2062   , 34.8403 , 90.9470  , 0 , 0 ) ;
     if(listitem == 87)   SetPlayerPosEx  ( playerid , 2185.8057  , 1521.3867  , 10.3755 , 179.6476 , 0 , 0 ) ;
     if(listitem == 88)   SetPlayerPosEx  ( playerid , 2066.0537  , 994.1709   , 10.2429 , 176.8168 , 0 , 0 ) ;
     if(listitem == 89)   SetPlayerPosEx  ( playerid , 1680.4369  , 1048.4880  , 10.3923 , 92.5699  , 0 , 0 ) ;
     if(listitem == 90)   SetPlayerPosEx  ( playerid , 1695.8557  , 1523.1504  , 10.3319 , 165.8681 , 0 , 0 ) ;
     if(listitem == 91)   SetPlayerPosEx  ( playerid , 2672.3889  , -2498.3562 , 13.2047 , 261.5885 , 0 , 0 ) ;
     if(listitem == 92)   SetPlayerPosEx  ( playerid , -2014.3385 , -276.1007  , 34.8836 , 359.6113 , 0 , 0 ) ;
     if(listitem == 93)   SetPlayerPosEx  ( playerid , 1941.2651  , 1399.0167  , 8.8330  , 178.9058 , 0 , 0 ) ;
     if(listitem == 94)   SetPlayerPosEx  ( playerid , -1634.8378 , 375.7322   , 6.7595  , 44.6940  , 0 , 0 ) ;
     if(listitem == 95)   SetPlayerPosEx  ( playerid , -2059.2092 , 134.4677   , 28.4060 , 275.2015 , 0 , 0 ) ;
     if(listitem == 96)   SetPlayerPosEx  ( playerid , 2586.9167  , 2061.6135  , 10.3754 , 97.4067  , 0 , 0 ) ;
     if(listitem == 97)   SetPlayerPosEx  ( playerid , 2436.0234  , 1994.4292  , 10.5475 , 267.0086 , 0 , 0 ) ;
     if(listitem == 98)   SetPlayerPosEx  ( playerid , 2307.4868  , 905.7120   , 10.3078 , 92.9695  , 0 , 0 ) ;
     if(listitem == 99)   SetPlayerPosEx  ( playerid , 2495.0046  , 1989.2766  , 10.6367 , 89.3095  , 0 , 0 ) ;
     if(listitem == 100)   SetPlayerPosEx  ( playerid , -2291.4038 , 952.7540   , 65.0419 , 84.5853  , 0 , 0 ) ;
     if(listitem == 101)   SetPlayerPosEx  ( playerid , -2300.3184 , 950.8419   , 63.4284 , 35.2217  , 0 , 0 ) ;
     if(listitem == 102)   SetPlayerPosEx  ( playerid , 1476.5929  , 1446.4818  , 10.3838 , 55.0061  , 0 , 0 ) ;
     if(listitem == 103)   SetPlayerPosEx  ( playerid , 1904.8752  , -1415.1919 , 13.2217 , 324.4286 , 0 , 0 ) ;
     if(listitem == 104)   SetPlayerPosEx  ( playerid , 1792.3301  , -1289.0291 , 13.1787 , 89.1871  , 0 , 0 ) ;
     if(listitem == 105)   SetPlayerPosEx  ( playerid , 1624.7928  , -1366.4513 , 17.0065 , 275.7897 , 0 , 0 ) ;
     if(listitem == 106)   SetPlayerPosEx  ( playerid , 1550.4929  , -1480.4656 , 13.1133 , 250.3159 , 0 , 0 ) ;
     if(listitem == 107)   SetPlayerPosEx  ( playerid , 1625.5887  , -1585.6399 , 13.2930 , 182.8268 , 0 , 0 ) ;
     if(listitem == 108)   SetPlayerPosEx  ( playerid , 1672.8940  , -1717.5358 , 20.0563 , 80.1370  , 0 , 0 ) ;
     if(listitem == 109)   SetPlayerPosEx  ( playerid , 896.2080   , -980.1295  , 36.8638 , 287.2697 , 0 , 0 ) ;
     if(listitem == 110)   SetPlayerPosEx  ( playerid , 1143.7324  , -963.4413  , 42.2678 , 10.8251  , 0 , 0 ) ;
     if(listitem == 111)   SetPlayerPosEx  ( playerid , 1232.3995  , -919.7686  , 42.6616 , 92.9951  , 0 , 0 ) ;
     if(listitem == 112)   SetPlayerPosEx  ( playerid , 1140.4969  , -885.6175  , 42.7360 , 181.1576 , 0 , 0 ) ;
     if(listitem == 113)   SetPlayerPosEx  ( playerid , 1090.6877  , -1004.4268 , 36.0649 , 266.5219 , 0 , 0 ) ;
     if(listitem == 114)   SetPlayerPosEx  ( playerid , 1154.2307  , -1006.9741 , 35.0918 , 89.0149  , 0 , 0 ) ;
     if(listitem == 115)   SetPlayerPosEx  ( playerid , 2153.8892  , 751.8683   , 10.3841 , 89.6354  , 0 , 0 ) ;
     if(listitem == 116)   SetPlayerPosEx  ( playerid , 2153.8892  , 751.8683   , 10.3909 , 89.6353  , 0 , 0 ) ;
     if(listitem == 117)   SetPlayerPosEx  ( playerid , 959.7513   , -1131.4341 , 23.2296 , 159.3905 , 0 , 0 ) ;
     if(listitem == 118)   SetPlayerPosEx  ( playerid , 2496.3689  , 1365.0255  , 10.3821 , 2.0533   , 0 , 0 ) ;
     if(listitem == 119)   SetPlayerPosEx  ( playerid , 2496.4138  , 1365.7086  , 10.3890 , 358.7229 , 0 , 0 ) ;
     if(listitem == 120)   SetPlayerPosEx  ( playerid , 2535.8264  , 1388.4344  , 10.5226 , 90.2861  , 0 , 0 ) ;
     if(listitem == 121)   SetPlayerPosEx  ( playerid , 941.5708   , -1419.0023 , 30.3437 , 182.4554 , 0 , 0 ) ;
     if(listitem == 122)   SetPlayerPosEx  ( playerid , 944.7605   , -1503.9529 , 33.7280 , 171.3036 , 0 , 0 ) ;
     if(listitem == 123)   SetPlayerPosEx  ( playerid , 1014.0103  , -979.3208  , 41.6815 , 13.6053  , 0 , 0 ) ;
     if(listitem == 124)   SetPlayerPosEx  ( playerid , 1237.4974  , -1718.3815 , 13.1196 , 84.1142  , 0 , 0 ) ;
     if(listitem == 125)   SetPlayerPosEx  ( playerid , -2363.2783 , 1083.7013  , 55.5781 , 266.2341 , 0 , 0 ) ;
     if(listitem == 126)   SetPlayerPosEx  ( playerid , 2295.4041  , 1372.7382  , 10.6719 , 93.6554  , 0 , 0 ) ;
     if(listitem == 127)   SetPlayerPosEx  ( playerid , 2089.4854  , 1422.0720  , 10.8203 , 267.3045 , 0 , 0 ) ;
     if(listitem == 128)   SetPlayerPosEx  ( playerid , 2188.4329  , 1537.5396  , 10.6982 , 182.9000 , 0 , 0 ) ;
     if(listitem == 129)   SetPlayerPosEx  ( playerid , -1646.1101 , 362.7070   , 7.1875  , 36.4009  , 0 , 0 ) ;
     if(listitem == 130)   SetPlayerPosEx  ( playerid , 2436.1772  , -1082.9213 , 41.7181 , 101.5564 , 0 , 0 ) ;
     if(listitem == 131)   SetPlayerPosEx  ( playerid , 2718.9561  , -1373.5729 , 40.1454 , 268.6008 , 0 , 0 ) ;
     if(listitem == 132)   SetPlayerPosEx  ( playerid , 2769.7017  , -1322.3781 , 39.2911 , 177.3660 , 0 , 0 ) ;
     if(listitem == 133)   SetPlayerPosEx  ( playerid , 2784.2632  , -1434.1880 , 30.0055 , 187.0532 , 0 , 0 ) ;
     if(listitem == 134)   SetPlayerPosEx  ( playerid , 2732.1636  , -1427.2058 , 30.5551 , 271.6069 , 0 , 0 ) ;
     if(listitem == 135)   SetPlayerPosEx  ( playerid , 2753.8362  , -1234.2258 , 70.1578 , 177.9255 , 0 , 0 ) ;
     if(listitem == 136)   SetPlayerPosEx  ( playerid , 2759.6702  , -1363.7240 , 71.1417 , 185.7031 , 0 , 0 ) ;
     if(listitem == 137)   SetPlayerPosEx  ( playerid , 2423.3242  , -1801.2001 , 13.0936 , 168.1136 , 0 , 0 ) ;
     if(listitem == 138)   SetPlayerPosEx  ( playerid , -261.5482  , 1521.3136  , 75.1261 , 42.8633  , 0 , 0 ) ;
     if(listitem == 139)   SetPlayerPosEx  ( playerid , 1183.1047  , 232.0056   , 21.1298 , 335.7980 , 0 , 0 ) ;
     if(listitem == 140)   SetPlayerPosEx  ( playerid , 1185.5118  , 149.5338   , 20.7551 , 340.8487 , 0 , 0 ) ;
     if(listitem == 141)   SetPlayerPosEx  ( playerid , 1570.9283  , -1730.2045 , 12.9535 , 180.1472 , 0 , 0 ) ;
     if(listitem == 142)   SetPlayerPosEx  ( playerid , 204.1481   , -325.8101  , 1.3696  , 359.9915 , 0 , 0 ) ;
     if(listitem == 143)   SetPlayerPosEx  ( playerid , 700.5405   , -374.9065  , 14.0246 , 164.1798 , 0 , 0 ) ;
     if(listitem == 144)   SetPlayerPosEx  ( playerid , 672.7584   , -455.7844  , 20.2101 , 269.8301 , 0 , 0 ) ;
     if(listitem == 145)   SetPlayerPosEx  ( playerid , 661.8369   , -491.1666  , 15.9075 , 254.7055 , 0 , 0 ) ;
     if(listitem == 146)   SetPlayerPosEx  ( playerid , 1023.2945  , 2064.8203  , 10.3681 , 270.1506 , 0 , 0 ) ;
     if(listitem == 147)   SetPlayerPosEx  ( playerid , 1031.5594  , 2074.3914  , 10.3928 , 267.8931 , 0 , 0 ) ;
}

    if(dialogid == 1003)
    {
     if(listitem == 0)   SetPlayerPosEx  ( playerid , 1715.1277  , 1088.2434  , 330.6500   , 344.1002 , 0 , 0 ) ;
     if(listitem == 1)   SetPlayerPosEx  ( playerid , -1802.6099 , 572.8833   , 234.8874   , 2.1006   , 0 , 0 ) ;
     if(listitem == 2)   SetPlayerPosEx  ( playerid , 1394.7571  , -2425.7009 , 525.6313   , 2.1006   , 0 , 0 ) ;
     if(listitem == 3)   SetPlayerPosEx  ( playerid , -3940.0056 , 1626.6289  , 13970.5850 , 1006     , 0 , 0 ) ;
     if(listitem == 4)   SetPlayerPosEx  ( playerid , 1660.0459  , -1240.4678 , 457.5993   , 1006     , 0 , 0 ) ;
     if(listitem == 5)   SetPlayerPosEx  ( playerid , 1720.2957  , 870.8887   , 601.0904   , 1006     , 0 , 0 ) ;
     if(listitem == 6)   SetPlayerPosEx  ( playerid , 815.1976   , 274.9286   , 706.0635   , 1006     , 0 , 0 ) ;
     if(listitem == 7)   SetPlayerPosEx  ( playerid , 194.3403   , -1504.7339 , 1443.3518  , 1006     , 0 , 0 ) ;
     if(listitem == 8)   SetPlayerPosEx  ( playerid , 1167.8527  , 2222.8770  , 512.3269   , 1006     , 0 , 0 ) ;
     if(listitem == 9)   SetPlayerPosEx  ( playerid , -2293.4656 , 409.2831   , 917.1097   , 1006     , 0 , 0 ) ;
     if(listitem == 10)   SetPlayerPosEx  ( playerid , -2915.8325 , 1544.2957  , 519.1661   , 1006     , 0 , 0 ) ;
     if(listitem == 11)   SetPlayerPosEx  ( playerid , -1880.6262 , -62.8293   , 693.2444   , 1006     , 0 , 0 ) ;
     if(listitem == 12)   SetPlayerPosEx  ( playerid , 2328.3696  , 974.3510   , 502.3567   , 1006     , 0 , 0 ) ;
     if(listitem == 13)   SetPlayerPosEx  ( playerid , 1946.1901  , -1926.2227 , 584.6550   , 1006     , 0 , 0 ) ;
     if(listitem == 14)   SetPlayerPosEx  ( playerid , 1022.6476  , -911.4803  , 420.5099   , 1006     , 0 , 0 ) ;
     if(listitem == 15)   SetPlayerPosEx  ( playerid , 358.3080   , -83.3970   , 558.4680   , 1006     , 0 , 0 ) ;
}

    if(dialogid == 1004)
    {
     if(listitem == 0)   SetPlayerPosEx  ( playerid , 2854.4302  , 2121.1450   , 10.8203  , 2.1006 , 0 , 0 ) ;
     if(listitem == 1)   SetPlayerPosEx  ( playerid , -106.4221  , -1638.1913  , 3.7266    , 2.1006 , 0 , 0 ) ;
     if(listitem == 2)   SetPlayerPosEx  ( playerid , 4741.756   , -4899.0366 , 8.495293   , 2.1006 , 0 , 0 ) ;
     if(listitem == 3)   SetPlayerPosEx  ( playerid , 5321.6890  , 5295.2842    , 5.7100   , 2.1006 , 0 , 0 ) ;
     if(listitem == 4)   SetPlayerPosEx  ( playerid , 3486.6631  , 473.9457     , 4.6750   , 2.1006 , 0 , 0 ) ;
     if(listitem == 5)   SetPlayerPosEx  ( playerid , -3211.44   , 1904.06     , 11.06    , 2.1006 , 0 , 0 ) ;
     if(listitem == 6)   SetPlayerPosEx  ( playerid , 737.062    , -3144.787  , 9.229     , 2.1006 , 0 , 0 ) ;
     if(listitem == 7)   SetPlayerPosEx  ( playerid , 765.6458   , -2861.4758 , 3.8416   , 2.1006 , 0 , 0 ) ;
     if(listitem == 8)   SetPlayerPosEx  ( playerid , -2013.7858 , 470.9755   , 35.1719 , 2.1006 , 0 , 0 ) ;
     if(listitem == 9)   SetPlayerPosEx  ( playerid , -2705.7908 , 412.5124   , 4.1728  , 2.1006 , 0 , 0 ) ;
     if(listitem == 10)   SetPlayerPosEx  ( playerid , 2458.4648  , -1768.0040 , 13.5719 , 2.1006 , 0 , 0 ) ;
     if(listitem == 11)   SetPlayerPosEx  ( playerid , -2387.5383 , 2947.8909 , 361.6867 , 1006 , 0 , 0 ) ;
}
    return 1;
}
Reply
#2

Anyone?
Reply
#3

Yeah you need to create that string in a variable using strcat() and all your if(listitem == ) statements should be a switch() that is a really bad design choice right now.

There is one more option and by far this is my favorite and most recommended tried tested and true anyone serious about scripting would do this. Use Slices strlib you can download it here https://github.com/oscar-broman/strl...ter/strlib.inc there is a wonderful function called strimplode() Let me show you an example.

pawn Код:
#include <a_samp>
#include <strlib>

main() {

    new MyDialogString[1024];
   
    strimplode("",
        MyDialogString,
        sizeof(MyDialogString),
        "Drift1\nDrift2\nDrift3\nDrift4\nDrift5\nDrift6\nDrift7\nDrift8\nDrift9\nDrift10\n",
        "Drift11\nDrift12\nDrift13\nDrift14\nDrift15\nDrift16\nDrift17\nDrift18\nDrift19\n",
        "Drift20\nDrift21\nDrift22\nDrift23\nDrift24\nDrift25\nDrift26\nDrift27\nDrift28\n",
        "Drift29\nDrift30\nDrift31\nDrift32\nDrift33\nDrift34\nDrift35\nDrift36\nDrift37\n",
        "Drift38\nDrift39\nDrift40\nDrift41\nDrift42\nDrift43\nDrift44\nDrift45\nDrift46\n",
        "Drift47\nDrift48\nDrift49\nDrift50\nDrift51"
    );

    print(MyDialogString);
}
Try running this code here.

http://slice-vps.nl:7070/
Reply
#4

I compile it without warnings, and when i go in game menu shows and wont tp me...

and btw can i make that like this?

pawn Код:
case 1:   SetPlayerPosEx  ( playerid , -329.3348  , 1536.3771  , 76.6117  , 276.8851 , 0 , 0 ) ;
        case 2:   SetPlayerPosEx  ( playerid , 2265.3010  , 1399.5085  , 42.8203  , 110.5445 , 0 , 0 ) ;
        case 3:   SetPlayerPosEx  ( playerid , -2489.8352 , -616.3492  , 132.5658 , 110.5445 , 0 , 0 ) ;
        case 4:   SetPlayerPosEx  ( playerid , 2243.2185  , 1963.3853  , 31.7797  , 110.5445 , 0 , 0 ) ;
        case 6:   SetPlayerPosEx  ( playerid , 1886.9543  , 1813.2212  , 18.9339  , 110.5445 , 0 , 0 ) ;
        case 7:   SetPlayerPosEx  ( playerid , -766.7427  , -1730.1228 , 95.9759  , 110.5445 , 0 , 0 ) ;
        case 8:   SetPlayerPosEx  ( playerid , 711.8475   , 2581.5981  , 25.2460  , 110.5445 , 0 , 0 ) ;
        case 9:   SetPlayerPosEx  ( playerid , -2418.8452 , 81.8775    , 34.6797  , 110.5445 , 0 , 0 ) ;
        case 10:  SetPlayerPosEx  ( playerid , 915.9879   , -685.1018  , 116.0321 , 148.8388 , 0 , 0 ) ;
        case 11:  SetPlayerPosEx  ( playerid , -771.1682  , -100.2281  , 64.8293  , 290.6883 , 0 , 0 ) ;
Reply
#5

Help
Reply
#6

Anyone
Reply
#7

You need to put
Код:
if(response)
Reply
#8

Quote:
Originally Posted by BlackHorse
Посмотреть сообщение
You need to put
Код:
if(response)
It's supposed he used switch(listitem) after the response and that's the cases of the listitem's value.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)