->BRAUCHE HILFE<- Script Errors

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
  • Hey ich hab einige Errors:


    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(1582) : error 001: expected token: "}", but found "-string-"
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(1583) : error 010: invalid function or declaration
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19253) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19253) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19455) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19455) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19491) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19491) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19573) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19573) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19855) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19855) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19888) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19888) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20111) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20111) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20121) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20121) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20151) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20151) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20195) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20195) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20205) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20205) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20235) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20235) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20464) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20464) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20511) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20511) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20523) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20523) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20535) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20535) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20593) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20593) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20671) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20671) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20739) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20739) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20882) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20882) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20892) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20892) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20913) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20913) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20948) : error 029: invalid expression, assumed zero
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20948) : warning 215: expression has no effect
    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(20956) : error 029: invalid expression, assumed zero




    In der Zeile 1582 sind die Frak definiert:
    #define MAX_FRACS 26
    new Fracs[MAX_FRACS][20] = {
    "LSPD",
    "FBI",
    "Army",
    "Arzt",
    "LCN",
    "Yakuza",
    "Präsident",
    "Hitman",
    "CNN",
    "Taxi",
    "Fahrlehrer",
    "Triaden",
    "Grove Street",
    "Ballas",
    "SF Biker Club",
    "Vagos",
    "Varrios Aztecas",
    "L.S Rifas",
    "Red Soldiers",
    "Terroristen",
    "Wheelmen Agency",
    "",
    "Brigada",
    "Ordnungsamt",
    "Special Forces"
    "SFPD"
    };


    Die Zeile 1582 ist die Zeile mit 'SFPD'

  • Der nächste Error:


    C:\Users\Malte\Desktop\GAR-Script(10.12.11) 0.3d\gamemodes\Release.pwn(19253) : error 029: invalid expression, assumed zero


    Die dazugehörige Zeile: cmd = strtok(cmdtext, idx);

  • Meinst du diese?


    #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1