Code Schnipsel einfügen

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
  • Hey: Wie füg ich das so richtig ein xD? <Nooby



    Von:


    public OnFilterScriptExit()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    for(new o = 0; o < sizeof(Objects); o++)
    {
    if(Player[i][view][o])
    {
    Player[i][view][o] = false;
    DestroyPlayerObject(i,Player[i][objid][o]);
    }
    }
    }

    KillTimer(timer);
    }

    Ins:

    public GameModeInitExitFunc()
    {
    new string[128];
    format(string, sizeof(string), "www.---------.com");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    DisablePlayerCheckpoint(i);
    gPlayerCheckpointStatus[i] = CHECKPOINT_NONE;
    GameTextForPlayer(i, string, 4000, 5);
    SetPlayerCameraPos(i,1460.0, -1324.0, 287.2);
    SetPlayerCameraLookAt(i,1374.5, -1291.1, 239.0);
    OnPlayerUpdate(i);
    gPlayerLogged[i] = 0;
    }
    }
    SetTimer("GameModeExitFunc", 4000, 0);
    return 1;
    }



    KillTimer(timer);
    hab ich schon...
    2.

    Von:
    public OnPlayerConnect(playerid)
    {
    for(new i = 0; i < sizeof(Objects); i++) Player[playerid][view][i] = false;
    }

    In

    public OnPlayerConnect(playerid)
    {
    if(Security != 0)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
    Kick(playerid);
    return 1;
    }
    SetTimerEx("Godmode",100,1,"d",playerid);
    gActivePlayers[playerid]++;
    numplayers++;
    new plname[MAX_PLAYER_NAME];
    new string[MAX_PLAYER_NAME];
    SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0; einloggen[playerid] = true;
    SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0;
    GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0;
    ApprovedLawyer[playerid] = 0; CallLawyer[playerid] = 0; WantLawyer[playerid] = 0;
    ...
    3.
    Von:

    public OnPlayerDisconnect(playerid)
    {
    for(new i = 0; i < sizeof(Objects); i++)
    {
    if(Player[playerid][view][i])
    {
    Player[playerid][view][i] = false;
    DestroyPlayerObject(playerid,Player[playerid][objid][i]);
    }
    }
    }

    In:

    public OnPlayerDisconnect(playerid)
    {
    gActivePlayers[playerid]--;
    numplayers--;
    PlayerInfo[playerid][pAdjustable] = 1;
    OnPlayerUpdate(playerid);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(TaxiAccepted[i] < 999)
    {
    if(TaxiAccepted[i] == playerid)
    {
    TaxiAccepted[i] = 999;

    ...


    LG