Script nimmt es nicht an

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Guten Tag,


    ich wollte die ConnectScreens von meinem Reallife-Script ins andere Script übernehmen aber irgendwie nimmt es das andere Script nicht an.


    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(68) : error 020: invalid symbol name ""
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(82) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(143) : error 017: undefined symbol "ConnectScreens"
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(143) : error 029: invalid expression, assumed zero
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(143) : warning 215: expression has no effect
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(144) : error 017: undefined symbol "ConnectScreens"
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(144) : warning 215: expression has no effect
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(144) : error 001: expected token: ";", but found "]"
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(144) : error 029: invalid expression, assumed zero
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(144) : fatal error 107: too many error messages on one line


    new
    Float:ConnectScreens[][12] =
    {
    {520.2170,-2692.4917,29.3045,1235.5430,-1463.7256,74.6906,747.2897,-2289.2334,64.1871,1122.9785,-1407.2343,13.5950},
    {53.6547,-1586.2760,26.7310,876.0851,-2090.6841,40.6382,61.3627,-1818.8397,47.4056,1024.5706,-2296.0784,13.7134},
    {1261.3978,-1722.0037,67.4569,1415.4402,-898.3368,87.6301,1289.5490,-1520.8237,73.2041,1411.4337,-794.5302,83.3253},
    {1784.3033,-597.3705,95.6802,1566.5531,-1458.7645,109.8957,1720.1119,-872.3080,124.4788,1650.6624,-1270.5499,167.7315},
    {2179.6963,-2628.3022,77.8332,885.0618,-1328.0720,118.5268,1898.4176,-2354.3845,123.7600,623.0933,-1110.3800,47.0504},
    {-1044.9408,-215.4975,84.4178,-1667.7992,350.5618,116.7567,-1177.6682,-97.3794,110.4821,-2014.7004,173.4432,28.0117},
    {-1229.8804,1593.9078,52.7923,-1897.5474,852.1777,201.4786,-1332.3214,1466.9569,77.9798,-2075.1218,935.9204,63.7470},
    {-1620.8463,591.4999,55.2822,-698.5134,1560.7783,110.1220,-1476.8268,747.3513,70.6085,-717.8945,2053.0803,61.6994},
    {-316.1945,2479.6963,693.2885,2018.4460,1827.1375,175.5408,466.3758,2267.2295,426.5731,2377.1750,1213.2058,7.3407},
    {2375.4080,-934.6560,287.3531,1652.3013,-1574.9175,76.2145,2293.1292,-1021.5800,271.7159,1734.9792,-1637.7188,13.4575},
    {1034.5844,-966.8074,71.0640,1326.2223,-922.3495,55.9383,1197.6421,-905.2455,61.0205,1426.9155,-949.3417,36.1370}
    };


    public SetConnect(playerid)
    {
    new randcam = random(sizeof(ConnectScreens));
    SetPlayerPos(playerid,ConnectScreens[randcam][9],ConnectScreens[randcam][10],ConnectScreens[randcam][11]);
    InterpolateCameraPos(playerid,ConnectScreens[randcam][0],ConnectScreens[randcam][1],ConnectScreens[randcam][2],ConnectScreens[randcam][3],ConnectScreens[randcam][4],ConnectScreens[randcam][5],30000,CAMERA_MOVE);
    InterpolateCameraLookAt(playerid,ConnectScreens[randcam][6],ConnectScreens[randcam][7],ConnectScreens[randcam][8],ConnectScreens[randcam][9],ConnectScreens[randcam][10],ConnectScreens[randcam][11],30000,CAMERA_MOVE);
    SetTimerEx("ShowLoginOrRegisterDialog",15000,0,"i",playerid);
    return 1;
    }