Beiträge von LikePizZa

    Ich habe mir oracle virtualbox runtergeladen und wollte mir ein betriebssystem darauf installieren. ich habe bei speicherauswahl von festplatte 250 gb ausgewählt, dann ist mein pc abgestürzt. und nun steht da kein betriebssystem aber mir fehlen 250 gb von der festplatte. Ich bitte um eure hilfe!


    //edit Jetzt bleibt mein system auch noch hängen -.-

    komisch jetz leftet der sofort nach dem spawnen wieder den server



    //edit der connected aber ist immernoch überm jefferson hotel außerdem ist er eingeloggt. komisch

    Ich habe ein Problem undzwar ich habe einen Bot gescriptet alles läuft eigentlich richtig er connected auch nur er ist die ganze zeit in Los Santos ganz weit oben über dem Jefferson hotel aber wieso ?


    Onplayerspawn


    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "TaxiStadtHalle", true))
    {
    PutPlayerInVehicle(playerid, TaxiCar, 0);
    }
    }


    onplayerconnect


    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "TaxiStadtHalle", true))
    {
    gPlayerLogged[playerid]=1;
    SpawnPlayer(playerid);
    return 1;
    }
    }

    nimm mit fraps das spiel mit normalen spiel sound auf und lade dir audacity (kostenlos) runter und nimm deine stimme seperat auf.
    dann schneidest du alles zusammen z.B. mit movie maker und fertig ;)

    Hey leute ich bins mal wieder..
    Ich habe ein Problem mit Textdraws. Undzwar habe ich textdraws in includes gemacht und die werden ja auch angezeigt nur wenn ich dann im script textdraws mache funktioniert das nicht,
    also das heißt sie werden nicht angezeigt. ich weiß aber nicht warum.

    na eben doch mit der funktion OnPlayerCarUpdate(playerid)


    Function OnPlayerCarUpdate(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new x = 0; x < MaxVeh; x++)
    {
    if(Dtc_PlayerHaveCar[playerid][x])
    {
    DestroyVehicle(PlayerCar[playerid][x][CarId]);
    Dtc_Carlock[PlayerCar[playerid][x][CarId]] = 0;
    Dtc_LockCar(PlayerCar[playerid][x][CarId]);
    new string3[128];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    format(string3, sizeof(string3), "/Autos/%s%d.dtcar", playername3,x);
    new File: hFile = fopen(string3, io_write);
    if (hFile)
    {
    new var[32];
    format(var, 32, "CarId=%d\n",PlayerCar[playerid][x][CarId]);fwrite(hFile, var);
    format(var, 32, "CarModel=%d\n",PlayerCar[playerid][x][CarModel]);fwrite(hFile, var);
    format(var, 32, "CarPos_x=%.3f\n",PlayerCar[playerid][x][CarPos_x]);fwrite(hFile, var);
    format(var, 32, "CarPos_y=%.3f\n",PlayerCar[playerid][x][CarPos_y]);fwrite(hFile, var);
    format(var, 32, "CarPos_z=%.3f\n",PlayerCar[playerid][x][CarPos_z]);fwrite(hFile, var);
    format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][x][CarRotate]);fwrite(hFile, var);
    format(var, 32, "CarNitro=%d\n",PlayerCar[playerid][x][CarNitro]);fwrite(hFile, var);
    format(var, 32, "CarHyd=%d\n",PlayerCar[playerid][x][CarHyd]);fwrite(hFile, var);
    format(var, 32, "CarWheel=%d\n",PlayerCar[playerid][x][CarWheel]);fwrite(hFile, var);
    format(var, 32, "CarAusp=%d\n",PlayerCar[playerid][x][CarAusp]);fwrite(hFile, var);
    format(var, 32, "CarSideL=%d\n",PlayerCar[playerid][x][CarSideL]);fwrite(hFile, var);
    format(var, 32, "CarSideR=%d\n",PlayerCar[playerid][x][CarSideR]);fwrite(hFile, var);
    format(var, 32, "CarFB=%d\n",PlayerCar[playerid][x][CarFB]);fwrite(hFile, var);
    format(var, 32, "CarRB=%d\n",PlayerCar[playerid][x][CarRB]);fwrite(hFile, var);
    format(var, 32, "CarSpoiler=%d\n",PlayerCar[playerid][x][CarSpoiler]);fwrite(hFile, var);
    format(var, 32, "CarRoof=%d\n",PlayerCar[playerid][x][CarRoof]);fwrite(hFile, var);
    format(var, 32, "CarHood=%d\n",PlayerCar[playerid][x][CarHood]);fwrite(hFile, var);
    format(var, 32, "CarVents=%d\n",PlayerCar[playerid][x][CarVents]);fwrite(hFile, var);
    format(var, 32, "CarLamps=%d\n",PlayerCar[playerid][x][CarLamps]);fwrite(hFile, var);
    format(var, 32, "CarPJ=%d\n",PlayerCar[playerid][x][CarPJ]);fwrite(hFile, var);
    format(var, 32, "CarC1=%d\n",PlayerCar[playerid][x][CarC1]);fwrite(hFile, var);
    format(var, 32, "CarC2=%d\n",PlayerCar[playerid][x][CarC2]);fwrite(hFile, var);
    format(var, 32, "Preis=%d\n",PlayerCar[playerid][x][CarPreis]);fwrite(hFile,var);
    format(var, 32, "Plate=%s\n",PlayerCar[playerid][x][Plate]);fwrite(hFile, var);
    format(var, 32, "Tank=%d\n",PlayerCar[playerid][x][Tank]);fwrite(hFile,var);
    fclose(hFile);
    }
    }
    }
    }
    }

    Aber


    if(strcmp(cmd, "/gmx", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerInfo[playerid][pAdmin] >= 2000)
    {
    SaveStuff();
    GameModeExit();
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Das darfst du nicht tun !");
    }
    }
    return 1;
    }

    Function OnGameModeExit()
    {
    Elevator_Destroy();
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    OnPlayerCarUpdate(i);
    PlayerUpdate(i);
    gPlayerLogged[i] = 0;
    DisablePlayerCheckpoint(i);
    }
    }
    for(new i = 0; i < AUTOHAUSER; i++)
    {
    DestroyPickup(Dtc_Info[i]);
    }
    for(new i; i < MAX_FLAMES; i++)
    {
    KillFire(i);
    }
    return 1;
    }


    Function OnPlayerCarUpdate(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new x = 0; x < MaxVeh; x++)
    {
    if(Dtc_PlayerHaveCar[playerid][x])
    {
    DestroyVehicle(PlayerCar[playerid][x][CarId]);
    Dtc_Carlock[PlayerCar[playerid][x][CarId]] = 0;
    Dtc_LockCar(PlayerCar[playerid][x][CarId]);
    new string3[128];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    format(string3, sizeof(string3), "/Autos/%s%d.dtcar", playername3,x);
    new File: hFile = fopen(string3, io_write);
    if (hFile)
    {
    new var[32];
    format(var, 32, "CarId=%d\n",PlayerCar[playerid][x][CarId]);fwrite(hFile, var);
    format(var, 32, "CarModel=%d\n",PlayerCar[playerid][x][CarModel]);fwrite(hFile, var);
    format(var, 32, "CarPos_x=%.3f\n",PlayerCar[playerid][x][CarPos_x]);fwrite(hFile, var);
    format(var, 32, "CarPos_y=%.3f\n",PlayerCar[playerid][x][CarPos_y]);fwrite(hFile, var);
    format(var, 32, "CarPos_z=%.3f\n",PlayerCar[playerid][x][CarPos_z]);fwrite(hFile, var);
    format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][x][CarRotate]);fwrite(hFile, var);
    format(var, 32, "CarNitro=%d\n",PlayerCar[playerid][x][CarNitro]);fwrite(hFile, var);
    format(var, 32, "CarHyd=%d\n",PlayerCar[playerid][x][CarHyd]);fwrite(hFile, var);
    format(var, 32, "CarWheel=%d\n",PlayerCar[playerid][x][CarWheel]);fwrite(hFile, var);
    format(var, 32, "CarAusp=%d\n",PlayerCar[playerid][x][CarAusp]);fwrite(hFile, var);
    format(var, 32, "CarSideL=%d\n",PlayerCar[playerid][x][CarSideL]);fwrite(hFile, var);
    format(var, 32, "CarSideR=%d\n",PlayerCar[playerid][x][CarSideR]);fwrite(hFile, var);
    format(var, 32, "CarFB=%d\n",PlayerCar[playerid][x][CarFB]);fwrite(hFile, var);
    format(var, 32, "CarRB=%d\n",PlayerCar[playerid][x][CarRB]);fwrite(hFile, var);
    format(var, 32, "CarSpoiler=%d\n",PlayerCar[playerid][x][CarSpoiler]);fwrite(hFile, var);
    format(var, 32, "CarRoof=%d\n",PlayerCar[playerid][x][CarRoof]);fwrite(hFile, var);
    format(var, 32, "CarHood=%d\n",PlayerCar[playerid][x][CarHood]);fwrite(hFile, var);
    format(var, 32, "CarVents=%d\n",PlayerCar[playerid][x][CarVents]);fwrite(hFile, var);
    format(var, 32, "CarLamps=%d\n",PlayerCar[playerid][x][CarLamps]);fwrite(hFile, var);
    format(var, 32, "CarPJ=%d\n",PlayerCar[playerid][x][CarPJ]);fwrite(hFile, var);
    format(var, 32, "CarC1=%d\n",PlayerCar[playerid][x][CarC1]);fwrite(hFile, var);
    format(var, 32, "CarC2=%d\n",PlayerCar[playerid][x][CarC2]);fwrite(hFile, var);
    format(var, 32, "Preis=%d\n",PlayerCar[playerid][x][CarPreis]);fwrite(hFile,var);
    format(var, 32, "Plate=%s\n",PlayerCar[playerid][x][Plate]);fwrite(hFile, var);
    format(var, 32, "Tank=%d\n",PlayerCar[playerid][x][Tank]);fwrite(hFile,var);
    fclose(hFile);
    }
    }
    }
    }
    }

    if(strcmp(cmd,"/anbringen",true) == 0)
    {
    new kz[15];
    if(!IsPlayerInAnyVehicle(playerid)) { return SendClientMessage(playerid, COLOR_GRAD1, "Du bist in keinem Fahrzeug!"); }
    if(KennzeichenErlaubnis[playerid] == 0) { return SendClientMessage(playerid, COLOR_GRAD1, "Du hast kein Kennzeichen in der Stadthalle gekauft!"); }
    if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    new rand = random(2);
    if(rand == 1 || rand == 0)
    {
    new kenzeichenzahl = 1 + random(2500);
    format(kz,sizeof(kz),"SF-%d",kenzeichenzahl);
    }
    if(rand == 2)
    {
    new kenzeichenzahl2 = 1 + random(55555);
    format(kz,sizeof(kz),"SF-%d",kenzeichenzahl2);
    }
    new vehiclefid = GetPlayerVehicleID(playerid);
    SetVehicleNumberPlate(vehiclefid, kz);
    SetVehicleToRespawn(vehiclefid);
    new Float: X,Float: Y,Float: Z;
    GetPlayerPos(playerid,X,Y,Z);
    SetVehiclePos(vehiclefid,X,Y,Z);
    PutPlayerInVehicle(playerid,vehiclefid,0);
    new name[MAX_PLAYER_NAME], str[128];
    GetPlayerName(playerid, name, sizeof name);
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"*Fahrzeug wurde in San Fierro registriert.");
    format(str, sizeof str, "/Autos/%s%d.dtcar", name,Dtc_PlayerKey[playerid]);
    dini_Set(str, "Plate", kz);
    PlayerCar[playerid][Dtc_PlayerKey[playerid]][Plate] = kz;
    KennzeichenErlaubnis[playerid] = 0;
    }
    return 1;
    }

    Hey Breadfish forum,


    ich habe einen Bug mit meinem Nummernschild system.
    Ich habe es gemacht das es gespeichert wird aber wird es irgendwie nicht. Das alte nummernschild wird nicht vom neuen ersetzt. (nach dem restart)
    hier der Code.




    if(strcmp(cmd,"/anbringen",true) == 0) { new kz[15]; if(!IsPlayerInAnyVehicle(playerid)) { return SendClientMessage(playerid, COLOR_GRAD1, "Du bist in keinem Fahrzeug!"); } if(KennzeichenErlaubnis[playerid] == 0) { return SendClientMessage(playerid, COLOR_GRAD1, "Du hast kein Kennzeichen in der Stadthalle gekauft!"); } if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]]) { new rand = random(2); if(rand == 1 || rand == 0) { new kenzeichenzahl = 1 + random(2500); format(kz,sizeof(kz),"SF-%d",kenzeichenzahl); } if(rand == 2) { new kenzeichenzahl2 = 1 + random(55555); format(kz,sizeof(kz),"SF-%d",kenzeichenzahl2); } new vehiclefid = GetPlayerVehicleID(playerid); SetVehicleNumberPlate(vehiclefid, kz); SetVehicleToRespawn(vehiclefid); new Float: X,Float: Y,Float: Z; GetPlayerPos(playerid,X,Y,Z); SetVehiclePos(vehiclefid,X,Y,Z); PutPlayerInVehicle(playerid,vehiclefid,0); new name[MAX_PLAYER_NAME], str[128]; GetPlayerName(playerid, name, sizeof name); SendClientMessage(playerid,COLOR_LIGHTBLUE,"*Fahrzeug wurde in San Fierro registriert."); format(str, sizeof str, "/Autos/%s%d.dtcar", name,Dtc_PlayerKey[playerid]); dini_Set(str, "Plate", kz); PlayerCar[playerid][Dtc_PlayerKey[playerid]][Plate] = kz; KennzeichenErlaubnis[playerid] = 0; } return 1; }

    Hey Leute ich bins.


    Ich habe ein Problem mit meinem Script.
    Ich kann mein Biz nicht verkaufen, weil da kommt "Server: Unknown Command".
    Der befehl:
    if(strcmp(cmd, "/sellbiz", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    GetPlayerName(playerid, playername, sizeof(playername));
    if(PlayerInfo[playerid][pPbiskey] == 255)
    {
    SendClientMessage(playerid, COLOR_WHITE, "Du besitzt kein Gewerbe.");
    return 1;
    }
    if(PlayerInfo[playerid][pPbiskey] >= 100 && strcmp(playername, SBizzInfo[PlayerInfo[playerid][pPbiskey]-100][sbOwner], true) == 0)
    {
    new bouse = PlayerInfo[playerid][pPbiskey]-100;
    GivePlayerMoney(playerid,SBizzInfo[bouse][sbTill]);
    SBizzInfo[bouse][sbLocked] = 1;
    SBizzInfo[bouse][sbOwned] = 0;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    strmid(SBizzInfo[bouse][sbOwner], "The State", 0, strlen("The State"), 255);
    strmid(SBizzInfo[bouse][sbExtortion], "No-one", 0, strlen("No-one"), 255);
    ConsumingMoney[playerid] = 1;
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    format(string, sizeof(string), "~w~Gluekwunsch~n~ Du hast dein Geschaeft verkauft. Premie ~n~~g~$%d", SBizzInfo[bouse][sbTill]);
    GameTextForPlayer(playerid, string, 10000, 3);
    SBizzInfo[bouse][sbTill] = 0;
    PlayerInfo[playerid][pPbiskey] = 255;
    //Labe Update
    new string4[160];
    format(string4, sizeof(string4), "[Business zu Verkaufen - %s]\nPreis: %d$\nLevel: %d", SBizzInfo[bouse][sbMessage],SBizzInfo[bouse][sbBuyPrice],SBizzInfo[bouse][sbLevelNeeded]);
    Update3DTextLabelText(SBizzInfo[bouse][sbText],COLOR_FORSELL,string4);
    //Speichern
    OnPropUpdate();
    PlayerUpdate(playerid);
    return 1;
    }
    if(strcmp(playername, BizzInfo[PlayerInfo[playerid][pPbiskey]][bOwner], true) == 0)
    {
    new bouse = PlayerInfo[playerid][pPbiskey];
    BizzInfo[bouse][bLocked] = 1;
    BizzInfo[bouse][bOwned] = 0;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    strmid(BizzInfo[bouse][bOwner], "The State", 0, strlen("The State"), 255);
    strmid(BizzInfo[bouse][bExtortion], "No-one", 0, strlen("No-one"), 255);
    ConsumingMoney[playerid] = 1;
    GivePlayerMoney(playerid,BizzInfo[bouse][bTill]);
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    format(string, sizeof(string), "~w~Gluekwunsch~n~ Du hast dein Geschaeft verkauft. Premie ~n~~g~$%d", BizzInfo[bouse][bTill]);
    GameTextForPlayer(playerid, string, 10000, 3);
    BizzInfo[bouse][bTill] = 0;
    PlayerInfo[playerid][pPbiskey] = 255;
    //Labe Update
    new string3[160];
    format(string3, sizeof(string3), "[Business zu Verkaufen - %s]\nPreis: %d$\nLevel: %d", BizzInfo[bouse][bMessage],BizzInfo[bouse][bBuyPrice],BizzInfo[bouse][bLevelNeeded]);
    Update3DTextLabelText(BizzInfo[bouse][bText],COLOR_FORSELL,string3);
    //Speichern
    OnPropUpdate();
    PlayerUpdate(playerid);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE, "Dir gehört kein Geschäfft.");
    }
    }
    return 1;
    }