Beiträge von Bullswift

    PAWN Quelltext


    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53



    new Text:ueberschrift[MAX_PLAYERS];
    new Text:insidetext[MAX_PLAYERS];


    public OnPlayerConnect(playerid)
    {
    ueberschrift[playerid] = TextDrawCreate(501.000000, 222.000000, "info");
    TextDrawBackgroundColor(ueberschrift[playerid], 50);
    TextDrawFont(ueberschrift[playerid], 2);
    TextDrawLetterSize(ueberschrift[playerid], 0.320000, 1.299999);
    TextDrawColor(ueberschrift[playerid], -1);
    TextDrawSetOutline(ueberschrift[playerid], 1);
    TextDrawSetProportional(ueberschrift[playerid], 1);
    TextDrawUseBox(ueberschrift[playerid], 1);
    TextDrawBoxColor(ueberschrift[playerid], 6062591);
    TextDrawTextSize(ueberschrift[playerid], 586.000000, 0.000000);
    insidetext[playerid] = TextDrawCreate(501.000000, 237.000000, "text");
    TextDrawBackgroundColor(insidetext[playerid], 50);
    TextDrawFont(insidetext[playerid], 0);
    TextDrawLetterSize(insidetext[playerid], 0.270000, 1.000000);
    TextDrawColor(insidetext[playerid], -1);
    TextDrawSetOutline(insidetext[playerid], 1);
    TextDrawSetProportional(insidetext[playerid], 1);
    TextDrawUseBox(insidetext[playerid], 1);
    TextDrawBoxColor(insidetext[playerid], 150);
    TextDrawTextSize(insidetext[playerid], 586.000000, 0.000000);
    return 1;
    }
    stock CreateBox(playerid,header[],text[])
    {
    new string[128];


    format(string, sizeof string,"%s",header);
    TextDrawSetString(Text:ueberschrift[playerid],string);
    TextDrawShowForPlayer(playerid,Text:ueberschrift[playerid]);


    format(string, sizeof string,"%s",text);
    TextDrawSetString(Text:insidetext[playerid],string);
    TextDrawShowForPlayer(playerid,Text:insidetext[playerid]);


    PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);


    SetPVarInt(playerid,"CreateBoxEx",1);
    SetTimerEx("CloseBox", 5000, 0, "i", playerid);
    return 1;
    }


    forward CloseBox(playerid);
    public CloseBox(playerid)
    {
    TextDrawHideForPlayer(playerid,Text:ueberschrift[playerid]);
    TextDrawHideForPlayer(playerid,Text:insidetext[playerid]);
    return 1;
    }











    was´?

    else if(IsPlayerInRangeOfPoint(i,4.0,1547.5663,-1610.0396,13.3828))
    {
    CreateBox(i,"STAATSREP","Tippe /rep ein, um dein Auto zu reparieren! [nur fuer Staatsautos]");
    }


    error 017: undefined symbol "CreateBox"


    warum habe ich diesen error?

    Zitat

    Jetzt kannst du einen nach dem anderen Error/Warning nehmen und oben in den Fehlerklärbär einfügen oder einfach nach dem Error/Warning googeln und versuchen zu lösen. Wenn nicht kannste dich gerne nochmal im richtigen Bereich dazu melden um dir zu helfen.




    wie mache ich das? mit den Fehlbar

    Jetzt Habe ich die Errors mit den Neuen Streamer



    C:\Users\Marvin\Desktop\German Next Era Life - v2.5\pawno\include\streamer.inc(155) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
    C:\Users\Marvin\Desktop\German Next Era Life - v2.5\pawno\include\streamer.inc(313) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
    C:\Users\Marvin\Desktop\German Next Era Life - v2.5\pawno\include\streamer.inc(336) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
    C:\Users\Marvin\Desktop\German Next Era Life - v2.5\pawno\include\streamer.inc(338) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"

    [13:50:44]
    [13:50:44] Server Plugins
    [13:50:44] --------------
    [13:50:44] Loading plugin: streamer
    [13:50:44]


    *** Streamer Plugin v2.5.2 by Incognito loaded ***


    [13:50:44] Loaded.
    [13:50:44] Loaded 1 plugins.


    [13:50:44]
    [13:50:44] Ban list
    [13:50:44] --------
    [13:50:44] Loaded: samp.ban
    [13:50:44]
    [13:50:44] I couldn't load any gamemode scripts. Please verify your server.cfg
    [13:50:44] It needs a gamemode0 line at the very least.



    Habe AMX Drin im Gamemode Ordner

    (36281) : error 017: undefined symbol "pname"
    (36281) : error 017: undefined symbol "pname"
    (36281) : error 029: invalid expression, assumed zero
    (36281) : fatal error 107: too many error messages on one line


    Hier die Errors

    if(strcmp(cmd, "/setjob", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "[INFO]:/setjob [playerid/PartOfName] [jobid]");
    return 1;
    }
    new para1;
    new jobid;
    para1 = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    jobid = strval(tmp);
    if (PlayerInfo[playerid][pAdmin] >= 2)
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID)
    {
    GetPlayerName(para1, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, pname, sizeof(pname)); // why der ERROR? habe es Doch hier
    PlayerInfo[para1][pJob] = jobid;
    format(string, 256, "[Admin System]: %s hat den Job von %s´s auf ID %d gesetzt.", pname,giveplayer,jobid); // Hier der Error
    ABroadCast(COLOR_RED,string,1);
    SendClientMessage(playerid, COLOR_GRAD1, "Überlegen:)!");
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Admin!");
    }
    }
    return 1;
    }