Beiträge von DerCooper

    Immernoch :(




    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3e-RC5, (C)2005-2012 SA-MP Team


    [23:27:17] filterscripts = "" (string)
    [23:27:17]
    [23:27:17] Server Plugins
    [23:27:17] --------------
    [23:27:17] Loading plugin: streamer
    [23:27:17]


    *** Streamer Plugin v2.6.1 by Incognito loaded ***


    [23:27:17] Loaded.
    [23:27:17] Loading plugin: mysql
    [23:27:17]


    > MySQL plugin R5 successfully loaded.


    [23:27:17] Loaded.
    [23:27:17] Loaded 2 plugins.


    [23:27:17]
    [23:27:17] Filterscripts
    [23:27:17] ---------------
    [23:27:17] Loaded 0 filterscripts.


    [23:27:17] Script[gamemodes/Deluxe.amx]: Run time error 19: "File or function is not found"
    [23:27:17] Number of vehicle models: 0

    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3e-RC5, (C)2005-2012 SA-MP Team


    [23:07:40]
    [23:07:40] Server Plugins
    [23:07:40] --------------
    [23:07:40] Loading plugin: streamer
    [23:07:40]


    *** Streamer Plugin v2.6.1 by Incognito loaded ***


    [23:07:40] Loaded.
    [23:07:40] Loading plugin: mysql
    [23:07:40]


    > MySQL plugin R5 successfully loaded.


    [23:07:40] Loaded.
    [23:07:40] Loading plugin: nativechecker
    [23:07:40] Loaded.
    [23:07:40] Loaded 3 plugins.


    [23:07:40]
    [23:07:40] Filterscripts
    [23:07:40] ---------------
    [23:07:40] Loading filterscript 'TD.amx'...
    [23:07:40] Error: Function not registered: 'TextDrawSetPreviewModel'
    [23:07:40] Error: Function not registered: 'TextDrawSetPreviewRot'
    [23:07:40] Loaded 1 filterscripts.


    [23:07:40] Error: Function not registered: 'SetObjectMaterialText'
    [23:07:40] Error: Function not registered: 'SetObjectMaterial'
    [23:07:40] Script[gamemodes/Deluxe.amx]: Run time error 19: "File or function is not found"
    [23:07:40] Number of vehicle models: 0


    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3e-RC5, (C)2005-2012 SA-MP Team


    [23:08:21]
    [23:08:21] Server Plugins
    [23:08:21] --------------
    [23:08:21] Loading plugin: streamer
    [23:08:21]


    *** Streamer Plugin v2.6.1 by Incognito loaded ***


    [23:08:21] Loaded.
    [23:08:21] Loading plugin: mysql
    [23:08:21]


    > MySQL plugin R5 successfully loaded.


    [23:08:21] Loaded.
    [23:08:21] Loading plugin: nativechecker
    [23:08:21] Loaded.
    [23:08:21] Loaded 3 plugins.


    [23:08:21]
    [23:08:21] Filterscripts
    [23:08:21] ---------------
    [23:08:21] Loading filterscript 'TD.amx'...
    [23:08:21] Error: Function not registered: 'TextDrawSetPreviewModel'
    [23:08:21] Error: Function not registered: 'TextDrawSetPreviewRot'
    [23:08:21] Loaded 1 filterscripts.


    [23:08:21] Error: Function not registered: 'SetObjectMaterialText'
    [23:08:21] Error: Function not registered: 'SetObjectMaterial'
    [23:08:21] Script[gamemodes/Deluxe.amx]: Run time error 19: "File or function is not found"
    [23:08:21] Number of vehicle models: 0







    Was ist falsch??? ;(

    Errors sind in der dritten Antwort.


    Errorzeilen im script:
    //Variabelennew BSNein;new BSNaus;



    //Pickups BSNein = CreatePickup(1239, 2 ,1199.3890,-920.6162,42.1092, -1); BSNaus = CreatePickup(1239, 2 ,362.8329,-75.1307,1001.5078, -1); return 1;}



    public OnPlayerPickUpPickup(playerid, pickupid){ if(pickupid == BSNein) { SetPlayerPos(playerid,363.4144,-74.5790,1001.507; SetPlayerFacingAngle(playerid,314.7000); SetPlayerInterior(playerid,10); }if(pickupid == BSNaus) { SetPlayerPos(playerid,1199.1300,-920.5710,43.0292); SetPlayerFacingAngle(playerid,180.0000); SetPlayerInterior(playerid,0); } return 1;}

    Ok, danke, besser aber immer noch 7 Errors.


    Errors:


    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(43) : warning 217: loose indentation
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(43) : error 001: expected token: "-identifier-", but found ";"
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(44) : error 001: expected token: "-identifier-", but found ";"
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(47) : warning 217: loose indentation
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(47) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(48) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(49) : warning 217: loose indentation
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(217) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(219) : error 001: expected token: ",", but found ";"
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(223) : error 029: invalid expression, assumed zero
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
    7 Errors.






    Script ist oben.

    Hi,
    ich habe versucht den Eingang und Ausgang vom BSN zu scripten aber da kommen immer Errors! :cursing:
    Was tun??


    Errors:


    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(43) : warning 217: loose indentation
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(43) : error 001: expected token: "-identifier-", but found ";"
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(44) : error 001: expected token: "-identifier-", but found ";"
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(47) : warning 217: loose indentation
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(47) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(48) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(49) : warning 217: loose indentation
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(217) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(223) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(230) : warning 217: loose indentation
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(233) : warning 217: loose indentation
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(233) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(233) : error 004: function "OnVehicleMod" is not implemented
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(238) : warning 225: unreachable code
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(238) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(238) : error 004: function "OnVehiclePaintjob" is not implemented
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(243) : warning 225: unreachable code
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(243) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(243) : error 004: function "OnVehicleRespray" is not implemented
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(248) : warning 225: unreachable code
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(248) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(248) : error 004: function "OnPlayerSelectedMenuRow" is not implemented
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(253) : warning 225: unreachable code
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(253) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(253) : error 004: function "OnPlayerExitedMenu" is not implemented
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(258) : warning 225: unreachable code
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(258) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(258) : error 004: function "OnPlayerInteriorChange" is not implemented
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(263) : warning 225: unreachable code
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(263) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(263) : error 004: function "OnPlayerKeyStateChange" is not implemented
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(268) : warning 225: unreachable code
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(268) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(268) : error 004: function "OnRconLoginAttempt" is not implemented
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(273) : warning 225: unreachable code
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(273) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(273) : error 004: function "OnPlayerUpdate" is not implemented
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(278) : warning 225: unreachable code
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(278) : error 029: invalid expression, assumed zero
    C:\Users\ziegler\Desktop\SA-MP Server\gamemodes\epic.pwn(278) : error 004: function "OnPlayerStreamIn" is not implemented
    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    26 Errors.




    #include <a_samp>


    #define COLOR_RED 0xFF0A00FF
    #define COLOR_ORANGE 0xFFB400FF
    #define COLOR_WHITE 0xFAFAFAFF
    #define COLOR_GREEN 0x2DFF00FF
    #define COLOR_YELLOW 0xFFFF00FF
    #define COLOR_BLUE 0x00EBFFFF //hellblau
    #define COLOR_DARKBLUE 0x0A00FFFF
    #define BSNaus
    #define BSNein




    main()
    {
    print("\n----------------------------------");
    print("German-Epic-Reallife");
    print("----------------------------------\n");
    }


    public OnGameModeInit()
    {
    DisableInteriorEnterExits();


    SetGameModeText("[0.3x] German-Epic-Reallife [GER]");
    AddPlayerClass(26,1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);

    //Spawnfahrräder
    AddStaticVehicleEx(509,1102.9427,-1434.6639,15.3090,305.0619,25,1,60000); // Spawnfahrrad 1
    AddStaticVehicleEx(509,1102.9174,-1432.9935,15.3091,309.6191,36,1,60000); // Spawnfahrrad 2
    AddStaticVehicleEx(509,1102.9752,-1436.2000,15.3091,301.4684,74,1,60000); // Spawnfahrrad 3
    AddStaticVehicleEx(509,1103.1952,-1437.5487,15.3091,295.5676,16,1,60000); // Spawnfahrrad 4
    AddStaticVehicleEx(509,1102.9681,-1442.6626,15.3091,301.4886,30,1,60000); // Spawnfahrrad 5
    AddStaticVehicleEx(509,1103.0480,-1444.1350,15.3094,302.6662,74,1,60000); // Spawnfahrrad 6
    AddStaticVehicleEx(509,1102.9919,-1445.3823,15.3089,297.6629,16,1,60000); // Spawnfahrrad 7
    AddStaticVehicleEx(509,1103.4160,-1446.8752,15.3091,302.4666,30,1,60000); // Spawnfahrrad 8


    //3DTexte
    Create3DTextLabel("Willkommen am Spawnpunkt:\n{FFFFFF}Noobspawn",COLOR_ORANGE,1095.1477,-1515.3381,22.7473+0.5,40.0,0);


    //Variabelen
    new BSNein;
    new BSNaus;


    //Pickups
    BSNein = CreatePickup(1239, 2 ,1199.3890,-920.6162,42.1092, -1);
    BSNaus = CreatePickup(1239, 2 ,362.8329,-75.1307,1001.5078, -1);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerVirtualWorld(playerid,1+playerid);
    SetPlayerPos(playerid, 1128.9459,-1383.0651,14.2813);
    SetPlayerCameraPos(playerid, 1128.9459,-1383.0651,14.2813);
    SetPlayerCameraLookAt(playerid, 1128.9419,-1384.2778,14.2813);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    new name[256],string[256];
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"%s, das [GER]-Team heisst dich Herzlich Willkommen!",name);
    SendClientMessage(playerid,COLOR_RED,string);
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerPos(playerid,1095.1477,-1515.3381,22.7473);
    SetPlayerFacingAngle(playerid,308.9310);
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist gestorben!");
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


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


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


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/help", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid,COLOR_GREEN,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
    SendClientMessage(playerid,COLOR_YELLOW,"Willkommen beim Helpsystem!");
    SendClientMessage(playerid,0x00EBFFFF,"/help, /gotobsn, /gotozivi, /gotols, /gotosf, /gotolv, /lebenvoll (nur in der Testphase!)");
    SendClientMessage(playerid,COLOR_RED,"Wenn du noch Fragen hast mach bitte Report! (Aber noch nicht, da es noch kein /report gibt :P!");
    SendClientMessage(playerid,COLOR_GREEN,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
    return 1;
    }


    if (strcmp("/lebenvoll",cmdtext,true, 10) == 0)
    {
    SetPlayerHealth(playerid,100.0);
    SendClientMessage(playerid,COLOR_YELLOW,"Du hast dich erfolgreich geheilt!");
    }

    if (strcmp("/gotobsn",cmdtext,true, 10) == 0)
    {
    SetPlayerPos(playerid,1183.7361,-879.7553,43.1530);
    SendClientMessage(playerid,COLOR_BLUE,"Du hast dich zum BSN geportet!");
    }


    if (strcmp("/gotozivi",cmdtext,true, 10) == 0)
    {
    SetPlayerPos(playerid,1128.9595,-1446.5970,15.7969);
    SendClientMessage(playerid,COLOR_BLUE,"Du hast dich zum Noobspawn geportet!");
    }


    if (strcmp("/gotols",cmdtext,true, 10) == 0)
    {
    SetPlayerPos(playerid,1516.0737,-1660.1254,13.5392);
    SendClientMessage(playerid,COLOR_BLUE,"Du hast dich zu Los Santos geportet!");
    }


    if (strcmp("/gotosf",cmdtext,true, 10) == 0)
    {
    SetPlayerPos(playerid,-1437.7185,-289.3765,13.9926);
    SendClientMessage(playerid,COLOR_BLUE,"Du hast dich zu San Fiero geportet!");
    }

    if (strcmp("/gotolv",cmdtext,true, 10) == 0)
    {
    SetPlayerPos(playerid,1843.5468,891.6615,10.5474);
    SendClientMessage(playerid,COLOR_BLUE,"Du hast dich zu Las Venturas geportet!");
    }

    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 OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


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


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid == BSNein)
    {
    SetPlayerPos(playerid,363.4144,-74.5790,1001.507;
    SetPlayerFacingAngle(playerid,314.7000);
    SetPlayerInterior(playerid,10);
    }
    if(pickupid == BSNaus)
    {
    SetPlayerPos(playerid,1199.1300,-920.5710,43.0292);
    SetPlayerFacingAngle(playerid,180.0000);
    SetPlayerInterior(playerid,0);
    }
    return 1;
    }