Beiträge von James.Spader

    Hallo :)


    Ich habe ein Problem, und zwar geht mein Tacho nicht. Bei manchen Fahrzeugen geht der Tacho, aber bei manchen auch nicht, ist immer unterschiedlich.
    in der Log steht dies:


    der Timer2:

    public Timer2()
    {
    new Float:maxspeed = 200.0;
    new plname[MAX_PLAYER_NAME];
    new string[256];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(SafeTime[i] > 0)
    {
    SafeTime[i]--;
    }
    if(SafeTime[i] == 1)
    {
    if(gPlayerAccount[i] == 1 && gPlayerLogged[i] == 0)
    {
    SendClientMessage(i, COLOR_WHITE, "");
    }
    }
    if(GetPlayerState(i) == 2)
    {
    GetPlayerPos(i, TelePos[i][3], TelePos[i][4], TelePos[i][5]);
    if(TelePos[i][5] > 550.0)
    {
    TelePos[i][0] = 0.0;
    TelePos[i][1] = 0.0;
    }
    if(TelePos[i][0] != 0.0)
    {
    new Float:xdist = TelePos[i][3]-TelePos[i][0];
    new Float:ydist = TelePos[i][4]-TelePos[i][1];
    new Float:sqxdist = xdist*xdist;
    new Float:sqydist = ydist*ydist;
    new Float:distance = (sqxdist+sqydist)/31;
    if(gSpeedo[i] == 2)
    {
    if(distance <10)
    {
    format(string, 256, "~n~~n~~n~~n~~n~~n~~n~~g~mph : ~w~%.0f",distance);
    }
    if(distance > 10 && distance < 100)
    {
    format(string, 256, "~n~~n~~n~~n~~n~~n~~n~~g~mph : ~w~%.0f",distance);
    }
    if(distance > 100)
    {
    format(string, 256, "~n~~n~~n~~n~~n~~n~~n~~g~mph : ~w~%.0f",distance);
    }
    GameTextForPlayer(i, string, 2000, 5);
    }
    if(distance > maxspeed && PlayerInfo[i][pAdmin] < 1)
    {
    new tmpcar = GetPlayerVehicleID(i);
    if(!IsAPlane(tmpcar))
    {
    GetPlayerName(i, plname, sizeof(plname));
    format(string, 256, "[!]: %s(%d) %.0f km/h",plname,i,distance);
    ABroadCast(COLOR_YELLOW,string,1);
    }
    }
    }
    if(TelePos[i][5] < 550.0 && TelePos[i][3] != 0.0)
    {
    TelePos[i][0] = TelePos[i][3];
    TelePos[i][1] = TelePos[i][4];
    }
    }
    if(CellTime[i] > 0)
    {
    if (CellTime[i] == cchargetime)
    {
    CellTime[i] = 1;
    if(Mobile[Mobile[i]] == i)
    {
    CallCost[i] = CallCost[i]+callcost;
    }
    }
    CellTime[i] = CellTime[i] +1;
    if (Mobile[Mobile[i]] == 255 && CellTime[i] == 5)
    {
    if(IsPlayerConnected(Mobile[i]))
    {
    new called[MAX_PLAYER_NAME];
    GetPlayerName(Mobile[i], called, sizeof(called));
    format(string, sizeof(string), "* %s's Handy klingelt.", called);
    RingTone[Mobile[i]] = 10;
    ProxDetector(30.0, Mobile[i], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    }
    }
    if(CellTime[i] == 0 && CallCost[i] > 0)
    {
    format(string, sizeof(string), "~w~Der Anruf kostet~n~~r~$%d",CallCost[i]);
    GivePlayerMoney(i, -CallCost[i]);
    SBizzInfo[2][sbTill] += CallCost[i];
    ExtortionSBiz(2, CallCost[i]);
    GameTextForPlayer(i, string, 5000, 1);
    CallCost[i] = 0;
    }
    if(TransportTime[i] > 0)
    {//Taxi driver and passenger only
    if(TransportTime[i] >= 16)
    {
    TransportTime[i] = 1;
    if(TransportDriver[i] < 999)
    {
    if(IsPlayerConnected(TransportDriver[i]))
    {
    TransportCost[i] += TransportValue[TransportDriver[i]];
    TransportCost[TransportDriver[i]] = TransportCost[i];
    }
    }
    }
    TransportTime[i] += 1;
    format(string, sizeof(string), "~r~%d ~w~: ~g~$%d",TransportTime[i],TransportCost[i]);
    GameTextForPlayer(i, string, 15000, 6);
    }
    }
    }
    new Float:Speedo_X,Float:Speedo_Y,Float:Speedo_Z;
    new Float:Speedo_HP;
    for(new i=0; i<SLOTS; i++)
    {
    if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && !IsANoTachoVehicle(GetPlayerVehicleID(i)))
    {
    GetPlayerPos(i, Speedo_X, Speedo_Y, Speedo_Z);
    GetPlayerVehicleID(i);
    GetVehicleHealth(GetPlayerVehicleID(i), Speedo_HP);
    new str1[256],str2[256],str3[256],str4[256];
    if(TachoAn[i] == 0)
    {
    TextDrawShowForPlayer(i, box[i]); TextDrawShowForPlayer(i, fahrzeug[i]); TextDrawShowForPlayer(i, kmh[i]);
    TextDrawShowForPlayer(i, tank[i]); TextDrawShowForPlayer(i, zustand[i]); ShowProgressBarForPlayer(i, BarZustand[i]); TextDrawShowForPlayer(i, KilometerAnzeige[i]); TextDrawShowForPlayer(i, StatusAnzeige[i]);
    TachoAn[i] = 1;
    }
    new veh = GetPlayerVehicleID(i);
    new Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,final_speed_int;
    GetVehicleVelocity(veh, speed_x, speed_y, speed_z);
    final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*120.0; // 136.666667 = kmph // 85.4166672= mph
    final_speed_int = floatround(final_speed,floatround_round);
    new kmh_anzahl = final_speed_int;
    format(str1,sizeof(str1),"Fahrzeug: ~b~%s ~n~~l~---------------------------------",VehicleName[GetVehicleModel(GetPlayerVehicleID(i))-400]);
    TextDrawSetString(fahrzeug[i], str1);


    if(kmh_anzahl >= 150)
    {
    format(str2,sizeof(str2),"KM/H: ~r~%d ~n~~l~---------------------------------",kmh_anzahl);
    TextDrawSetString(kmh[i], str2);
    }
    else if(kmh_anzahl >= 100)
    {
    format(str2,sizeof(str2),"KM/H: ~y~%d ~n~~l~---------------------------------",kmh_anzahl);
    TextDrawSetString(kmh[i], str2);
    }
    else if(kmh_anzahl >= 50)
    {
    format(str2,sizeof(str2),"KM/H: ~g~%d ~n~~l~---------------------------------",kmh_anzahl);
    TextDrawSetString(kmh[i], str2);
    }
    else
    {
    format(str2,sizeof(str2),"KM/H: ~b~%d ~n~~l~---------------------------------",kmh_anzahl);
    TextDrawSetString(kmh[i], str2);
    }
    new vehicleid = GetPlayerVehicleID(i);
    format(str3,sizeof(str3),"Tank: ~g~%d / %d Liter ~n~~l~---------------------------------", Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)));
    TextDrawSetString(tank[i], str3);
    if(kmh_anzahl == 0) {}
    else
    {
    Kilometer[vehicleid] += final_speed*0.0008;
    }
    format(str4,sizeof(str4),"Kilometer: ~g~%d ~n~~l~---------------------------------",floatround(Kilometer[vehicleid],floatround_floor));
    TextDrawSetString(KilometerAnzeige[i], str4);
    if(Speedo_HP >= 551)
    {
    SetProgressBarColor(BarZustand[i], 0x00A628FF);
    }
    else if(Speedo_HP >= 361)
    {
    SetProgressBarColor(BarZustand[i], 0xFFA300FF);
    }
    else
    {
    SetProgressBarColor(BarZustand[i], 0xFF0000FF);
    }
    SetProgressBarValue(BarZustand[i], floatround(Speedo_HP,floatround_round)-281);
    UpdateProgressBar(BarZustand[i], i);
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
    if(engine == VEHICLE_PARAMS_ON && lights == VEHICLE_PARAMS_OFF)
    {
    TextDrawSetString(StatusAnzeige[i], " ~g~Motor~w~ - ~r~Licht");
    }
    else if(engine == VEHICLE_PARAMS_ON && lights == VEHICLE_PARAMS_ON)
    {
    TextDrawSetString(StatusAnzeige[i], " ~g~Motor~w~ - ~g~Licht");
    }
    else if(engine == VEHICLE_PARAMS_OFF && lights == VEHICLE_PARAMS_ON)
    {
    TextDrawSetString(StatusAnzeige[i], " ~r~Motor~w~ - ~g~Licht");
    }
    else if(engine == VEHICLE_PARAMS_OFF && lights == VEHICLE_PARAMS_OFF)
    {
    TextDrawSetString(StatusAnzeige[i], " ~r~Motor~w~ - ~r~Licht");
    }
    else if(engine == VEHICLE_PARAMS_ON)
    {
    TextDrawSetString(StatusAnzeige[i], " ~g~Motor~w~ - ~r~Licht");
    }
    else
    {
    TextDrawSetString(StatusAnzeige[i], " ~r~Motor~w~ - ~r~Licht");
    }
    }
    SavePlayerPos[i][sX] = Speedo_X, SavePlayerPos[i][sY] = Speedo_Y, SavePlayerPos[i][sZ] = Speedo_Z;
    }
    for(new i=0; i<SLOTS; i++)
    {
    if(!IsPlayerInAnyVehicle(i))
    {
    TextDrawHideForPlayer(i, box[i]); TextDrawHideForPlayer(i, fahrzeug[i]); TextDrawHideForPlayer(i, kmh[i]);
    TextDrawHideForPlayer(i, tank[i]); TextDrawHideForPlayer(i, zustand[i]); HideProgressBarForPlayer(i, BarZustand[i]); TextDrawHideForPlayer(i, KilometerAnzeige[i]); TextDrawHideForPlayer(i, StatusAnzeige[i]);
    TachoAn[i] = 0;
    }
    }
    return 1;


    }


    Ich hoffe ihr habt eine Lösung. :/


    Liebe Grüße,
    James.

    Hallöchen,
    ich habe das Problem, ich habe versucht einen einheitlichen Befehl mit /tore für alle Tore zu erstellen. Ich bekomme aber 26 Errors im Script, ich habe aber nichts verändert, außer den Befehl eingebaut.


    Die Zeilen:

    if(strcmp(cmdtext, "/tore", true)==0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsACopAll(playerid) || PlayerInfo[playerid][pAdmin] == 2000)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0,1540.10, -1627.69, 15.07))
    {
    MoveObject(lspd1,1540.10, -1627.69, 9.05, 4);
    SetTimer("lspd1timer", 5000, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0,1590.37, -1637.95, 14.49))
    {
    MoveObject(lspd2, 1590.37, -1637.95, 8.91, 4);
    SetTimer("lspd2timer", 5000, 0);
    {
    }
    else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || IsARegM(playerid) || PlayerInfo[playerid][pAdmin] == 2000)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0,-2606.65, 579.00, 16.06))
    {
    MoveObject(fbitor1,-2606.65, 579.00, 9.93, 4);
    SetTimer("fbitor1timer", 5000, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0,-2566.63, 578.90, 16.21))
    {
    MoveObject(fbitor2,-2566.63, 578.86, 9.88, 4);
    SetTimer("fbitor2timer", 5000, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0,-2666.76, 578.76, 16.17))
    {
    MoveObject(fbitor3,-2666.77, 579.05, 10.08, 4);
    SetTimer("fbitor3timer", 5000, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0,-2607.57, 695.98, 29.48))
    {
    MoveObject(fbitor4,-2607.57, 695.98, 22.70, 4);
    SetTimer("fbitor4timer", 5000, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0,2397.72290, 2513.26270, 12.30580))
    {
    MoveObject(nmsator1,2397.72290, 2513.26270, 6.44568, 4);
    SetTimer("nmsa1timer", 5000, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0,2479.94751, 2509.87500, 10.92430))
    {
    MoveObject(nmsator2,2479.94751, 2516.49512, 8.14430, 4);
    MoveObject(nmsator3,2479.94751, 2509.87500, 8.14430, 4);
    SetTimer("nmsa2timer", 5000, 0);
    }
    }
    else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || IsARegM(playerid) || PlayerInfo[playerid][pAdmin] == 2000)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0,-19.90, 2066.58, 18.76))
    {
    MoveObject(armytor,-19.90, 2066.58, 13.00, 4);
    SetTimer("armytortimer", 5000, 0);
    }
    }
    else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pAdmin] == 2000)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0,2486.58, 1623.42, 12.43))
    {
    MoveObject(triadentor1,2486.58, 1623.42, 6.48, 4);
    SetTimer("triadentor1timer", 5000, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0,2427.40, 1703.15, 12.37))
    {
    MoveObject(triadentor2,2427.40, 1703.15, 6.68, 4);
    SetTimer("triadentor2timer", 5000, 0);
    }
    }
    else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pAdmin] == 2000)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0,321.2000100,-1488.4000000,26.4000000))
    {
    MoveObject(hitmantor1,321.2000100,-1488.4000000,15.0000000, 4);
    SetTimer("hitmantor1timer", 5000, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0,282.2000100,-1542.1000000,26.4000000))
    {
    MoveObject(hitmantor2,282.2000100,-1542.1000000,15.0000000, 4);
    SetTimer("hitmantor2timer", 5000, 0);
    }
    }
    else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pAdmin] == 2000)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0,2397.72290, 2513.26270, 12.30580))
    {
    MoveObject(russentor,708.29998779297,-1415.8000488281,9.1000003814697, 4);
    SetTimer("russentortimer", 5000, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0,647.29998779297,-1547.3000488281,16.799999237061))
    {
    MoveObject(russentor2,647.29998779297,-1547.3000488281,11.000000000, 4);
    SetTimer("russentor2timer", 5000, 0);
    }
    }
    else if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pAdmin] == 2000)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0,2397.72290, 2513.26270, 12.30580))
    {
    MoveObject(russentor,708.29998779297,-1415.8000488281,9.1000003814697, 4);
    SetTimer("russentortimer", 5000, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0,2479.94751, 2516.49512, 10.92430))
    {
    MoveObject(russentor2,647.29998779297,-1547.3000488281,11.000000000, 4);
    SetTimer("russentor2timer", 5000, 0);
    }
    }
    }
    return 1;
    }


    Ich hoffe ihr könnt helfen.. :)



    MfG,
    James

    Hallölchen,
    Ich habe das Problem, wenn ich mich nach der Registration, das Passwort nochmal eingebe zum bestätigen (dies wird dann als Login angezeigt) fall ich manchmal aus der welt, manchmal aber auch nicht.
    Die Zeilen:

    public OnPlayerRegister(playerid, password[])
    {
    if(IsPlayerConnected(playerid))
    {
    new string3[64];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    format(string3, sizeof(string3), "/Accounts/%s.ini", playername3);
    new File: hFile = fopen(string3, io_write);
    SetPlayerHealth(playerid,100);
    SpawnPlayer(playerid);
    if (hFile)
    {
    strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
    new var[32];
    format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
    PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
    format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
    format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
    format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
    format(var, 32, "UpgradePunkte=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
    format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
    format(var, 32, "Registriert=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
    format(var, 32, "Geschlecht=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
    format(var, 32, "Alter=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
    format(var, 32, "Herkunft=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
    format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
    format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
    format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
    format(var, 32, "Geld=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
    format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
    format(var, 32, "Verbrechen=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
    format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
    format(var, 32, "Tode=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
    format(var, 32, "Eingesperrt=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
    format(var, 32, "WantedTode=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
    format(var, 32, "Telefonbuch=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
    format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
    format(var, 32, "Fische=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
    format(var, 32, "GrößterFisch=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
    format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
    format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
    format(var, 32, "Kopfgeld=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
    format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
    format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
    format(var, 32, "Materialien=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
    format(var, 32, "Drogen=%d\n",PlayerInfo[playerid][pDrugs]);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, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
    format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
    format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
    format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
    format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
    format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
    format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
    format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
    format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
    format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
    format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
    format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
    format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
    format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
    format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
    format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
    GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
    format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
    format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
    format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
    format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
    format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
    format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
    format(var, 32, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
    format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
    format(var, 32, "Perso=%d\n",PlayerInfo[playerid][pOwnPerso]);fwrite(hFile, var);
    format(var, 32, "GangJailed=%d\n",PlayerInfo[playerid][pGangJailed]);fwrite(hFile, var);
    format(var, 32, "GWD=%f\n",PlayerInfo[playerid][pGWD]);fwrite(hFile, var);
    if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
    {
    PlayerInfo[playerid][pPos_x] = 1684.9;
    PlayerInfo[playerid][pPos_y] = -2244.5;
    PlayerInfo[playerid][pPos_z] = 13.5;
    }
    if(Spectate[playerid] != 255)
    {
    PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
    PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
    PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
    PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
    PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
    }
    format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
    format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
    format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
    format(var, 32, "Autoschein=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
    format(var, 32, "Truckschein=%d\n",PlayerInfo[playerid][pTruckLic]);fwrite(hFile, var);
    format(var, 32, "Motorradschein=%d\n",PlayerInfo[playerid][pBikeLic]);fwrite(hFile, var);
    format(var, 32, "Flugschein=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
    format(var, 32, "Bootschein=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
    format(var, 32, "Angelschein=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
    format(var, 32, "Waffenschein=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
    format(var, 32, "Waffe1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
    format(var, 32, "Waffe2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
    format(var, 32, "Waffe3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
    format(var, 32, "Waffe4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
    format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
    format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
    format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
    format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
    format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
    format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
    format(var, 32, "PayDayZeit=%d\n",PlayerInfo[playerid][pPayDayZeit]);fwrite(hFile, var);
    format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
    format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
    format(var, 32, "Siege=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
    format(var, 32, "Niederlagen=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
    format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
    format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
    format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
    format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
    format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
    format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
    format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var);
    format(var, 32, "Warnungen=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
    format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
    format(var, 32, "Tank=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
    format(var, 32, "Verheiratet=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
    format(var, 32, "Verheiratetmit=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
    format(var, 32, "Punkte=%s\n",PlayerInfo[playerid][pPunkte]);fwrite(hFile, var);
    format(var, 32, "MuteTime=%d\n",PlayerInfo[playerid][pMuteTime]);fwrite(hFile, var);
    format(var, 32, "Knast=%d\n",Knast[playerid]);fwrite(hFile, var);
    format(var, 32, "KnastTime=%d\n",KnastTime[playerid]);fwrite(hFile, var);
    format(var, 32, "Mauled=%d\n",PlayerInfo[playerid][pMauled]);fwrite(hFile, var);
    format(var, 32, "Gehalt=%d\n",PlayerInfo[playerid][pGehalt]);fwrite(hFile, var);
    format(var, 32, "Wanteds=%d\n",WantedLevel[playerid]);fwrite(hFile, var);
    format(var, 32, "SpawnChange=%d\n",SpawnChange[playerid]);fwrite(hFile, var);
    format(var, 32, "FrakSperre=%d\n",PlayerInfo[playerid][pFrakSperre]);fwrite(hFile, var);
    fclose(hFile);
    new string[256];
    format(string,sizeof(string),"{FFFFFF}Bitte logge dich nun mit deinem gewünschten Passwort ein \nNickname: %s",playername3);
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{FFFFFF}*** | Login",string,"Login","");
    }
    }
    return 1;
    }


    ich hoffe ihr könnt helfen. :)



    MfG,
    James.

    Also,
    ich gehe zum Autohaus und will mir ein neues Fahrzeug kaufen, das funktioniert auch, es kommt aber immer diese Meldung:
    Diese Meldung taucht auch auf, wenn ich zum Autohaus gehe und vorhabe ein Fahrzeug zu kaufen, aber den falschen Schlüssel verwende.
    format(stringbrs, sizeof(stringbrs), "** Du hast jetzt $%d in deiner Tasche, fahr zur Geldwäsche.",BANKGELD);


    somit muss sich ja irgendetwas überschneiden, was dieses Format auch hervorbringt und ich weiß nicht was.
    Der komplette Code steht oben. ;)

    Hallöchen,
    ich habe das Problem, dass wenn ich ins Autohaus gehe, die strings sich anscheinend überschneiden, weil dann kommt auch die Meldung, dass ich zur Geldwäsche fahren soll.
    Die Zeilen:

    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    for(new x = 0; x < AUTOHAUSER;x++)
    {
    if(PlayerToPoint(1.5, playerid, DtcSonstiges[x][0][0],DtcSonstiges[x][0][1],DtcSonstiges[x][0][2]) && !Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]] || pickupid == Dtc_Info[x] && !Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    TogglePlayerControllable(playerid, 0);
    SetPlayerVirtualWorld(playerid,55+playerid);
    new string[246];
    dtc_AutohausCar[playerid] = 0;
    dtc_AutohausCat[playerid] = x;
    new c1 = random(120);
    new c2 = random(120);
    new car;
    new preis;
    for(new ah = 0; ah < sizeof(dtcKaufliste);ah++)
    {
    if(car == 0 && dtcKaufliste[ah][dtc_Autohaus] == x)
    {
    car = dtcKaufliste[ah][dtc_CarModel];
    preis = dtcKaufliste[ah][dtc_CarModel];
    }
    }
    SetPlayerCameraPos(playerid, DtcSonstiges[x][2][0],DtcSonstiges[x][2][1],DtcSonstiges[x][2][2]);
    SetPlayerCameraLookAt(playerid, DtcSonstiges[x][1][0],DtcSonstiges[x][1][1],DtcSonstiges[x][1][2]);
    dtc_AutohausSCar[playerid] = CreateVehicle(car, DtcSonstiges[x][1][0],DtcSonstiges[x][1][1],DtcSonstiges[x][1][2],DtcSonstiges[x][1][3],c1,c2,-1);
    SetPlayerPos(playerid, DtcSonstiges[x][3][0],DtcSonstiges[x][3][1],DtcSonstiges[x][3][2]);
    SetVehicleVirtualWorld(dtc_AutohausSCar[playerid],55+playerid);
    format(string,sizeof(string),"~r~---------- AUTOHAUS ----------~n~~g~Fahrzeug: ~w~%s~n~~g~Preis: ~w~$%d~n~~b~Auswaehlen:~n~~w~ <Num 4<~b~&~w~>Num 6> ~n~~b~Kaufen:~w~ Enter ~n~~b~Abbrechen:~w~ Tab",CarName[car-400],preis);
    if(!CarKauf[playerid])
    {
    CarKauf[playerid] = TextDrawCreate(200,310,string);
    TextDrawAlignment(CarKauf[playerid],1);
    TextDrawUseBox(CarKauf[playerid],1);
    TextDrawBoxColor(CarKauf[playerid],0x000000FF);
    TextDrawSetOutline(CarKauf[playerid],1);
    TextDrawBackgroundColor(CarKauf[playerid],COLOR_BLACK);
    TextDrawSetOutline(CarKauf[playerid],1);
    TextDrawFont(CarKauf[playerid], 1);
    TextDrawLetterSize(CarKauf[playerid], 0.300000, 1.899999);
    //TextDrawSetProportional(CarKauf[playerid], 2);
    TextDrawTextSize(CarKauf[playerid],450,410);
    TextDrawShowForPlayer(playerid,CarKauf[playerid]);
    }
    else
    {
    TextDrawHideForPlayer(playerid,CarKauf[playerid]);
    TextDrawSetString(CarKauf[playerid],string);
    TextDrawShowForPlayer(playerid,CarKauf[playerid]);
    }
    }
    else if(PlayerToPoint(1.5, playerid, DtcSonstiges[x][0][0],DtcSonstiges[x][0][1],DtcSonstiges[x][0][2]) && Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]] || pickupid == Dtc_Info[x] && Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    new mv = MaxVeh;
    if(mv > 1)
    {
    SendClientMessage(playerid, COLOR_GREEN, "{006600}Autohaus{FFFF00}: Du besitzt schon ein Fahrzeug mit deinem ausgewählten Schlüssel!");
    SendClientMessage(playerid, COLOR_GREEN, "{006600}Autohaus{FFFF00}: Du kannst deine Fahrzeuge mit '/cc' verwalten!");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du besitzt schon ein Fahrzeug!");
    }
    }
    }
    if(pickupid == GELDSACK)
    {
    if(atmrob == 1)
    {
    SendClientMessage(playerid,COLOR_GRAD1,"Der Tresor wurde gerade erst ausgeraubt!");
    return 1;
    }
    else
    {
    new stringbrs[128];
    new BANKGELD = 60000 + random(80000); // Geld / Checkpoint
    GELDWASCHE[playerid] = BANKGELD;
    format(stringbrs, sizeof(stringbrs), "** Du hast jetzt $%d in deiner Tasche, fahr zur Geldwäsche.",BANKGELD);
    SendClientMessage(playerid, COLOR_LIGHTGREEN, stringbrs);
    SetPlayerCheckpoint(playerid, -2179.1943,715.7703,53.8909,8.0);
    atmrob = 1;
    SetTimer("RobATM_Reset",3600000,0); // Nach 60 Minuten erst wieder ausrauben
    }
    }
    return 1;
    }


    Ich hoffe ihr könnt helfen. :)



    MfG,
    James.

    @Jeffry
    also die Errors nochmal:


    Code
    C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(617) : error 001: expected token: ";", but found "{"
    C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(623) : error 010: invalid function or declaration
    C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(649) : error 001: expected token: ";", but found "{"
    C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(656) : error 010: invalid function or declaration

    die Zeilen nun:
    [pwn=598]
    new Float:DtcParkPlatz[AUTOHAUSER][MAXPARKPLATZE][4] = {
    {//2-Rad Händler
    {-1273.7734,-619.1137,15.0676,1.3637},
    {-1335.2343,-616.5912,15.0635,1.9247},
    {-1395.5461,-619.2031,15.0707,2.6078},
    {-1457.6953,-619.0181,15.0707,1.6967}
    },
    {//Autohaus (LS)
    {1275.6222,-1655.7703,13.2518,269.5589},
    {1275.6222,-1655.7703,13.2518,269.5589},
    {1275.6222,-1655.7703,13.2518,269.5589},
    {1275.6222,-1655.7703,13.2518,269.5589}
    },
    {//Flugzeughändler
    {-1273.7734,-619.1137,15.0676,1.3637},
    {-1335.2343,-616.5912,15.0635,1.9247},
    {-1395.5461,-619.2031,15.0707,2.6078},
    {-1457.6953,-619.0181,15.0707,1.6967}
    },
    {//Bootshändler
    {-135.2207, -1802.6097, -0.5573, 258.9006},
    {-129.8378, -1779.3202, -0.5242, 256.1195},
    {-125.4116, -1760.9236, -0.6199, 256.4629},
    {-121.0805, -1742.9702, -0.7924, 256.4629}
    }
    };




    new Float:DtcSonstiges[AUTOHAUSER][5][3] = {
    {//2-Rad Händler
    {562.9924,-1292.6725,17.2482,0.0}, // Info Zeichen etc.
    {540.9376,-1298.4076,32.1380,318.0749}, // LiveView Car
    {547.1100,-1297.5990,32.5406,0.0}, // LiveView Cam
    {547.1100,-1297.5990,32.5406,0.0}, // LiveView Player
    {554.7096,-1278.0496,17.2482} // LiveView Player Exit
    },
    {//Autohaus (LS)
    {562.9924,-1292.6725,17.2482,0.0}, // Info Zeichen etc.
    {540.9376,-1298.4076,32.1380,318.0749}, // LiveView Car
    {547.1100,-1297.5990,32.5406,0.0}, // LiveView Cam
    {547.1100,-1297.5990,32.5406,0.0}, // LiveView Player
    {554.7096,-1278.0496,17.2482} // LiveView Player Exit
    },
    {//Flugzeughändler
    {-1365.0568,-641.4794,14.1484,178.2833}, // Info Zeichen etc.
    {-1351.8582,-356.0417,26.3576,3.6795}, // LiveView Car
    {-1353.4139,-336.7994,25.4375,184.0823}, // LiveView Cam
    {-1359.5854,-335.6806,25.4375,3.8567}, // LiveView Player
    {-1364.7587,-635.5377,14.1484,359.9140} // LiveView Player Exit
    },
    {//Bootshändler
    {-206.7942, -1778.8412, 1.8197, 0.0}, //Infozeichen
    {1248.7789, -2382.5952, 8.3920, 0.0}, // liveView Car
    {1241.7362, -2390.6350, 12.4744, 0.0}, //Campos
    {1222.8789, -2415.5544, 10.2585, 0.0},//playapos
    {-147.2765, -1789.9833, 1.1003, 0.0} //Exit view
    }
    };
    [/pwn]


    Habe es mal ein bisschen erweitert, nicht wundern.

    @Jeffry


    Bekomme immer noch die Errors:

    Code
    C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(609) : error 001: expected token: ";", but found "{"
    C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(621) : error 010: invalid function or declaration
    C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(633) : error 001: expected token: ";", but found "{"
    C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(668) : error 010: invalid function or declaration

    ich hoffe du meintest es so:

    new Float:DtcParkPlatz[AUTOHAUSER][MAXPARKPLATZE][4] =
    {
    {//Autohaus (LS)
    {1275.6222,-1655.7703,13.2518,269.5589},
    {1275.6222,-1655.7703,13.2518,269.5589},
    {1275.6222,-1655.7703,13.2518,269.5589},
    {1275.6222,-1655.7703,13.2518,269.5589}
    },
    {//Flugzeug-Shop
    {-1585.2198,1229.2092,6.8937,180.0},
    {-1581.2231,1229.1381,6.8926,180.0},
    {-1577.4001,1229.0983,6.8943,180.0},
    {-1573.0222,1229.0796,6.8924,180.0}
    },
    {//Bootsautohaus
    {1120.5925,-1390.000,13.2414,90.000},
    {1130.1421,-1390.000,13.2939,90.000},
    {1140.1067,-1390.000,13.3526,90.000},
    {1150.2216,-1390.000,13.4119,90.000}
    }
    };

    Ich machs mal so:

    public OnPlayerRegister(playerid, password[])
    {
    if(IsPlayerConnected(playerid))
    {
    new string3[32];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    format(string3, sizeof(string3), "/Accounts/%s.ini", playername3);
    new File: hFile = fopen(string3, io_write);
    SetPlayerHealth(playerid,100);
    SpawnPlayer(playerid);
    if (hFile)
    {
    strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
    new var[32];
    format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
    PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
    format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
    format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
    format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
    format(var, 32, "UpgradePunkte=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
    format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
    format(var, 32, "Registriert=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
    format(var, 32, "Geschlecht=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
    format(var, 32, "Alter=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
    format(var, 32, "Herkunft=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
    format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
    format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
    format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
    format(var, 32, "Geld=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
    format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
    format(var, 32, "Verbrechen=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
    format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
    format(var, 32, "Tode=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
    format(var, 32, "Eingesperrt=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
    format(var, 32, "WantedTode=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
    format(var, 32, "Telefonbuch=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
    format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
    format(var, 32, "Fische=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
    format(var, 32, "GrößterFisch=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
    format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
    format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
    format(var, 32, "Kopfgeld=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
    format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
    format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
    format(var, 32, "Materialien=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
    format(var, 32, "Drogen=%d\n",PlayerInfo[playerid][pDrugs]);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, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
    format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
    format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
    format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
    format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
    format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
    format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
    format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
    format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
    format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
    format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
    format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
    format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
    format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
    format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
    format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
    GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
    format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
    format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
    format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
    format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
    format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
    format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
    format(var, 32, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
    format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
    format(var, 32, "Perso=%d\n",PlayerInfo[playerid][pOwnPerso]);fwrite(hFile, var);
    format(var, 32, "GangJailed=%d\n",PlayerInfo[playerid][pGangJailed]);fwrite(hFile, var);
    format(var, 32, "GWD=%f\n",PlayerInfo[playerid][pGWD]);fwrite(hFile, var);
    if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
    {
    PlayerInfo[playerid][pPos_x] = 1684.9;
    PlayerInfo[playerid][pPos_y] = -2244.5;
    PlayerInfo[playerid][pPos_z] = 13.5;
    }
    if(Spectate[playerid] != 255)
    {
    PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
    PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
    PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
    PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
    PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
    }
    format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
    format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
    format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
    format(var, 32, "Autoschein=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
    format(var, 32, "Truckschein=%d\n",PlayerInfo[playerid][pTruckLic]);fwrite(hFile, var);
    format(var, 32, "Motorradschein=%d\n",PlayerInfo[playerid][pBikeLic]);fwrite(hFile, var);
    format(var, 32, "Flugschein=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
    format(var, 32, "Bootschein=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
    format(var, 32, "Angelschein=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
    format(var, 32, "Waffenschein=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
    format(var, 32, "Waffe1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
    format(var, 32, "Waffe2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
    format(var, 32, "Waffe3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
    format(var, 32, "Waffe4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
    format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
    format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
    format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
    format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
    format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
    format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
    format(var, 32, "PayDayZeit=%d\n",PlayerInfo[playerid][pPayDayZeit]);fwrite(hFile, var);
    format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
    format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
    format(var, 32, "Siege=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
    format(var, 32, "Niederlagen=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
    format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
    format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
    format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
    format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
    format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
    format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
    format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var);
    format(var, 32, "Warnungen=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
    format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
    format(var, 32, "Tank=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
    format(var, 32, "Verheiratet=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
    format(var, 32, "Verheiratetmit=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
    format(var, 32, "Punkte=%s\n",PlayerInfo[playerid][pPunkte]);fwrite(hFile, var);
    format(var, 32, "MuteTime=%d\n",PlayerInfo[playerid][pMuteTime]);fwrite(hFile, var);
    format(var, 32, "Knast=%d\n",Knast[playerid]);fwrite(hFile, var);
    format(var, 32, "KnastTime=%d\n",KnastTime[playerid]);fwrite(hFile, var);
    format(var, 32, "Mauled=%d\n",PlayerInfo[playerid][pMauled]);fwrite(hFile, var);
    format(var, 32, "Gehalt=%d\n",PlayerInfo[playerid][pGehalt]);fwrite(hFile, var);
    format(var, 32, "Wanteds=%d\n",WantedLevel[playerid]);fwrite(hFile, var);
    format(var, 32, "SpawnChange=%d\n",SpawnChange[playerid]);fwrite(hFile, var);
    format(var, 32, "FrakSperre=%d\n",PlayerInfo[playerid][pFrakSperre]);fwrite(hFile, var);
    fclose(hFile);
    new string[200];
    format(string,sizeof(string),"{FFFFFF}Bitte logge dich nun mit deinem gewünschten Passwort ein \nNickname: %s",playername3);
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{FFFFFF}*** | Login",string,"Login","");
    }
    }
    return 1;
    }

    Hallöchen,
    ich habe das Problem ich bekomme 4 Errors, und weiß nicht warum:


    Code
    C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(609) : error 001: expected token: ";", but found "{"
    C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(621) : error 010: invalid function or declaration
    C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(633) : error 001: expected token: ";", but found "{"
    C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(668) : error 010: invalid function or declaration

    die Zeilen:

    new Float:DtcParkPlatz[AUTOHAUSER][MAXPARKPLATZE][4] =
    {
    {//Autohaus (LS)
    {1275.6222,-1655.7703,13.2518,269.5589},
    {1275.6222,-1655.7703,13.2518,269.5589},
    {1275.6222,-1655.7703,13.2518,269.5589},
    {1275.6222,-1655.7703,13.2518,269.5589},
    },
    {//Flugzeug-Shop
    {-1585.2198,1229.2092,6.8937,180.0},
    {-1581.2231,1229.1381,6.8926,180.0},
    {-1577.4001,1229.0983,6.8943,180.0},
    {-1573.0222,1229.0796,6.8924,180.0},
    },
    {//Bootsautohaus
    {1120.5925,-1390.000,13.2414,90.000},
    {1130.1421,-1390.000,13.2939,90.000},
    {1140.1067,-1390.000,13.3526,90.000},
    {1150.2216,-1390.000,13.4119,90.000}
    }
    };


    MfG

    Bei Register steht das, wo der Name gespeichert wird..

    public OnPlayerRegister(playerid, password[])
    {
    if(IsPlayerConnected(playerid))
    {
    new string3[32];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    format(string3, sizeof(string3), "/Accounts/%s.ini", playername3);
    new File: hFile = fopen(string3, io_write);
    SetPlayerHealth(playerid,100);
    SpawnPlayer(playerid);

    Ich habe das Problem gefunden, weiß nur nicht wie ich es beheben kann..
    Ich habe mal nachgeschaut, wie es gespeichert wird, und die Datei heißt nicht so: NAME.ini sondern NAME.in
    warum wird der Account somit falsch gespeichert mit Klammern drinne? ?
    ohne den Klammern funktioniert ja alles

    @Jeffry


    Dankeschön :D




    Ich habe noch ein Problem, ingame steht dann bei:
    format(string,sizeof(string),"Folgende Administratoren von *** sind zurzeit online:\n\n%s{FFFFFF}: %s, ID: %d",adminrang,adminname,i);


    bei ID steht dann: ID: 999 was is daran falsch? (hatte ID 0)