Fraktionsenter

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
  • Also leute, ich habe von der LSPD Garage ein spawnpoint gemacht also ein pickup man geht rein und man ist oben im lspd, und dann wenn man aber wieder ins pickup oben im lspd reinläuft dann ist man wieder unten, ich will nur das cops vom lspd runter in die garage können, wie muss ich das genau machen?
    Muss ich beim Pickup die Fraktion hinzufügen oder den Spawnpoint?
    MfG Colarious

  • Kannst du mal Die Zeile posten ??!!


    Du musst nur das team 1 rein bzw hoch lassen

  • if(pickupid==lspd_goup)
    {
    SetPlayerInterior(playerid,6);
    SetPlayerPos(playerid,255.0255,88.3037,1002.4453); //Enter Spawn
    SetPlayerFacingAngle(playerid,302.7962);
    SendClientMessage(playerid,0xFFFF00FF,"Du bist im Los Santos Police Department!");
    }
    if(pickupid==lspd_godown)
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1528.7999,-1665.4999,6.2188); //Exit Spawn
    SetPlayerFacingAngle(playerid,215.6127);
    SendClientMessage(playerid,0xFFFF00FF,"Du bist in der LSPD Garage!");
    }


    lspd_goup = CreatePickup(1239,1,1528.9373,-1677.7306,5.8906);
    lspd_godown = CreatePickup(1239,1,254.8982,83.2049,1002.4453);

  • Wie hast du die Teams Definiert ?!!


    IsACop ?
    oder gTeam = 1 oder so

  • LoH halt, IsACop auch und gteam geht auch, aber ich mach immer:
    if(gTeam[playerid] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)

  • if(pickupid==lspd_goup)
    {
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    SetPlayerInterior(playerid,6);
    SetPlayerPos(playerid,255.0255,88.3037,1002.4453); //Enter Spawn
    SetPlayerFacingAngle(playerid,302.7962);
    SendClientMessage(playerid,0xFFFF00FF,"Du bist im Los Santos Police Department!");
    else if
    {
    SendClientMessage(playerid,FARBE,"Du bist kein LSPD Mitglied");
    }
    }
    if(pickupid==lspd_godown)
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1528.7999,-1665.4999,6.2188); //Exit Spawn
    SetPlayerFacingAngle(playerid,215.6127);
    SendClientMessage(playerid,0xFFFF00FF,"Du bist in der LSPD Garage!");
    }

  • C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(5907) : warning 217: loose indentation
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(5910) : warning 217: loose indentation
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(5910) : error 029: invalid expression, assumed zero
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(5910) : warning 215: expression has no effect
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(5910) : error 001: expected token: ";", but found "if"
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(5912) : error 017: undefined symbol "FARBE"
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(5912) : error 008: must be a constant expression; assumed zero
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(5913) : error 029: invalid expression, assumed zero
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(15552) : warning 217: loose indentation
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(15703) : warning 217: loose indentation
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(16735) : warning 217: loose indentation
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(39015) : warning 217: loose indentation
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(39146) : warning 217: loose indentation
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(43675) : warning 217: loose indentation
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(43678) : warning 203: symbol is never used: "PCarPos"
    C:\Users\Diamond\Desktop\Colarious GTA\gamemodes\deh.pwn(43678) : warning 203: symbol is never used: "Wanted"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.

  • if(pickupid==lspd_goup)
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    SetPlayerInterior(playerid,6);
    SetPlayerPos(playerid,255.0255,88.3037,1002.4453); //Enter Spawn
    SetPlayerFacingAngle(playerid,302.7962);
    SendClientMessage(playerid,0xFFFF00FF,"Du bist im Los Santos Police Department!");
    else if
    {
    SendClientMessage(playerid,0xFFFF00FF,"Du bist kein LSPD Mitglied");
    }
    }
    if(pickupid==lspd_godown)
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1528.7999,-1665.4999,6.2188); //Exit Spawn
    SetPlayerFacingAngle(playerid,215.6127);
    SendClientMessage(playerid,0xFFFF00FF,"Du bist in der LSPD Garage!");
    }