Beiträge von Pett1

    Hallo,


    ich wusste nicht genau wo ich es reinschreiben soll.
    Nun zum Problem:
    Ich wollte die WBB Plugins einmal aktualisieren und zwar über das automatische update. Doch dann kommt folgender Fehler:
    Es ist folgender Fehler aufgetreten: PHP warning in file
    /home/www/cwcity/hosting/i/t/itboard/htdocs/itserver/lib/system/io/RemoteFile.class.php
    (39): fsockopen() [<a
    href='function.fsockopen'>function.fsockopen</a>]: unable to
    connect to store.woltlab.com:80 (Unknown error) (0)


    Bitte um Hilfe

    ohh das wusste ich net:D
    warte ich versuche mal eben


    Jetzt habe ich aber folgende Errors:
    Zeile (61788) : error 001: expected token: "while", but found "if"
    Zeile (61788 -- 61790) : error 029: invalid expression, assumed zero
    Zeile (61792) : warning 225: unreachable code


    Und hier der Code:(Z 61785-61795)


    #if defined isnull
    if (isnull(string))
    #else
    if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
    #endif
    { return format[0]; }
    #pragma tabsize 4
    while (paramPos < paramCount && string[stringPos]) {
    switch (format[formatPos++]) { case '\0': { return 0; } case 'i', 'd': {
    new neg = 1, num = 0, ch = string[stringPos]; if (ch == '-') { neg = -1; ch = string[++stringPos]; }
    do { stringPos++; if ('0' <= ch <= '9') { num = (num * 10) + (ch - '0'); } else { return -1; } }

    Hier der Code Es sind Zeile 19200-19250
    cmd = strtok(cmdtext, idx);
    GetPlayerName(playerid,sendername,sizeof(sendername));
    dcmd(tban,4,cmdtext);
    dcmd(tunban,6,cmdtext);
    /* dcmd(kennzeichenerlauben,19,cmdtext);
    dcmd(kennzeichen,11,cmdtext);
    dcmd(sirene,6,cmdtext);
    dcmd(licht,5,cmdtext);
    dcmd(kofferraum,10,cmdtext);
    dcmd(farbe,5,cmdtext);
    dcmd(efa,3,cmdtext);*/
    dcmd(gocords,7,cmdtext);
    dcmd(zollcontrol,11,cmdtext);
    dcmd(sirene,6,cmdtext);
    dcmd(givedonator,11,cmdtext);
    //dcmd(unban,5,cmdtext);
    dcmd(arbobjid,8,cmdtext);
    dcmd(arb,3,cmdtext);
    dcmd(deletearb,9,cmdtext);
    dcmd(deletearbfor,12,cmdtext);
    dcmd(arball,6,cmdtext);
    dcmd(arbforall,9,cmdtext);
    dcmd(arbobj,6,cmdtext);
    dcmd_tban(playerid,params[])
    {
    new pID,pIdName[MAX_PLAYER_NAME],pName[MAX_PLAYER_NAME],banTime,reason[64],string[128];
    if(!IsPlayerAdmin(playerid)) { return 1; }
    if(sscanf(params,"uds",pID,banTime,reason)) { return SendClientMessage(playerid,0xADC7E7FF,"Usage: /tban [playerid] [time(min)] [reason]"); }
    if(!IsPlayerConnected(pID)) { return SendClientMessage(playerid,0xADC7E7FF,"Invalid ID !"); }
    if(banTime < 1) { return SendClientMessage(playerid,0xADC7E7FF,"Minimum Time: 1 Minute"); }
    GetPlayerName(pID,pIdName,sizeof(pIdName));
    GetPlayerName(playerid,pName,sizeof(pName));
    format(string,sizeof(string),"[TIMEBAN] Admin %s timebanned %s for %d Minutes. Reason: %s",pName,pIdName,banTime,reason);
    SendClientMessageToAll(0xADC7E7FF,string);
    printf("AdmCmd(TIMEBAN): Admin: %s(%i) - Timebanned Player: %s(%i) - Timeban Reason: %s",pName,playerid,pIdName,pID,reason);
    pBanner[pID] = pName;
    TBan(pID,banTime);
    }
    dcmd_tunban(playerid,params[])
    {
    new pName[MAX_PLAYER_NAME],pIdName[MAX_PLAYER_NAME];
    if(!IsPlayerAdmin(playerid)) { return 1; }
    if(sscanf(params,"s",pIdName)) { return SendClientMessage(playerid,0xADC7E7FF,"Usage: /tunban [FULL-playername]"); }
    GetPlayerName(playerid,pName,sizeof(pName));
    if(BanFileExist(pIdName))
    {
    TUnban(pIdName);
    printf("AdmCmd(UNTIMEBAN): Admin: %s(%i) - untimebanned Player: %s",pName,playerid,pIdName);
    } else { return SendClientMessage(playerid,0xADC7E7FF,"Error: Wrong name"); }
    }



    Hier die 4 Errors:
    C:\Users\Peter\Desktop\pawno\include\streamer.inc(330) : warning 201: redefinition of constant/macro (symbol "OnPlayerConnect")
    Zeile (19202) : error 012: invalid function call, not a valid address
    Zeile (19202) : error 029: invalid expression, assumed zero
    Zeile (19202) : error 012: invalid function call, not a valid address
    Zeile (19202) : fatal error 107: too many error messages on one line


    5 Errors, 1 Warnungen
    Du hast Errors im Skript. Kompilierung abgebrochen


    PWNMod Compiler Version 1.2
    (c) Trooper[Y]
    In Kooperation mit GTA-Servers.de


    Bitte um Hilfe

    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT


    #include <a_samp>


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Carbon Reallife");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" Carbon Reallife 0.1");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(79,1310.3545,-1372.0161,13.5966,180.5945,0,0,0,0,0,0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid,895.1538,-1119.9735,24.5863);
    SetPlayerCameraPos(playerid, 913.4496,-1102.9392,34.3235);
    SetPlayerCameraLookAt(playerid, 910.9415,-1102.5831,34.3235);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    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 OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
    // Do something here
    return 1;
    }
    return 0;
    }


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


    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }


    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }


    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }


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


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }


    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    return 1;
    }


    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }


    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    return 1;
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }

    Hallo,


    Ich brauche mal hilfe beim crash-detect Plugin ausm Englishen Forum. Ich habe es in die .cfg vom samp-server eingetragen und der Server ist dann wiedereinmal gecrasht nun habe ich folgenden Code, aber ich weiß nicht was er bedeutet. Bitte um hilfe:
    [06:34:49] [debug] Server crashed while executing itcrafted.amx
    [06:34:49] [debug] AMX backtrace:
    [06:34:49] [debug] #0 native SendClientMessageToAll () [080ce910] from samp7779_1118
    [06:34:49] [debug] #1 00018b3c in public Streamer_OnPlayerDisconnect () from itcrafted.amx
    [06:34:49] [debug] #2 native CallLocalFunction () [080d3870] from samp7779_1118
    [06:34:49] [debug] #3 000073d0 in public OnPlayerDisconnect () from itcrafted.amx
    [06:34:49] [debug] #4 native Kick () [080cc320] from samp7779_1118
    [06:34:49] [debug] #5 000033c4 in public KickHim () from itcrafted.amx
    [06:34:49] [debug] Native backtrace:
    [06:34:49] [debug] #0 f696b5f9 in crashdetect::PrintNativeBacktrace () from plugins/crashdetect.so
    [06:34:49] [debug] #1 f696dc7c in crashdetect::Crash () from plugins/crashdetect.so
    [06:34:49] [debug] #2 f6973123 in ?? () from plugins/crashdetect.so
    [06:34:49] [debug] #3 f76e5400 in ?? ()
    [06:34:49] [debug] #4 f74abbfa in vsprintf () from /lib32/libc.so.6
    [06:34:49] [debug] #5 0807c737 in ?? () from ./samp7779_1118
    [06:34:49] [debug] #6 080ce9c1 in ?? () from ./samp7779_1118
    [06:34:49] [debug] #7 080503e4 in ?? () from ./samp7779_1118
    [06:34:49] [debug] #8 f696df45 in crashdetect::HandleAmxCallback () from plugins/crashdetect.so
    [06:34:49] [debug] #9 f6971ce2 in ?? () from plugins/crashdetect.so
    [06:34:49] [debug] #10 f697477e in amx_Exec () from plugins/crashdetect.so
    [06:34:49] [debug] #11 f696e022 in crashdetect::HandleAmxExec () from plugins/crashdetect.so
    [06:34:49] [debug] #12 f6971d1b in ?? () from plugins/crashdetect.so
    [06:34:49] [debug] #13 080d3b12 in ?? () from ./samp7779_1118
    [06:34:49] [debug] #14 080503e4 in ?? () from ./samp7779_1118
    [06:34:49] [debug] #15 f696df45 in crashdetect::HandleAmxCallback () from plugins/crashdetect.so
    [06:34:49] [debug] #16 f6971ce2 in ?? () from plugins/crashdetect.so
    [06:34:49] [debug] #17 f697477e in amx_Exec () from plugins/crashdetect.so
    [06:34:49] [debug] #18 f696e022 in crashdetect::HandleAmxExec () from plugins/crashdetect.so
    [06:34:49] [debug] #19 f6971d1b in ?? () from plugins/crashdetect.so
    [06:34:49] [debug] #20 0806f50a in ?? () from ./samp7779_1118
    [06:34:49] [debug] #21 0809f871 in ?? () from ./samp7779_1118
    [06:34:49] [debug] #22 0807d2cb in ?? () from ./samp7779_1118
    [06:34:49] [debug] #23 080cc33e in ?? () from ./samp7779_1118
    [06:34:49] [debug] #24 080503e4 in ?? () from ./samp7779_1118
    [06:34:49] [debug] #25 f696df45 in crashdetect::HandleAmxCallback () from plugins/crashdetect.so
    [06:34:49] [debug] #26 f6971ce2 in ?? () from plugins/crashdetect.so
    [06:34:49] [debug] #27 f697477e in amx_Exec () from plugins/crashdetect.so
    [06:34:49] [debug] #28 f696e022 in crashdetect::HandleAmxExec () from plugins/crashdetect.so
    [06:34:49] [debug] #29 f6971d1b in ?? () from plugins/crashdetect.so
    [06:34:49] [debug] #30 080dcda5 in ?? () from ./samp7779_1118
    [06:34:49] [debug] #31 0807da9b in ?? () from ./samp7779_1118
    [06:34:49] [debug] #32 08077c23 in ?? () from ./samp7779_1118
    [06:34:49] [debug] #33 f746142d in __libc_start_main () from /lib32/libc.so.6
    [06:34:49] [debug] #34 0804b4c1 in __gxx_personality_v0 () from ./samp7779_1118


    Wäre nett wenn mir jmd helfen könnte, da ich bei crashes und soo nicht so fit bin.

    Hallo,


    ich frage mich, wie man manche objecte, die schon in der map eingebaut sind von anfang an, weg machen kann. Manche machen auf diesem Riesen Platz vor der LSPD ein Parkplatz o.Ä.
    aber wie machen die das??
    ICh weiß das man es irgendwie mit Removeobjectforplayer oder soo machen kann doch mit welchem editor??

    alles gar net nötig:D in dem Mapdeditor ist sowas direkt eingebaut:D
    also bei search by objects:D
    Soone Funktion hatte ich gesucht aber ist ja jetzt erledigt

    oder gibt es das iwo in der wiki ich werde aus der wiki allgemein net schlau:D
    falls es das geben sollte also alle id'S das mitd en waffen usw hab ich schon gesehen das bringt mich net viel weiter:D
    bitte LInk posten