Beiträge von MnX

    SpielerSpeichern
    else if(dialogid == 2)
    {
    if(!response) return 1;
    else
    {
    if(response == 1)
    {
    if(IsPlayerConnected(playerid))
    {
    if(strlen(inputtext) > 24 || strlen(inputtext) < 4)
    {
    SendClientMessage(playerid, COLOR_GREY, "*:: Das Passwort muss mindestens 4 und maximal 24 Buchstaben lang sein. ::*");
    SendClientMessage(playerid, COLOR_GREEN, "*:: Um das Registrierungs-Fenster wiederaufzurufen: *:: (/register) ::*");
    return 1;
    }
    else
    {
    if(ReadRegister(playerid))
    {
    SendClientMessage(playerid, COLOR_GREY, "*:: Du bist bereits registriert ::*");
    return 1;
    }
    new pass[256], string[256];
    format(PlayerInfo[playerid][pPassword], 24, "%s", inputtext);
    format(pass, 256, "%s", PlayerInfo[playerid][pPassword]);
    Encrypt(pass);
    format(string, sizeof(string), "/User/%s.cer", ReadName(playerid));
    new File: file = fopen(string, io_read);
    if (file)
    {
    SendClientMessage(playerid, COLOR_GREY, "*::* Du bist bereits registriert *::*");
    fclose(file);
    return 1;
    }
    PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
    new File:hFile;
    hFile = fopen(string, io_append);
    new var[32];
    format(var, 32, "%s\n", pass); fwrite(hFile, var);
    format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]); fwrite(hFile, var);
    format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]); fwrite(hFile, var);
    format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]); fwrite(hFile, var);
    format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pBank]); fwrite(hFile, var);
    format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]); fwrite(hFile, var);
    format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]); fwrite(hFile, var);
    format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]); fwrite(hFile, var);
    format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]); fwrite(hFile, var);
    format(var, 32, "Admin=%d\n",PlayerInfo[playerid][pAdmin]); fwrite(hFile, var);
    format(var, 32, "Supporter=%d\n",PlayerInfo[playerid][pSupporter]); fwrite(hFile, var);
    format(var, 32, "Skin=%d\n",PlayerInfo[playerid][pSkin]); fwrite(hFile, var);
    format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]); fwrite(hFile, var);
    format(var, 32, "FSkin=%d\n",PlayerInfo[playerid][pFSkin]); fwrite(hFile, var);
    format(var, 32, "Knastzeit=%d\n",PlayerInfo[playerid][pKnastzeit]); fwrite(hFile, var);
    format(var, 32, "Wanteds=%d\n",PlayerInfo[playerid][pWanteds]); fwrite(hFile, var);
    format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]); fwrite(hFile, var);
    format(var, 32, "JPoints=%d\n",PlayerInfo[playerid][pJPoints]); fwrite(hFile, var);
    format(var, 32, "Knast=%d\n",PlayerInfo[playerid][pKnast]); fwrite(hFile, var);
    format(var, 32, "Drogen=%d\n",PlayerInfo[playerid][pDrogen]); fwrite(hFile, var);
    format(var, 32, "Materialien=%d\n",PlayerInfo[playerid][pMaterials]); fwrite(hFile, var);
    format(var, 32, "Points=%d\n",PlayerInfo[playerid][pPoint]); fwrite(hFile, var);
    format(var, 32, "Experince=%d\n",PlayerInfo[playerid][pExp]); fwrite(hFile, var);
    format(var, 32, "Duty=%d\n",PlayerInfo[playerid][pDuty]); fwrite(hFile, var);
    format(var, 32, "Respekt=%d\n",PlayerInfo[playerid][pRespekt]); fwrite(hFile, var);
    format(var, 32, "Nummer=%d\n",PlayerInfo[playerid][pNummer]); fwrite(hFile, var);
    format(var, 32, "Buch=%d\n",PlayerInfo[playerid][pBuch]); fwrite(hFile, var);
    format(var, 32, "AutoLiz=%d\n",PlayerInfo[playerid][pAutoLiz]); fwrite(hFile, var);
    format(var, 32, "BikeLiz=%d\n",PlayerInfo[playerid][pBikeLiz]); fwrite(hFile, var);
    format(var, 32, "FlugLiz=%d\n",PlayerInfo[playerid][pFlugLiz]); fwrite(hFile, var);
    format(var, 32, "WaffLiz=%d\n",PlayerInfo[playerid][pWaffLiz]); fwrite(hFile, var);
    format(var, 32, "AnglLiz=%d\n",PlayerInfo[playerid][pAnglLiz]); fwrite(hFile, var);
    format(var, 32, "BootLiz=%d\n",PlayerInfo[playerid][pBootLiz]); fwrite(hFile, var);
    format(var, 32, "LKWLiz=%d\n",PlayerInfo[playerid][pLKWLiz]); fwrite(hFile, var);
    format(var, 32, "Kopfgeld=%d\n",PlayerInfo[playerid][pKopfgeld]); fwrite(hFile, var);
    format(var, 32, "Opfer=%d\n",PlayerInfo[playerid][pOpfer]); fwrite(hFile, var);
    format(var, 32, "Macher=%d\n",PlayerInfo[playerid][pMacher]); fwrite(hFile, var);
    format(var, 32, "Auftrag=%d\n",PlayerInfo[playerid][pAuftrag]); fwrite(hFile, var);
    format(var, 32, "Key=%d\n",PlayerInfo[playerid][pKey]); fwrite(hFile, var);
    format(var, 32, "CarID=%d\n",PlayerInfo[playerid][pCarID]); fwrite(hFile, var);
    fclose(hFile);
    SendClientMessage(playerid, COLOR_WHITE, "*::* Du hast dich erfolgreich registriert! *::* (/login) *::*");
    return 1;
    }
    }
    }
    else if(response == 0)
    {
    SendClientMessage(playerid, COLOR_GREEN, "*:: Um das Registrierungs-Fenster wiederaufzurufen: *:: (/register) ::*");
    return 1;
    }
    }
    }


    SpielerLaden
    else if(dialogid == 3)
    {
    if(!response) return 1;
    else
    {
    if(response == 1)
    {
    if(IsPlayerConnected(playerid))
    {
    if(strlen(inputtext) > 24 || strlen(inputtext) < 4)
    {
    SendClientMessage(playerid, COLOR_GREY, "*:: Das Passwort muss mindestens 4 und maximal 24 Buchstaben lang sein. ::*");
    SendClientMessage(playerid, COLOR_GREEN, "*:: Um das Einloggungs-Fenster wiederaufzurufen: *:: (/login) ::*");
    return 1;
    }
    else
    {
    if(ReadLogin(playerid))
    {
    SendClientMessage(playerid, COLOR_GREY, "*:: Du bist bereits eingeloggt ::*");
    return 1;
    }
    new pass[256];
    format(pass, 255, "%s", inputtext);
    Encrypt(pass);
    OnPlayerLogin(playerid, pass);
    /*if(PlayerInfo[playerid][pEingang] > 0)
    {
    new string[256];
    format(string, 256, "*:: Du hast %d neue Nachrichten! ::*", PlayerInfo[playerid][pEingang]);
    SendClientMessage(playerid, COLOR_GREY, string);
    }*/
    return 1;
    }
    }
    }

    else if(PlayerInfo[playerid][pTeam] == 7) //Hells Angels
    {
    SetPlayerPos(playerid,491.1263,-81.3639,998.7578); //Hells Angels Spawn
    SetPlayerCameraPos(playerid, 490.0, 1200.0, 990.0);
    SetPlayerSkin(playerid,284);
    SetPlayerCameraLookAt(playerid, 491.1263,-81.3639,998.7578);
    SetPlayerInterior(playerid, 11);
    GivePlayerWeapon(playerid, 24, 1000);
    }

    Super Danke der Error ist weg :D


    Ich weiß nicht wie ich drauf gekommen bin aber das mit crash wusst ich natürlich nicht :D


    Dankeschön nochmal :D

    public von IstAngelsCar

    SQL
    public IstAngelsCar(playerid)
    {
        new carid = GetPlayerVehicleID(playerid);
    	if(carid == IstAngelsCar[0] || carid == IstAngelsCar[1] || carid == IstAngelsCar[2] || carid == IstAngelsCar[3] || carid == IstAngelsCar[4] || carid == IstAngelsCar[5] || carid == IstAngelsCar[6] || carid == IstAngelsCar[7])
    	{ return 1; }
    	else { return 0; }
    }


    CroXx16 es ist eig das WorldOfRedApple.pwn wollte aber nicht so gerne das jeder das sieht ^^

    Ich hab einproblem unzwar dieses



    Zeile 483-490

    PHP
    IstAngelsCar[0] = AddStaticVehicle(463,-292.2834,1294.3105,53.2030,85.8507,113,113); // Hells Angels 1
    	IstAngelsCar[1] = AddStaticVehicle(463,-291.8201,1298.8793,53.3407,77.7098,113,113); // Hells Angels 2
    	IstAngelsCar[2] = AddStaticVehicle(463,-291.2604,1303.8956,53.5103,93.4164,113,113); // Hells Angels 3
    	IstAngelsCar[3] = AddStaticVehicle(463,-290.7521,1307.9891,53.5355,79.0722,113,113); // Hells Angels 4
    	IstAngelsCar[4] = AddStaticVehicle(463,-290.1631,1312.7787,53.7110,95.5351,113,113); // Hells Angels 5
    	IstAngelsCar[5] = AddStaticVehicle(560,-289.5478,1317.1541,53.9764,82.3663,113,113); // Hells Angels 6
    	IstAngelsCar[6] = AddStaticVehicle(409,-289.4748,1321.9421,54.1732,81.5805,113,113); // Hells Angels 7
    	IstAngelsCar[7] = AddStaticVehicle(560,-287.8734,1326.2500,54.1817,80.6247,113,113); // Hells Angels 8


    Wenn ich z.b

    PHP
    new IstAngelsCar{7];

    erstelle buggt Pawno und macht "Keine Rückmeldung"


    An was liegt das?

    SQL
    case DIALOG_RADIO
     	 {


    edit: Eine frage wenn ich unter SendClient message das mache


    SQL
    StopAudioStreamForPlayer(playerid);


    Krieg ich ein Warning und wenn ich weg mache keinns why?

    Ich find irgentwie nichts und auch wenn ich das neue ausbaue kommt es zu dem fehler undefindet ocmd:kick (das ist garkein klammer fehler)


    edit: Hab die Klammergefunden :D


    edit: Neuer Error :D raff da wieder nix :D


    Code


    Error:

    Kommt immer noch das Problem und wenn ich das rausnehmen zeigt der aufeinmal an das SpielerSpeichern und ocmd:kick,ban usw.. undefindet sind


    Weiß einer evtl why? (kommt gleiche errors wie oben (die sind auch geblieben))

    Ich hab ein Radiosystem nach einem Tutorial gemacht und ich begreife immer noch nicht was daran falsch sein soll


    Zeile
    ocmd:radio(playerid,params[])
    {
    #pragma unused params
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    ShowPlayerDialog(playerid,DIALOG_RADIO,DIALOG_STYLE_LIST,"Radio - Sender","Technobase.FM\nHardbase.FM\Blubtime.FM","OK","Quit");
    }
    else if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
    {
    SendClientMessage(playerid,ROT,"Du bist kein Fahrer");
    }
    else
    {
    SendClientMessage(playerid,ROT,"Du bist keinem Fahrzeug");
    }
    return 1;
    }


    Errors:


    Währe sehr Dankbar wenn es mir jemand erklären würde.