>> Noch 6 Errors im /cam Befehl <<

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
  • Hallo guck euch das an, wo ist da der Fehler,
    heute mal nicht so einen langen Text.
    C:\Users\steffen\Dropbox\Scripting Unterricht 1\gamemodes\su.pwn(1370) : error 017: undefined symbol "tmp"
    C:\Users\steffen\Dropbox\Scripting Unterricht 1\gamemodes\su.pwn(1370) : error 017: undefined symbol "idx"
    C:\Users\steffen\Dropbox\Scripting Unterricht 1\gamemodes\su.pwn(1371) : error 017: undefined symbol "tmp"
    C:\Users\steffen\Dropbox\Scripting Unterricht 1\gamemodes\su.pwn(1371) : warning 215: expression has no effect
    C:\Users\steffen\Dropbox\Scripting Unterricht 1\gamemodes\su.pwn(1371) : error 001: expected token: ";", but found "]"
    C:\Users\steffen\Dropbox\Scripting Unterricht 1\gamemodes\su.pwn(1371) : error 029: invalid expression, assumed zero
    C:\Users\steffen\Dropbox\Scripting Unterricht 1\gamemodes\su.pwn(1371) : fatal error 107: too many error messages on one line


    Codes


    if (strcmp("/cam", cmdtext, true) == 0)
    {
    if(IsPlayerInFrak(playerid,5))
    {
    tmp=strtok(cmdtext,idx);
    if(!tmp[0]&&cam[playerid]==0)return SendClientMessage(playerid,grau,"INFO: /cam [1-21]");
    if(cam[playerid]==0)
    {
    GetPlayerPos(playerid,camx[playerid],camy[playerid],camz[playerid]);
    }
    if(!strcmp(tmp,"1",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,231.7735,1932.0070,34.4239);
    SetPlayerCameraLookAt(playerid,189.3751,1859.5304,20.6406);
    SetPlayerPos(playerid, 231.7735,1932.0070,0.0);
    cam[playerid]=1;
    return 1;
    }
    if(!strcmp(tmp,"2",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,264.7535,1809.4807,34.6439);
    SetPlayerCameraLookAt(playerid,285.0774,1818.8397,25.3777);
    SetPlayerPos(playerid, 264.7535,1809.4807,0.0);
    cam[playerid]=2;
    return 1;
    }
    if(!strcmp(tmp,"3",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,228.1847,1871.3489,13.7344);
    SetPlayerCameraLookAt(playerid,237.5471,1873.4053,11.4609);
    SetPlayerPos(playerid, 228.1847,1871.3489,0.0);
    cam[playerid]=3;
    return 1;
    }
    if(!strcmp(tmp,"4",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,264,1853,11);
    SetPlayerCameraLookAt(playerid,276.3690,1863.1069,8.7578);
    SetPlayerPos(playerid, 264,1853,0.0);
    cam[playerid]=4;
    return 1;
    }
    if(!strcmp(tmp,"5",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,237.5940,1931.3110,25.5000);
    SetPlayerCameraLookAt(playerid,267.9410,1942.4408,24.3273);
    SetPlayerPos(playerid, 237.5940,1931.3110,0.0);
    cam[playerid]=5;
    return 1;
    }
    if(!strcmp(tmp,"6",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,107.9837,1904.8513,25.5000);
    SetPlayerCameraLookAt(playerid,97.4680,1920.7285,18.1660);
    SetPlayerPos(playerid, 107.9837,1904.8513,0.0);
    cam[playerid]=6;
    return 1;
    }
    if(!strcmp(tmp,"7",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,15.5797,1733.6476,24.9375);
    SetPlayerCameraLookAt(playerid,109.5470,1818.0520,22.9922);
    SetPlayerPos(playerid, 15.5797,1733.6476,0.0);
    cam[playerid]=7;
    return 1;
    }
    if(!strcmp(tmp,"8",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,248.5760,1714.3149,22.4436);
    SetPlayerCameraLookAt(playerid,362.5964,1786.9498,17.2266);
    SetPlayerPos(playerid, 248.5760,1714.3149,0.0);
    cam[playerid]=8;
    return 1;
    }
    if(!strcmp(tmp,"9",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,339.6473,1794.2670,28.6956);
    SetPlayerCameraLookAt(playerid,336.2945,1705.8619,20.4763);
    SetPlayerPos(playerid, 339.6473,1794.2670,0.0);
    cam[playerid]=9;
    return 1;
    }
    if(!strcmp(tmp,"10",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,349.7342,1800.4531,28.8598);
    SetPlayerCameraLookAt(playerid,465.1957,1805.1727,25.3424);
    SetPlayerPos(playerid, 349.7342,1800.4531,0.0);
    cam[playerid]=10;
    return 1;
    }
    if(!strcmp(tmp,"11",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,350.2905,2079.5095,18.6438);
    SetPlayerCameraLookAt(playerid,286.0323,2005.1821,17.6406);
    SetPlayerPos(playerid, 350.2905,2079.5095,0.0);
    cam[playerid]=11;
    return 1;
    }
    if(!strcmp(tmp,"12",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,287.8061,1997.9141,17.6406);
    SetPlayerCameraLookAt(playerid,348.3986,1929.9789,17.6406);
    SetPlayerPos(playerid, 287.8061,1997.9141,0.0);
    cam[playerid]=12;
    return 1;
    }
    if(!strcmp(tmp,"13",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,264.7462,1863.3950,8.7649);
    SetPlayerCameraLookAt(playerid,272.7512,1854.0067,8.7649);
    SetPlayerPos(playerid, 264.7462,1863.3950,0.0);
    cam[playerid]=13;
    return 1;
    }
    if(!strcmp(tmp,"14",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,274.0807,1864.2920,8.7578);
    SetPlayerCameraLookAt(playerid,283.8452,1871.2695,8.7578);
    SetPlayerPos(playerid, 274.0807,1864.2920,0.0);
    cam[playerid]=14;
    return 1;
    }
    if(!strcmp(tmp,"15",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,295.6866,1841.9790,7.8281);
    SetPlayerCameraLookAt(playerid,305.9611,1837.6068,7.7266);
    SetPlayerPos(playerid, 295.6866,1841.9790,0.0);
    cam[playerid]=15;
    return 1;
    }
    if(!strcmp(tmp,"16",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,275.6935,1819.9670,7.8281);
    SetPlayerCameraLookAt(playerid,275.6935,1819.9670,7.8281);
    SetPlayerPos(playerid, 275.6935,1819.9670,0.0);
    cam[playerid]=16;
    return 1;
    }
    if(!strcmp(tmp,"17",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,-1318.9293,488.9033,11.1953);
    SetPlayerCameraLookAt(playerid,-1299.2465,501.6598,11.1953);
    SetPlayerPos(playerid, -1318.9293,488.9033,0.0);
    cam[playerid]=17;
    return 1;
    }
    if(!strcmp(tmp,"18",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,-1466.9995,514.0992,18.2363);
    SetPlayerCameraLookAt(playerid,-1440.6366,501.7179,18.2344);
    SetPlayerPos(playerid, -1466.9995,514.0992,0.0);
    cam[playerid]=18;
    return 1;
    }
    if(!strcmp(tmp,"19",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,-1246.2357,496.8994,18.2344);
    SetPlayerCameraLookAt(playerid,-1273.0341,508.8567,18.2344);
    SetPlayerPos(playerid, -1246.2357,496.8994,0.0);
    cam[playerid]=19;
    return 1;
    }
    if(!strcmp(tmp,"20",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,-381.1426,1516.8354,79.9731);
    SetPlayerCameraLookAt(playerid,-349.9988,1552.5709,75.5601);
    SetPlayerPos(playerid, -381.1426,1516.8354,0.0);
    cam[playerid]=20;
    return 1;
    }
    if(!strcmp(tmp,"21",true))
    {
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraPos(playerid,201.4384,1874.2185,13.1406);
    SetPlayerCameraLookAt(playerid,214.6171,1866.2391,13.1406);
    SetPlayerPos(playerid, 201.4384,1874.2185,0.0);
    cam[playerid]=21;
    return 1;
    }
    if(!strcmp(tmp,"stop",true))
    {
    if(cam[playerid]>0)
    {
    SetPlayerPos(playerid,camx[playerid],camy[playerid],camz[playerid]);
    cam[playerid]=0;
    TogglePlayerControllable(playerid,1);
    SetCameraBehindPlayer(playerid);
    SendClientMessage(playerid,grau,"Du schaust nicht mehr auf die Kameras.");
    return 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid,weiss,"Du bist kein Mitglied der Army");
    }
    }


    Es ist nicht aus den Monat-Script kopiert.
    Bittee um hilfe