Frage zu Public

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 com


    brauche hilfe bei einer sache die ich net verstehe


    stock EnterGen(i, p)
    {
    for(new x = 0; x < sizeof(enterche); x++)
    {
    if(PI[i][fraktion] == enterche[x][tpfrak] || ((PI[i][fraktion] == 12 || PI[i][fraktion] == 2) && enterche[x][tpfrak] == 1) || enterche[x][tpfrak] == 0 || enterche[x][tpfrak] == 20)
    {
    if(p == enterche[x][tpid1]) //ENTRANCE
    {
    SetPlayerInterior(i, enterche[x][toint]);
    SetPlayerPos(i, enterche[x][tpx2], enterche[x][tpy2], enterche[x][tpz2]);
    return 1;
    } else if(p == enterche[x][tpid2]) //EXIT
    {
    SetPlayerInterior(i, 0);
    SetPlayerPos(i, enterche[x][tpx4], enterche[x][tpy4], enterche[x][tpz4]);
    return 1;
    }
    }
    }
    return 1;
    }


    public WepEnt(i, p)
    {
    for(new x = 0; x < sizeof(frakaq); x++)
    {
    if(PI[i][fraktion] == frakaq[x][wfrak] || ((PI[i][fraktion] == 12 || PI[i][fraktion] == 2) && frakaq[x][wfrak] == 1) || frakaq[x][wfrak] == 0 || frakaq[x][wfrak] == 20)
    {
    if(frakaq[x][tpid] == p) //ENTRANCE
    {
    ShowPlayerDialog(i,4,DIALOG_STYLE_LIST,"Waffen","Waffenset - 1","Nehmen","Abbchen");
    return 1;
    }
    }
    }
    return 0;
    }


    if(EnterGen(playerid, pickupid))
    {
    return 0;
    }else if(WepEnt(playerid, pickupid))
    {
    return 1;
    }


    so hab ich das alles gemacht aber nur der aber nur der EnterGen funtionier und der WepEnt nicht kann mir da jemand helfen bitte ?