Warum 26 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

  • cache_get_data(rows,fields);
    public LoadAccountVehicles(playerid,slot)
    {



    new result[25],rows,fields;
    if(rows)
    {
    cache_get_field_content(0,"name",result);
    strmid(Pfahrzeug[slot][playerid][Besitzer],result,0,strlen(result),24);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"modelid",result);
    Pfahrzeug[slot][playerid][modelid] = strval(result);
    strdel(result,0,sizeof(result));
    mysql_query(0,"x",result);
    Pfahrzeug[slot][playerid][posx] = floatstr(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"y",result);
    Pfahrzeug[slot][playerid][posy] = floatstr(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"z",result);
    Pfahrzeug[slot][playerid][posz] = floatstr(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"a",result);
    Pfahrzeug[slot][playerid][posa] = floatstr(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"interior",result);
    Pfahrzeug[slot][playerid][Interior] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"world",result);
    Pfahrzeug[slot][playerid][VirtualWorld] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"cc1",result);
    Pfahrzeug[slot][playerid][Colour1] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"cc2",result);
    Pfahrzeug[slot][playerid][Colour2] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"paintjob",result);
    Pfahrzeug[slot][playerid][Paintjob] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"vehhp",result);
    Pfahrzeug[slot][playerid][HP] = floatstr(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"abgeschlossen",result);
    Pfahrzeug[slot][playerid][Abgeschlossen] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t1",result);
    Pfahrzeug[slot][playerid][Spoiler] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t2",result);
    Pfahrzeug[slot][playerid][Hood] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t3",result);
    Pfahrzeug[slot][playerid][Roof] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t4",result);
    Pfahrzeug[slot][playerid][Sideskirt] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t5",result);
    Pfahrzeug[slot][playerid][Lamps] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t6",result);
    Pfahrzeug[slot][playerid][Nitro] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t7",result);
    Pfahrzeug[slot][playerid][Exhaust] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t8",result);
    Pfahrzeug[slot][playerid][Wheels] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t9",result);
    Pfahrzeug[slot][playerid][Stereo] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t10",result);
    Pfahrzeug[slot][playerid][Hydraulics] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t11",result);
    Pfahrzeug[slot][playerid][FrontBumper] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t12",result);
    Pfahrzeug[slot][playerid][RearBumper] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t13",result);
    Pfahrzeug[slot][playerid][VentRight] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"t14",result);
    Pfahrzeug[slot][playerid][VentLeft] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"angemeldet",result);
    Pfahrzeug[slot][playerid][Angemeldet] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"atime",result);
    Pfahrzeug[slot][playerid][AnmeldeTime] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"atAnmeldung",result);
    Pfahrzeug[slot][playerid][AnAnmeldung] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"preis",result);
    Pfahrzeug[slot][playerid][Preis] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"nummernschild",result);
    strmid(Pfahrzeug[slot][playerid][Nummernschild],result,0,strlen(result),64);
    strdel(result,0,sizeof(result));
    Pfahrzeug[slot][playerid][Vehicle] = CreateVehicleEx(Pfahrzeug[slot][playerid][modelid],Pfahrzeug[slot][playerid][posx],Pfahrzeug[slot][playerid][posy],Pfahrzeug[slot][playerid][posz],Pfahrzeug[slot][playerid][posa],Pfahrzeug[slot][playerid][Colour1],Pfahrzeug[slot][playerid][Colour2],-1);
    cache_get_field_content(0,"neon",result);
    vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Neon] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"motordown",result);
    MotorDown[Pfahrzeug[slot][playerid][Vehicle]] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"tank",result);
    vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Tank] = floatstr(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"km",result);
    vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Kilometer] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"towed",result);
    vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Abgeschleppt] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"towedfreeprice",result);
    vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][AbgeschlepptPreis] = strval(result);
    strdel(result,0,sizeof(result));
    cache_get_field_content(0,"towedreason",result);
    strmid(vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][AbgeschlepptGrund],result,0,strlen(result),128);
    VehicleTuning(playerid,slot);
    }
    return 1;
    }




    (2986) : warning 235: public function lacks forward declaration (symbol "FVehicleSpawner")
    (2989) : error 017: undefined symbol "CreateVehicleEx"
    (2990) : error 017: undefined symbol "FVehicleTuning"
    (3258) : warning 219: local variable "modelid" shadows a variable at a preceding level
    (3259) : warning 213: tag mismatch
    (3259) : warning 213: tag mismatch
    (3259) : warning 213: tag mismatch
    (3259) : warning 213: tag mismatch
    (3259) : warning 205: redundant code: constant expression is zero
    (3258) : warning 204: symbol is assigned a value that is never used: "modelid"
    (3258 -- 3267) : warning 219: local variable "modelid" shadows a variable at a preceding level
    (3268) : warning 213: tag mismatch
    (3268) : warning 213: tag mismatch
    (3268) : warning 205: redundant code: constant expression is zero
    (3267) : warning 204: symbol is assigned a value that is never used: "modelid"
    (3267 -- 3276) : warning 219: local variable "modelid" shadows a variable at a preceding level
    (3277) : warning 213: tag mismatch
    (3277) : warning 213: tag mismatch
    (3277) : warning 205: redundant code: constant expression is zero
    (3276) : warning 204: symbol is assigned a value that is never used: "modelid"
    (13646) : warning 202: number of arguments does not match definition
    (13646) : warning 202: number of arguments does not match definition
    (13647) : warning 202: number of arguments does not match definition
    (13647) : warning 202: number of arguments does not match definition
    (13647) : warning 202: number of arguments does not match definition
    (13647) : warning 202: number of arguments does not match definition
    (16098) : error 017: undefined symbol "VehicleTuning"
    (16106) : error 017: undefined symbol "FVehicleTuning"
    (16135) : warning 235: public function lacks forward declaration (symbol "LoadAccountVehicles")
    (16141) : error 017: undefined symbol "cache_get_field_content"
    (16144) : error 017: undefined symbol "cache_get_field_content"
    (16147) : error 035: argument type mismatch (argument 1)
    (16150) : error 017: undefined symbol "cache_get_field_content"
    (16153) : error 017: undefined symbol "cache_get_field_content"
    (16156) : error 017: undefined symbol "cache_get_field_content"
    (16159) : error 017: undefined symbol "cache_get_field_content"
    (16162) : error 017: undefined symbol "cache_get_field_content"
    (16165) : error 017: undefined symbol "cache_get_field_content"
    (16168) : error 017: undefined symbol "cache_get_field_content"
    (16171) : error 017: undefined symbol "cache_get_field_content"
    (16174) : error 017: undefined symbol "cache_get_field_content"
    (16177) : error 017: undefined symbol "cache_get_field_content"
    (16180) : error 017: undefined symbol "cache_get_field_content"
    (16183) : error 017: undefined symbol "cache_get_field_content"
    (16186) : error 017: undefined symbol "cache_get_field_content"
    (16189) : error 017: undefined symbol "cache_get_field_content"
    (16192) : error 017: undefined symbol "cache_get_field_content"
    (16195) : error 017: undefined symbol "cache_get_field_content"
    (16198) : error 017: undefined symbol "cache_get_field_content"
    (16201) : error 017: undefined symbol "cache_get_field_content"
    (16204) : error 017: undefined symbol "cache_get_field_content"



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




    26 Errors.


    Brauche hilfe bitte

    4 Mal editiert, zuletzt von SyroX. ()

  • Bitte verwende den pwn BB-Code.
    So kann man deinen Code nicht lesen.

  • er kann es aber testen ob es ein klammerfehler ist.
    Notepad++ öffnen und { & } zählen, wenn ein unterschied ist einfach dann immer public für public dann kann er es recht schnell eingrenzen.

    Oder man Copy & Pasted nicht und schreibt selber, somit macht man keine Fehler :3
    Mit Notepad++ wärs ne Möglichkeit ja.

  • Beitrag von EinfachMax ()

    Dieser Beitrag wurde von shoxinat0r gelöscht ().