Beiträge von zombie.modder

    forward payday(playerid);


    SetTimer("payday",600000,1);


    public payday (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;
    }

    edit:
    3
    geht jetzt aber noch 1 error


    public payday (playerid)
    {
    new PlayerScore = GetPlayerScore(playerid);
    if(PlayerScore < 0)
    {
    GivePlayerMoney(playerid,5000);
    SendClientMessage(playerid,0xFFFF00FF,"Zahltag! Du erhältst $5000!");
    return 1;
    }
    else if(PlayerScore > 2)
    {
    GivePlayerMoney(playerid,1000);
    SendClientMessage(playerid,0xFFFF00FF,"Zahltag! Du erhältst $10000!");
    return 1;
    }
    else if(PlayerScore > 4)
    {
    GivePlayerMoney(playerid,25000);
    SendClientMessage(playerid,0xFFFF00FF,"Zahltag! Du erhältst $25000!");
    return 1;
    }
    else if(PlayerScore > 7)
    {
    GivePlayerMoney(playerid,50000);
    SendClientMessage(playerid,0xFFFF00FF,"Zahltag! Du erhältst $50000!");
    return 1;
    }
    else if(PlayerScore > 10)
    {
    GivePlayerMoney(playerid,100000);
    SendClientMessage(playerid,0xFFFF00FF,"Zahltag! Du erhältst $100000!");
    return 1;
    }
    return 1;
    }


    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(836) : error 025: function heading differs from prototype
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    -.-


    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(196) : error 004: function "WetterTimer" is not implemented
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(562) : error 017: undefined symbol "strtok"
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(562) : error 033: array must be indexed (variable "cmd")
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(565) : error 017: undefined symbol "strtok"
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(565) : error 033: array must be indexed (variable "tmp")
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(561) : warning 203: symbol is never used: "idx"
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(836) : error 025: function heading differs from prototype
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(844) : error 079: inconsistent return types (array & non-array)
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(850) : error 079: inconsistent return types (array & non-array)
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(856) : error 079: inconsistent return types (array & non-array)
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(862) : error 079: inconsistent return types (array & non-array)
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(868) : error 079: inconsistent return types (array & non-array)
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(870) : error 079: inconsistent return types (array & non-array)
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(906) : error 029: invalid expression, assumed zero
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(906) : error 017: undefined symbol "sscanf"
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(906) : error 029: invalid expression, assumed zero
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\lsdm.pwn(906) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    16 Errors.


    public payday (playerid)
    {
    for (new i = 0; i < MAX_PLAYERS; i++) {
    new PlayerScore = GetPlayerScore(playerid);
    if(PlayerScore < 0)
    {
    GivePlayerMoney(playerid,5000);
    SendClientMessage(i,0xFFFF00FF,"Zahltag! Du erhältst $5000!");
    return 1;
    }
    else if(PlayerScore > 2)
    {
    GivePlayerMoney(playerid,1000);
    SendClientMessage(i,0xFFFF00FF,"Zahltag! Du erhältst $10000!");
    return 1;
    }
    else if(PlayerScore > 4)
    {
    GivePlayerMoney(playerid,25000);
    SendClientMessage(i,0xFFFF00FF,"Zahltag! Du erhältst $25000!");
    return 1;
    }
    else if(PlayerScore > 7)
    {
    GivePlayerMoney(playerid,50000);
    SendClientMessage(i,0xFFFF00FF,"Zahltag! Du erhältst $50000!");
    return 1;
    }
    else if(PlayerScore > 10)
    {
    GivePlayerMoney(playerid,100000);
    SendClientMessage(i,0xFFFF00FF,"Zahltag! Du erhältst $100000!");
    return 1;
    }
    return 1;
    }


    Klammer vergessen, oder? aber wo

    Moin Alle


    Bei meinem Payday (siehe mein Tutorial) möchte ich verschiedene Beiträge machen pro Score/Level


    0Score:5k
    2Score:10k
    4Score:25k
    7Score:50k
    10Score:100k



    (1k = 1000$, 10k = 10000$ usw.)


    Danke


    M.f.g


    zombiemodder


    PS: man kriegt immer neuen Score auf meinem Server! Also müsste es nicht kompliziert sein!

    Hi,


    wie mache ich einen Waffen-Händler Job? Habe kein gf und benutze kein dcmd oder strtok oder so!!


    Also, mit /sellgun und /getammo


    /getammo ist wenn man beim Lager ist, damit kriegt man die Waffen!



    9mm
    Silenced 9mm
    Desert Eagle
    Shotgun
    Micro SMG (Uzi)
    SMG (MP5)
    AK47 (Kalashnikov)
    M4
    Country Rifle
    Sniper Rifle


    Danke für jede antwort


    D

    9mm -500$
    Silenced 9mm -750$
    Desert Eagle -800$
    Shotgun -1000$
    Micro SMG (Uzi) -1205$
    SMG (MP5) -1500$
    AK47 (Kalashnikov) -3500$
    M4 -4000$
    Country Rifle -3000$
    Sniper Rifle -7500$


    Würdest du denn das Skript für mich machen :?

    Hi,


    wollte ma fragen ob mir jmd ein Waffenbiz erstellen kann mit /enter /exit und /buygun


    Ist warscheinlich zuviel verlangt, aber mal schauen :D Falls jmd bock hat soll er hier bitte reinschreiben :D


    Mfg


    zombiemodder

    jetzt habe ich keine errors aber ich kriege kein leben abgezogt und nix passiert.
    public Areacheck(playerid, health)
    {
    for(new i = 0; i<GetMaxPlayers(); i++)
    {
    if( IsPlayerConnected(i) && IsPlayerInArea(playerid, 1847.332, -1275.245, 2079.305, -1129.178) )
    {
    new Float:phealth;
    GetPlayerHealth(playerid,phealth);
    SetPlayerHealth(playerid,health-3);
    SendClientMessage(playerid,COLOR_DARKRED, "Du betrittst eine Verseuchte Zone!");
    GangZoneFlashForPlayer(playerid,alert,COLOR_RED);
    }
    }
    }



    was ist falsch :(?