Beiträge von zombie.modder

    Hi,


    wenn ich oben in mein skript #include <dutils> hinzufüge kriege ich das:


    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\LS-TDM.pwn(274) : error 047: array sizes do not match, or destination array is too small
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\LS-TDM.pwn(281) : error 047: array sizes do not match, or destination array is too small
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\LS-TDM.pwn(305) : error 047: array sizes do not match, or destination array is too small
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\LS-TDM.pwn(703) : error 021: symbol already defined: "strtok"
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\LS-TDM.pwn(718) : error 047: array sizes do not match, or destination array is too small
    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\LS-TDM.pwn(758) : warning 203: symbol is never used: "ret_memcpy"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.


    wenn ich das dann rausnehme passiert nix, keine errors.


    MfG


    PS: Bitte um antwort: /Heal ID Preis

    Hi all,


    Mein /heal


    if(!strcmp(strget(cmdtext,0),"/heal"))
    {
    if(gTeam[playerid] == TEAM_MEDICS)
    {
    new ziel = strval(strget(cmdtext,1));
    if(!strlen(strget(cmdtext,1))) { SendClientMessage(playerid,COLOR_RED,"Benutzung: /heal [ID]"); return 1; }
    SetPlayerHealth(ziel,100);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Medic!");
    }
    return 1;
    }


    Und was ich jetzt möchte ist das noch zu /heal id ein preis hinzukommt d.h. /heal id preis und das man nur healen kann wenn beide Personen in einem RTW sind.


    Die SuFu hilft mir nicht!!


    MfG

    EDIT: Habe das Problem gelöst es lag an einer Klammer XD



    EDIT2: Hier bei dieser Zeile


    if(!strcmp(strget(cmdtext,0),"/heal"))
    {
    [color=#ff0000]if(gTeam[playerid] == TEAM_MEDIC)[/color]
    {
    new ziel = strval(strget(cmdtext,1));
    if(!strlen(strget(cmdtext,1))) { SendClientMessage(playerid,farbe,"Benutzung: /heal [ID]"); return 1; }
    SetPlayerHealth(ziel,100);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Medic!");
    }
    return 1;
    }


    kriege ich das:


    F:\IMACZE~1\ROCKST~1\GRANDT~1\GAMEMO~1\LS-TDM.pwn(374) : error 029: invalid expression, assumed zero
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.



    Die 3. Zeile vON Oben ist der Error

    so geht es bei mir:


    #include <a_samp>


    // Ein Test Gamemode von _KinG_Philip_


    #if defined FILTERSCRIPT



    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n-------------------------------------");
    print(" Test Gamemode coded by _KinG_Philip_");
    print("-------------------------------------\n");
    }


    #endif
    forward payday();
    public OnGameModeInit()
    {
    SetTimer("payday",600000,1);


    SetGameModeText("TEST SCRIPT");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(1,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(2,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(47,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(48,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(55,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(59,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(60,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(63,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(64,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(66,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(67,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(85,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(87,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(91,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(93,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(97,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(98,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(100,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(101,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
    AddPlayerClass(102,2001.7898,-1331.3816,23.9844,182.7078,0,0,0,0,0,0); // ballas
    AddPlayerClass(103,2001.7898,-1331.3816,23.9844,182.7078,0,0,0,0,0,0); // ballas
    AddPlayerClass(104,2001.7898,-1331.3816,23.9844,182.7078,0,0,0,0,0,0); // ballas
    AddPlayerClass(105,2518.4673,-1678.1327,14.4883,73.2320,0,0,0,0,0,0); // groove
    AddPlayerClass(106,2518.4673,-1678.1327,14.4883,73.2320,0,0,0,0,0,0); // groove
    AddPlayerClass(107,2518.4673,-1678.1327,14.4883,73.2320,0,0,0,0,0,0); // groove
    AddPlayerClass(108,2175.3960,-996.2379,62.9518,175.5055,0,0,0,0,0,0); // vagos
    AddPlayerClass(109,2175.3960,-996.2379,62.9518,175.5055,0,0,0,0,0,0); // vagos
    AddPlayerClass(110,2175.3960,-996.2379,62.9518,175.5055,0,0,0,0,0,0); // vagos
    AddPlayerClass(114,1803.5978,-2122.7800,13.5543,359.3465,0,0,0,0,0,0); // losaztecas
    AddPlayerClass(115,1803.5978,-2122.7800,13.5543,359.3465,0,0,0,0,0,0); // losaztecas
    AddPlayerClass(116,1803.5978,-2122.7800,13.5543,359.3465,0,0,0,0,0,0); // losaztecas
    AddPlayerClass(163,1550.7854,-1675.0646,15.5579,92.5067,0,0,0,0,0,0); // F.B.I.
    AddPlayerClass(164,1550.7854,-1675.0646,15.5579,92.5067,0,0,0,0,0,0); // F.B.I.
    AddPlayerClass(165,1550.7854,-1675.0646,15.5579,92.5067,0,0,0,0,0,0); // F.B.I. Special
    AddPlayerClass(166,1550.7854,-1675.0646,15.5579,92.5067,0,0,0,0,0,0); // F.B.I. Special
    AddPlayerClass(185,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(186,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(217,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(223,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(230,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(233,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(237,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(238,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(239,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(240,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(241,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(242,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(244,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(245,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(246,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(247,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(248,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(249,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(254,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(264,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
    AddPlayerClass(280,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
    AddPlayerClass(281,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
    AddPlayerClass(282,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
    AddPlayerClass(283,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
    AddPlayerClass(284,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
    AddPlayerClass(285,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
    AddPlayerClass(286,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // FBI
    AddPlayerClass(287,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // ARMY
    AddPlayerClass(288,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // ARMY
    AddPlayerClass(299,2518.5679,-1678.5813,14.5389,41.6612,0,0,0,0,0,0); //
    AddPlayerClass(297,2518.5679,-1678.5813,14.5389,41.6612,0,0,0,0,0,0); //
    AddPlayerClass(296,2518.5679,-1678.5813,14.5389,41.6612,0,0,0,0,0,0); //
    AddPlayerClass(294,2518.5679,-1678.5813,14.5389,41.6612,0,0,0,0,0,0); //


    AddStaticVehicle(411,2505.8499,-1680.2323,16.2300,329.7411,106,1); //Grove Cars
    AddStaticVehicle(411,2509.9155,-1671.3341,16.1337,353.8630,106,1); //Grove Cars
    AddStaticVehicle(411,2507.5286,-1661.4607,16.2278,27.6488,106,1); //Grove Cars
    AddStaticVehicle(411,2495.2949,-1654.5693,16.1246,80.2036,106,1); //Grove Cars
    AddStaticVehicle(411,2482.8394,-1653.1891,16.1157,87.1623,106,1); //Grove Cars
    AddStaticVehicle(411,2467.9585,-1667.7203,16.1109,198.9807,106,1); //Grove Cars
    AddStaticVehicle(411,2475.1865,-1679.9703,16.0790,237.1062,106,1); //Grove Cars
    AddStaticVehicle(411,2473.8167,-1696.8429,16.2444,352.9933,106,1); //Grove Cars


    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    new pName[MAX_PLAYER_NAME];
    new string[48];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "%s hat den Server Betreten.", pName);
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
    }
    public OnPlayerDisconnect(playerid, reason)
    {
    new pName[MAX_PLAYER_NAME];
    new string[56];
    GetPlayerName(playerid, pName, sizeof(pName));


    switch(reason)
    {
    case 0: format(string, sizeof(string), "%s hat den Server verlassen. (Error)", pName);
    case 1: format(string, sizeof(string), "%s hat den Server verlassen.", pName);
    case 2: format(string, sizeof(string), "%s hat den Server verlassen. (Kick/ban)", pName);
    }


    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;


    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerPrivmsg(playerid, recieverid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
    // Do something here
    return 1;
    }
    return 0;
    }


    public OnPlayerInfoChange(playerid)
    {
    return 1;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public payday() {
    for (new i = 0; i < MAX_PLAYERS; i++) {
    SendClientMessage(i,0xFFFF00FF,"Payday! Du erhältst $10000!");
    GivePlayerMoney(i,10000);
    }
    return 1;
    }



    MfG

    new cd_timer;
    new cd_sec;
    forward countdown();


    if(strcmp(cmd,"/count",true)==0)
    {
    cd_sec = 5;
    cd_timer = SetTimer("countdown", 999, 1);
    return true;
    }


    public countdown()
    {
    if(cd_sec == 0)
    {
    GameTextForAll("~r~Go!",1000,3);
    KillTimer(cd_timer);
    }
    else
    {
    new string[8];
    format(string,sizeof(string),"~g~%d",cd_sec);
    GameTextForAll(string,1000,3);
    }
    cd_sec = cd_sec-1;
    return 1;
    }