Verschiedene Payday beiträge!

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
  • so muss es gehen:

    forward payday();
    public payday()
    {
    for(new i=0; i<MAX_PLAYERS;i++)
    {
    new PlayerScore = GetPlayerScore(i);
    if(PlayerScore < 0)
    {
    GivePlayerMoney(i,5000);
    SetPlayerScore(i,GetPlayerScore(playerid)+1);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 0-1");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $5000");
    return 1;
    }
    else if(PlayerScore > 2)
    {
    GivePlayerMoney(i,1000);
    SetPlayerScore(i,GetPlayerScore(playerid)+1);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 2-3");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $10000");
    return 1;
    }
    else if(PlayerScore > 4)
    {
    SetPlayerScore(i,GetPlayerScore(playerid)+1);
    GivePlayerMoney(i,25000);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 5-6");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $25000");
    return 1;
    }
    else if(PlayerScore > 7)
    {
    SetPlayerScore(i,GetPlayerScore(playerid)+1);
    GivePlayerMoney(i,50000);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 7-9");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $50000");
    return 1;
    }
    else if(PlayerScore > 10)
    {
    SetPlayerScore(i,GetPlayerScore(playerid)+1);
    GivePlayerMoney(i,100000);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 10-~");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $100000");
    return 1;
    }
    }
    return 1;
    }

  • nix davon geht!!!


    public payday ()
    {
    new playerid;
    new PlayerScore = GetPlayerScore(playerid);
    if(PlayerScore < 0)
    {
    GivePlayerMoney(playerid,5000);
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 0-1");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $5000");
    return 1;
    }
    else if(PlayerScore > 2)
    {
    GivePlayerMoney(playerid,1000);
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 2-3");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $10000");
    return 1;
    }
    else if(PlayerScore > 4)
    {
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GivePlayerMoney(playerid,25000);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 5-6");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $25000");
    return 1;
    }
    else if(PlayerScore > 7)
    {
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GivePlayerMoney(playerid,50000);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 7-9");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $50000");
    return 1;
    }
    else if(PlayerScore > 10)
    {
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GivePlayerMoney(playerid,100000);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 10-~");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $100000");
    return 1;
    }
    return 1;
    }



    Bitte einfügen wie es richtig ist!

    Zitat

    Nimm die Dinge wie sie sind: schlag, wenn du schlagen musst, tritt, wenn du Treten musst
    -Bruce Lee

  • public payday()
    {
    for(new i=0; i<MAX_PLAYERS;i++)
    {
    new PlayerScore = GetPlayerScore(i);
    if(PlayerScore < 0)
    {
    GivePlayerMoney(i,5000);
    SetPlayerScore(i,GetPlayerScore(i)+1);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 0-1");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $5000");
    return 1;
    }
    else if(PlayerScore > 2)
    {
    GivePlayerMoney(i,1000);
    SetPlayerScore(i,GetPlayerScore(i)+1);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 2-3");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $10000");
    return 1;
    }
    else if(PlayerScore > 4)
    {
    SetPlayerScore(i,GetPlayerScore(i)+1);
    GivePlayerMoney(i,25000);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 5-6");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $25000");
    return 1;
    }
    else if(PlayerScore > 7)
    {
    SetPlayerScore(i,GetPlayerScore(i)+1);
    GivePlayerMoney(i,50000);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 7-9");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $50000");
    return 1;
    }
    else if(PlayerScore > 10)
    {
    SetPlayerScore(i,GetPlayerScore(i)+1);
    GivePlayerMoney(i,100000);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 10-~");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $100000");
    return 1;
    }
    }
    return 1;
    }

  • X( schau dir meinen letzten Beitrag an .....


    es war das:


    forward payday();
    public payday()
    {
    for(new i=0; i<MAX_PLAYERS;i++)
    {
    new PlayerScore = GetPlayerScore(i);
    if(PlayerScore < 0)
    {
    GivePlayerMoney(i,5000);
    SetPlayerScore(i,GetPlayerScore(i)+1);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 0-1");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $5000");
    return 1;
    }
    else if(PlayerScore > 2)
    {
    GivePlayerMoney(i,1000);
    SetPlayerScore(i,GetPlayerScore(i)+1);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 2-3");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $10000");
    return 1;
    }
    else if(PlayerScore > 4)
    {
    SetPlayerScore(i,GetPlayerScore(i)+1);
    GivePlayerMoney(i,25000);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 5-6");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $25000");
    return 1;
    }
    else if(PlayerScore > 7)
    {
    SetPlayerScore(i,GetPlayerScore(i)+1);
    GivePlayerMoney(i,50000);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 7-9");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $50000");
    return 1;
    }
    else if(PlayerScore > 10)
    {
    SetPlayerScore(i,GetPlayerScore(i)+1);
    GivePlayerMoney(i,100000);
    GameTextForPlayer(i,"Payday",1500,6);
    GameTextForPlayer(i,"~w~Zahltag",1500,6);
    SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(i,0xFFFF00FF,"Score: 10-~");
    SendClientMessage(i,0xFFFF00FF,"Verdienst: $100000");
    return 1;
    }
    }
    return 1;
    }

  • forward payday();



    public payday ()
    {
    new PlayerScore = GetPlayerScore(playerid);
    if(PlayerScore < 0)
    {
    GivePlayerMoney(playerid,5000);
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 0-1");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $5000");
    return 1;
    }
    else if(PlayerScore > 2)
    {
    GivePlayerMoney(playerid,1000);
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 2-3");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $10000");
    return 1;
    }
    else if(PlayerScore > 4)
    {
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GivePlayerMoney(playerid,25000);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 5-6");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $25000");
    return 1;
    }
    else if(PlayerScore > 7)
    {
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GivePlayerMoney(playerid,50000);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 7-9");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $50000");
    return 1;
    }
    else if(PlayerScore > 10)
    {
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GivePlayerMoney(playerid,100000);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 10-~");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $100000");
    return 1;
    }
    return 1;
    }



    müsste doch eigentlich gehen kann gerade schlecht testen :D