Beiträge von Mafiathne

    Kannst du mir das mal anpassen?



    /*x---------------------------------Important-------------------------------------x*/
    //**INCLUDES**//
    #include <a_samp>
    /*x---------------------------------Defining-------------------------------------x*/
    //**VARIABLES**//
    new Text:Text[100];
    new gametextdrawforplayer;
    new gametextdraw;
    //**FORWARDS**//
    forward GameTextRemoval(textid);
    //**NATIVES**//
    /*
    native DisplayTextForPlayer(playerid, text[], time, font);
    native DisplayTextForAll(text[], time, font);
    */
    /*x---------------------------------CallBacks-------------------------------------x*/
    stock DisplayTextForPlayer(playerid, text[], time, font, COLOR_GREY1, COLOR_RED1) // Max Fonts: 3(0-3) <-> Max Styles: 4(1-4)
    {
    if (gametextdrawforplayer >= 99) gametextdrawforplayer = 0;
    gametextdrawforplayer++;
    Text[gametextdrawforplayer] = TextDrawCreate(COLOR__GREY1,COLOR__RED1,text);
    TextDrawAlignment(Text[gametextdrawforplayer],2);
    TextDrawBackgroundColor(Text[gametextdrawforplayer],0x000000ff);
    TextDrawFont(Text[gametextdrawforplayer],font);
    TextDrawLetterSize(Text[gametextdrawforplayer],0.600000,2.400000);
    TextDrawColor(Text[gametextdrawforplayer],0xffffffff);
    TextDrawSetOutline(Text[gametextdrawforplayer],1);
    TextDrawSetProportional(Text[gametextdrawforplayer],1);
    TextDrawSetShadow(Text[gametextdrawforplayer],1);
    TextDrawShowForPlayer(playerid,Text[gametextdrawforplayer]);
    SetTimerEx("GameTextRemoval",time*1000,false,"d",gametextdrawforplayer);
    }


    stock DisplayTextForAll(text[], time, font, COLOR_GREY1, COLOR_RED1) // Max Fonts: 3(0-3) <-> Max Styles: 4(1-4)
    {
    if (gametextdraw >= 99) gametextdraw = 0;
    Text[gametextdraw] = TextDrawCreate(COLOR_GREY1, COLOR_RED1,text);
    TextDrawAlignment(Text[gametextdraw],2);
    TextDrawBackgroundColor(Text[gametextdraw],0x000000ff);
    TextDrawFont(Text[gametextdraw],font);
    TextDrawLetterSize(Text[gametextdraw],0.600000,2.400000);
    TextDrawColor(Text[gametextdraw],0xffffffff);
    TextDrawSetOutline(Text[gametextdraw],1);
    TextDrawSetProportional(Text[gametextdraw],1);
    TextDrawSetShadow(Text[gametextdraw],1);
    TextDrawShowForAll(Text[gametextdraw]);
    SetTimerEx("GameTextRemoval",time*1000,false,"d",gametextdraw);
    }


    public GameTextRemoval(textid)
    {
    TextDrawDestroy(Text[textid]);
    return true;
    }


    Blicke dort einfach nicht durch :(

    Hallo Zusammen,
    habe derzeit ein problem was mich bissle aufregt das ich es nicht hinbekommen.
    Habe eine Fehlermeldung und viele warnings, kann mir jemand so nett sein und dem
    Verzweifelten Muffin sagen was er falsch macht?



    \include\seif_text.inc(19) : warning 219: local variable "COLOR_GREY" shadows a variable at a preceding level
    \include\seif_text.inc(19) : warning 219: local variable "COLOR_RED" shadows a variable at a preceding level
    \include\seif_text.inc(36) : warning 219: local variable "COLOR_GREY" shadows a variable at a preceding level
    seif_text.inc(36) : warning 219: local variable "COLOR_RED" shadows a variable at a preceding level
    name.pwn(317) : error 017: undefined symbol "SetDisabledWeapons"
    name.pwn(667) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
    name.pwn(807) : warning 202: number of arguments does not match definition
    name.pwn(1502) : warning 202: number of arguments does not match definition
    name.pwn(1560) : warning 202: number of arguments does not match definition
    name.pwn(1585) : warning 202: number of arguments does not match definition
    name.pwn(1597) : warning 202: number of arguments does not match definition
    name.pwn(1913) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
    name.pwn(2391) : warning 202: number of arguments does not match definition
    name.pwn(2532) : warning 202: number of arguments does not match definition
    name.pwn(2585) : warning 202: number of arguments does not match definition
    name.pwn(2655) : warning 202: number of arguments does not match definition
    name.pwn(2663) : warning 202: number of arguments does not match definition
    name.pwn(2675) : warning 202: number of arguments does not match definition
    name.pwn(2687) : warning 202: number of arguments does not match definition
    name.pwn(3038) : warning 203: symbol is never used: "COLOR_GREY"
    name.pwn(3038) : warning 203: symbol is never used: "COLOR_RED"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.


    Ich hoffe mir kann einer helfen...

    erledigt nun kommt das:

    larp.pwn(761) : error 025: function heading differs from prototype
    larp.pwn(766) : error 025: function heading differs from prototype
    larp.pwn(771) : error 025: function heading differs from prototype
    larp.pwn(783) : error 025: function heading differs from prototype
    larp.pwn(785) : error 028: invalid subscript (not an array or too many subscripts): "onsys"
    larp.pwn(785) : warning 215: expression has no effect
    larp.pwn(785) : error 001: expected token: ";", but found "]"
    larp.pwn(785) : error 029: invalid expression, assumed zero
    larp.pwn(785) : fatal error 107: too many error messages on one line


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



    8 Errors.



    Hier nochmal das script:

    public OnVehicleMod(playerid,vehicleid,componentid)
    {
    if(onsys[vehicleid] == 1) SaveComponent(vehicleid,componentid);
    return 1;
    }


    public OnVehiclePaintjob(playerid,vehicleid,paintjobid)
    {
    if(onsys[vehicleid] == 1) SavePaintjob(vehicleid,paintjobid);
    return 1;
    }


    public OnVehicleRespray(playerid,vehicleid,color1,color2)
    {
    if(onsys[vehicleid] == 1) SaveColors(vehicleid,color1,color2);
    return 1;
    }

    Nein, nicht vorhanden.



    public OnVehicleMod(vehicleid,componentid)
    {
    if(onsys[vehicleid] == 1) SaveComponent(vehicleid,componentid);
    return 1;
    }


    public OnVehiclePaintjob(vehicleid,paintjobid)
    {
    if(onsys[vehicleid] == 1) SavePaintjob(vehicleid,paintjobid);
    return 1;
    }


    public OnVehicleRespray(vehicleid,color1,color2)
    {
    if(onsys[vehicleid] == 1) SaveColors(vehicleid,color1,color2);
    return 1;
    }


    Und fehler sind folgende:



    larp.pwn(761) : error 025: function heading differs from prototype
    larp.pwn(766) : error 025: function heading differs from prototype
    larp.pwn(771) : error 025: function heading differs from prototype
    larp.pwn(785) : error 028: invalid subscript (not an array or too many subscripts): "onsys"
    larp.pwn(785) : warning 215: expression has no effect
    larp.pwn(785) : error 001: expected token: ";", but found "]"
    larp.pwn(785) : error 029: invalid expression, assumed zero
    larp.pwn(785) : fatal error 107: too many error messages on one line


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



    7 Errors.


    Liebe grüße
    Sascha

    Doch habe ich gemacht, siehe hier:



    public OnVehicleMod(playerid,vehicleid,componentid)
    {
    if(onsys[vehicleid] == 1) {
    SaveComponent(vehicleid,componentid);
    }
    return 1;
    }


    public OnVehiclePaintjob(playerid,vehicleid,paintjobid)
    {
    if(onsys[vehicleid] == 1) {
    SavePaintjob(vehicleid,paintjobid);
    }
    return 1;
    }


    public OnVehicleRespray(playerid,vehicleid,color1,color2)
    {
    if(onsys[vehicleid] == 1) {
    SaveColors(vehicleid,color1,color2);
    }
    return 1;
    }


    Was ist denn dann falsch? :(

    Das habe ich nun getan,
    nun folgende Fehler :(


    larp.pwn(760) : error 025: function heading differs from prototype
    larp.pwn(765) : error 025: function heading differs from prototype
    larp.pwn(770) : error 025: function heading differs from prototype
    larp.pwn(782) : error 025: function heading differs from prototype
    larp.pwn(784) : error 017: undefined symbol "onsys"
    larp.pwn(784) : warning 215: expression has no effect
    larp.pwn(784) : error 001: expected token: ";", but found "]"
    larp.pwn(784) : error 029: invalid expression, assumed zero
    larp.pwn(784) : fatal error 107: too many error messages on one line

    Danke für die schnelle hilfe,
    habe nun aber immernoch errors :( Wie definiere ich es? Bin noch einer neuer Scripter und verstehe noch nicht arrgg viel davon entschuldige dafür :)


    Einen neuen Thread eröffnete ich da unter dem anderen Thread name das nicht mehr reinpasst.


    Nun zum Problem:
    Script fängt bei Zeile 760 an!

    public SafeGivePlayerMoney(playerid, money)
    {
    //Code
    }


    public SafeResetPlayerWeapons(playerid)
    {


    }


    public SafeGivePlayerWeapon(playerid, weaponid)
    {


    }


    enum SavePlayerPosEnum
    {
    Float:LastX,
    Float:LastY,
    Float:LastZ
    }


    public OnVehicleMod(playerid,vehicleid,componentid)
    {
    if(onsys[GetPlayerVehicleID] == 1) {
    SaveComponent(GetPlayerVehicleID,componentid);
    }
    return 1;
    }


    public OnVehiclePaintjob(playerid,vehicleid,paintjobid)
    {
    if(onsys[GetPlayerVehicleID] == 1) {
    SavePaintjob(GetPlayerVehicleID,paintjobid);
    }
    return 1;
    }


    public OnVehicleRespray(playerid,GetPlayerVehicleID,color1,color2)
    {
    if(onsys[GetPlayerVehicleID] == 1) {
    SaveColors(GetPlayerVehicleID,color1,color2);
    }
    return 1;
    }


    Hier nun die Fehlermeldung:



    \larp.pwn(760) : error 025: function heading differs from prototype
    \larp.pwn(765) : error 025: function heading differs from prototype
    \larp.pwn(770) : error 025: function heading differs from prototype
    \larp.pwn(782) : error 025: function heading differs from prototype
    \larp.pwn(784) : error 017: undefined symbol "onsys"
    \larp.pwn(784) : error 076: syntax error in the expression, or invalid function call
    \larp.pwn(784) : error 029: invalid expression, assumed zero
    \larp.pwn(784) : fatal error 107: too many error messages on one line


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



    8 Errors.


    Danke im vorraus :)

    Guten Abend zusammen,
    habe ein paar Fehlermeldungen, und würde mich freuen wenn mir jemand sagen könnte wodrann dies liegt :)



    \larp.pwn(760) : error 025: function heading differs from prototype
    \larp.pwn(765) : error 025: function heading differs from prototype
    \larp.pwn(770) : error 025: function heading differs from prototype
    \larp.pwn(782) : error 025: function heading differs from prototype
    \larp.pwn(784) : error 017: undefined symbol "onsys"
    \larp.pwn(784) : warning 215: expression has no effect
    \larp.pwn(784) : error 001: expected token: ";", but found "]"
    \larp.pwn(784) : error 029: invalid expression, assumed zero
    \larp.pwn(784) : fatal error 107: too many error messages on one line


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



    8 Errors.


    Okay, hattest tatsächlich recht :)


    Nun bekomme ich fehlermeldungen :(



    \larp.pwn(760) : error 025: function heading differs from prototype
    \larp.pwn(765) : error 025: function heading differs from prototype
    \larp.pwn(770) : error 025: function heading differs from prototype
    \larp.pwn(782) : error 025: function heading differs from prototype
    \larp.pwn(784) : error 017: undefined symbol "onsys"
    \larp.pwn(784) : warning 215: expression has no effect
    \larp.pwn(784) : error 001: expected token: ";", but found "]"
    \larp.pwn(784) : error 029: invalid expression, assumed zero
    \larp.pwn(784) : fatal error 107: too many error messages on one line


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



    8 Errors.



    Kann mir jemand sagen wo ich da den fehler haben soll?