Guten Morgen
Ich bin mir nicht sicher ob es jetzt ein Ladefehler oder Speicherfehler ist:
Hier die cods fürs Laden und Speichern:
C
stock LoadPlayer(playerid) {
SetPlayerColor(playerid, COLOR_GRAD1);
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
PlayerInfo[playerid][pModel] = 264;
AddPlayer(playerid);
gPlayerLogged[playerid] = 0;
new playerip[256];
GetPlayerIp(playerid,playerip,sizeof(playerip));
strmid(PlayerInfo[playerid][pUserIP], playerip, 0, strlen(playerip), 255);
Logintime[playerid] = -1;
if(!IsPlayerNPC(playerid))
UsersOnline++;
MaxVeh[playerid] = 3;
CarKey[playerid] = 0;
gPlayerUsingLoopingAnim[playerid] = 0;
gPlayerAnimLibsPreloaded[playerid] = 0;
PortedTimer[playerid] = 0;
SetPVarInt(playerid, "PVTeam", -1);
SetPVarInt(playerid, "PVAdmin", 0);
SetPVarInt(playerid, "PVJob", 0);
currentHouse[playerid] = -1;
FirstSpawnAfterLogin[playerid] = 0; PlayerInfo[playerid][pIsearch] = 0;
SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000);
CellTime[playerid] = 0; Mobile[playerid] = -1; RingTone[playerid] = 0; Uberweisungsid[playerid] = -1; Tot[playerid] = 0; SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0;
SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0; GettingJob[playerid] = 0; AllowTune[playerid] = -1;
RobTimer[playerid] = -1; AntiRobTimer[playerid] = 0; TeamRadar[playerid] = 0; BNDRadar[playerid] = 0; MullManOwned[playerid] = -1; TutCP[playerid] = 0;
CallLawyer[playerid] = 0; WantLawyer[playerid] = 0; NoDmTimer[playerid] = 0; NoDmWarnungen[playerid] = 0; UsedFind[playerid] = 0; Eisgekauft[playerid] = 0;
CP[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; HitSound[playerid] = 1; //ACode[playerid] = 0;
STDPlayer[playerid] = 0; RepairOffer[playerid] = -1; RepairPrice[playerid] = 0;
VertragOffer[playerid] = -1; Supportercar[playerid] = -1; TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; HealProds[playerid] = 0; KitPrice[playerid] = -1;
LessonOffer[playerid] = -1; LessonPrice[playerid] = 0; TakingLesson[playerid] = 0; Bergwerkarbeit[playerid] = 0; RefillOffer[playerid] = -1; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
HotdogOffer[playerid] = -1; HotdogPrice[playerid] = 0; HealPrice[playerid] = -1; PlayerHeal[playerid] = -1; HealOffer[playerid] = -1; BlowJob[playerid] = -1; KitOffer[playerid] = -1;
UnDrugs[playerid] = 0; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0; PlayerTied[playerid] = 0; Detektivschutz[playerid] = 0;
RegistrationStep[playerid] = 0; ConnectedToPC[playerid] = 0; JailPrice[playerid] = 0; MedicBill[playerid] = -1; MedicBillTimer[playerid] = -1; LoginTimer[playerid] = -1; Handyraubtimer[playerid] = -1; GoChase[playerid] = -1; ContractTaked[playerid] = 0; Maske[playerid] = 0; OrderReady[playerid] = 0; PlacedNews[playerid] = 0; OnDuty[playerid] = 0; TestFishes[playerid] = 0; EventEingeladen[playerid] = 0; TransportDuty[playerid] = 0;
BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicAccepted[playerid] = -1; WhelAccepted[playerid] = -1; MechanicCallTime[playerid] = 0; TobyPoints[playerid] = 0; FindTimePoints[playerid] = 0; TobyTime[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0; Mobile[playerid] = -1; Music[playerid] = 0;
Spectate[playerid] = -1; PlayerDrunkTime[playerid] = 0; WheelmanAccepted[playerid] = -1; HaveDonuts[playerid] = 0; EatDonutAktive[playerid] = 0; PilotenDuty[playerid] = 0; Route[playerid] = 0; Angekommen[playerid] = 0; Geladen[playerid] = 0; LadeGeld[playerid] = 0; GeldStatus[playerid] = 0; Busdienst[playerid] = 0; Orten[playerid] = 0; Runterholen[playerid] = 0; ContractSperre[playerid] = 0;
gLastCar[playerid] = 0; WantedLoseAllow[playerid] = 0; SpawnKillAktiv[playerid] = 0; gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0; TogAdminChat[playerid] = 0; TogLoginLogout[playerid] = 1; TogAdminMessage[playerid] = 1;
gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0; PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0; PlayerStonedTime[playerid] = 0;
TicketOffer[playerid] = 999; TicketMoney[playerid] = 0; CodesHolding[playerid] = 0; TazerCan[playerid] = 0;
MatsHolding[playerid] = 0; gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; PlayerInfo[playerid][pCash] = 0; Blitzed[playerid] = 0;
TransportValue[playerid] = 0; TransportMoney[playerid] = 0; WTransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
PlayerPaintballing[playerid] = 0; PlayerTeamPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0; Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
FallAngenommen[playerid] = -1; FallAngenommenTimer[playerid] = 0; FallAngenommenAnwalt[playerid] = -1;
ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999; TotenOffer[playerid] = 999; InviteOffer[playerid] = -1; InviteTeam[playerid] = -1;
AntiAFKCode[playerid] = 0; AntiAFKTime[playerid] = 0; AntiAFKTimer[playerid] = 0; AFKChecker[playerid] = -1; InviteOrgOffer[playerid] = -1; InviteOrgTeam[playerid] = -1;
Kleidungsshop[playerid] = -1; AFKKick[playerid] = 0; PlayerInfo[playerid][pJoinhaben] = 0;
AFKModus[playerid] = 0;
JobFreeze[playerid] = 0; Weedkaufen[playerid] = 0; HotdogTime[playerid] = 0; //HotdogLager[playerid] = 0;
TicketSys[playerid][TSAdminID] = -1; PlayerInfo[playerid][pLKWLic] = 0;
TicketSys[playerid][TSUserID] = -1; PlayerInfo[playerid][CurrentPos][0] = 0; PlayerInfo[playerid][CurrentPos][1] = 0; PlayerInfo[playerid][CurrentPos][2] = 0;
strmid(TicketSys[playerid][TSText], "------", 0, strlen("------"), 255);
WantedHackZeit[playerid] = -1; HackArt[playerid] = 0; WantedHackKunde[playerid] = -1;
ImPrison[playerid] = 0;
ImCPPrison[playerid] = 0;
HackAnzahl[playerid] = 0;
DrugOffer[playerid] = 999;
DrugPrice[playerid] = 0;
DrogenGenommen[playerid] = 0;
DrugGram[playerid] = 0;
bietetAn[playerid]={-1,0};
Healsperre[playerid] = 0;
SDPistol[playerid] = 0;
Neumm[playerid] = 0;
Deagle[playerid] = 0;
MP5[playerid] = 0;
Shotgun[playerid] = 0;
AK47[playerid] = 0;
M4[playerid] = 0;
Rifle[playerid] = 0;
GivePlayerMoneys(playerid,PlayerInfo[playerid][pCash]); PlayerInfo[playerid][pBerg] = 0; PlayerInfo[playerid][pWarimVersteck] = 0; PlayerInfo[playerid][pAufgabe1] = 0; PlayerInfo[playerid][pHatschon] = 0; PlayerInfo[playerid][pSchongeandert] = 0;
PlayerInfo[playerid][pZigarette] = 0; PlayerInfo[playerid][pHatschon1] = 0;
PlayerInfo[playerid][pAuftrag1] = 0; PlayerInfo[playerid][pAuftrag2] = 0; PlayerInfo[playerid][pAuftrag3] = 0; PlayerInfo[playerid][pAuftrag4] = 0; PlayerInfo[playerid][pAuftrag5] = 0; PlayerInfo[playerid][pAuftrag6] = 0; PlayerInfo[playerid][pAuftrag7] = 0; PlayerInfo[playerid][pAuftrag8] = 0; PlayerInfo[playerid][pAuftrag9] = 0;
PlayerInfo[playerid][pLevel] = 0; PlayerInfo[playerid][pStatus] = 0 ; PlayerInfo[playerid][pAdmin] = 0; PlayerInfo[playerid][pStartbonus] = 0; PlayerInfo[playerid][pKreditkartebenutzen] = 0; PlayerInfo[playerid][pKreditkarte] = 0; PlayerInfo[playerid][pGebDatum] = 0; PlayerInfo[playerid][pPersonalausweis] = 0;
PlayerInfo[playerid][pGewaschen] = 0; PlayerInfo[playerid][pAndreasLohn] = 0; PlayerInfo[playerid][pKartoffelnhaben] = 0; PlayerInfo[playerid][pKartoffelwaschen] = 0; PlayerInfo[playerid][pGehalt] = 0; PlayerInfo[playerid][pBanned] = 0; PlayerInfo[playerid][pGeldsack] = 0; PlayerInfo[playerid][pSchwul] = 0; PlayerInfo[playerid][pVerwarnung] = 0;
PlayerInfo[playerid][sPfandflaschen] = 0; PlayerInfo[playerid][pJonnysagt] = 0; PlayerInfo[playerid][pAlexsagt] = 0; PlayerInfo[playerid][pGuntersagt] = 0; PlayerInfo[playerid][pDrogenSamen] = 0;
PlayerInfo[playerid][pSchlagen] = 0; PlayerInfo[playerid][pBrecheisen] = 0; PlayerInfo[playerid][pReingegangen] = 0; PlayerInfo[playerid][pRausgegangen] = 0; PlayerInfo[playerid][pWheelmangerufen] = 0; PlayerInfo[playerid][pMedickit] = 0;
PlayerInfo[playerid][pDonatorRank] = 0; PlayerInfo[playerid][gPupgrade] = 0; PlayerInfo[playerid][pConnectTime] = 0; PlayerInfo[playerid][pReg] = 0; PlayerInfo[playerid][pSex] = 0; PlayerInfo[playerid][pMeldunggekommen] = 0;
PlayerInfo[playerid][pAlter] = 0; PlayerInfo[playerid][pOrigin] = 0; PlayerInfo[playerid][pRespekt] = 0; PlayerInfo[playerid][pBank] = 0; PlayerInfo[playerid][pJobLohn] = 0; PlayerInfo[playerid][pCrimes] = 0;
PlayerInfo[playerid][pDeaths] = 0; PlayerInfo[playerid][pArrested] = 0; PlayerInfo[playerid][pArrestTime] = 0; PlayerInfo[playerid][pPhoneBook] = 0;
PlayerInfo[playerid][pLottoNr] = 0; PlayerInfo[playerid][pFishes] = 0; PlayerInfo[playerid][pBiggestFish] = 0; PlayerInfo[playerid][pJob] = 0; PlayerInfo[playerid][pHeadValue] = 0;
PlayerInfo[playerid][pJailed] = 0; PlayerInfo[playerid][pJailTime] = 0; PlayerInfo[playerid][pMats] = 0; PlayerInfo[playerid][pSaveMats] = 0;
PlayerInfo[playerid][pDrugs] = 0;PlayerInfo[playerid][pSaveDrugs] = 0; PlayerInfo[playerid][pLeader] = -1; PlayerInfo[playerid][pMember] = -1; PlayerInfo[playerid][pRank] = 0;
PlayerInfo[playerid][pVertragszeit] = 5; PlayerInfo[playerid][pWirdtot] = 0;
PlayerInfo[playerid][pNewsSkill] = 0;
PlayerInfo[playerid][pFishSkill] = 0; PlayerInfo[playerid][pSHealth] = 50.0; PlayerInfo[playerid][pLocal] = -1; PlayerInfo[playerid][pMuted] = 0; PlayerInfo[playerid][pCoints] = 0; PlayerInfo[playerid][pGeiselnahme] = 0; Geiselnahme[playerid] = -1;
PlayerInfo[playerid][pBoatLic] = 0; PlayerInfo[playerid][pFishLic] = 0; PlayerInfo[playerid][pGunLic] = 0; PlayerInfo[playerid][pPistolSkill] = 0; PlayerInfo[playerid][pMaschinePistolSkill] = 0; PlayerInfo[playerid][pSturmgewehrPistolSkill] = 0; PlayerInfo[playerid][pShotGunSkill] = 0;
PlayerInfo[playerid][pCarLicPoints] = 0; PlayerInfo[playerid][pBikeLicPoints] = 0; PlayerInfo[playerid][pZollpass] = 0; PlayerInfo[playerid][pGun1] = 0; PlayerInfo[playerid][pGun2] = 0; PlayerInfo[playerid][pGun3] = 0;
PlayerInfo[playerid][pMechSkill] = 0; PlayerInfo[playerid][pGun4] = 0; PlayerInfo[playerid][pAmmo1] = 0; PlayerInfo[playerid][pAmmo2] = 0; PlayerInfo[playerid][pAmmo3] = 0; PlayerInfo[playerid][pAmmo4] = 0;
PlayerInfo[playerid][pCarTime] = 0; PlayerInfo[playerid][pPayDay] = 0; PlayerInfo[playerid][pPayDayHad] = 0; PlayerInfo[playerid][pCDPlayer] = 0; PlayerInfo[playerid][pAlcoholPerk] = 0; PlayerInfo[playerid][pTeam] = -1; PlayerInfo[playerid][pNummer] = 0;
PlayerInfo[playerid][pPhotelkey] = -1; PlayerInfo[playerid][pBizKey] = -1; PlayerInfo[playerid][pCarLic] = 0; PlayerInfo[playerid][pFlyLic] = 0;
PlayerInfo[playerid][pPainKillerPerk] = 0; PlayerInfo[playerid][pDrugPerk] = 0; PlayerInfo[playerid][pMiserPerk] = 0; PlayerInfo[playerid][pTraderPerk] = 0;
PlayerInfo[playerid][pWarns] = 0;PlayerInfo[playerid][pFuel] = 0; PlayerInfo[playerid][pWantedLevel] = 0; PlayerInfo[playerid][pAdminOnDuty] = 0; PlayerInfo[playerid][pHurensohn] = 0; PlayerInfo[playerid][pHandyRob] = 0; PlayerInfo[playerid][pBankrob] = 0;
PlayerInfo[playerid][pInviteSperre] = 0; PlayerInfo[playerid][pWarnTime1] = 0; PlayerInfo[playerid][pWarnTime2] = 0; PlayerInfo[playerid][pImRaub] = 0; PlayerInfo[playerid][pTicketsopen] = 0; PlayerInfo[playerid][pSQLID] = -1; PlayerInfo[playerid][pHaus] = 0; PlayerInfo[playerid][pMieten] = 0;
PlayerInfo[playerid][pRolex] = 0; PlayerInfo[playerid][pSwissonic] = 0; PlayerInfo[playerid][pCasio] = 0; PlayerInfo[playerid][pBreitling] = 0; PlayerInfo[playerid][pNixon] = 0; PlayerInfo[playerid][pIceWatch] = 0; PlayerInfo[playerid][pHealPaket] = 0; PlayerInfo[playerid][pOverHealPaket] = 0;
PlayerInfo[playerid][pArmourPaket] = 0; PlayerInfo[playerid][pWaffenPaket] = 0;
strmid(PlayerInfo[playerid][pWerberName], "Niemand", 0, strlen("Niemand"), 255);
strmid(PlayerInfo[playerid][pForceName], "Niemand", 0, strlen("Niemand"), 255);
strmid(PlayerInfo[playerid][pOldName], "Niemand", 0, strlen("Niemand"), 255);
strmid(PlayerInfo[playerid][pOrgaName], "Keine", 0, strlen("Keine"), 255);
PlayerInfo[playerid][pOrgaID] = -1;
PlayerInfo[playerid][pOrgaLeader] = -1;
PlayerInfo[playerid][pOrgaManager] = -1;
PlayerInfo[playerid][pTut] = 0;
PlayerInfo[playerid][pTruckHaengerID] = -1;
PlayerInfo[playerid][pTHProdukte] = 0;
PlayerInfo[playerid][pDonatorZeit] = 0;
PlayerInfo[playerid][pFightingStyle] = 0;
PlayerInfo[playerid][pHandy] = 0;
PlayerInfo[playerid][pStartCoints] = 0;
PlayerInfo[playerid][pOnDutySkin] = 60;
PlayerInfo[playerid][pSpawnhealZeit] = 0;
PlayerInfo[playerid][pDeaglespawnZeit] = 0;
PlayerInfo[playerid][pM4SpawnZeit] = 0;
PlayerInfo[playerid][pMP5SpawnZeit] = 0;
PlayerInfo[playerid][pArmorSpawnZeit] = 0;
PlayerInfo[playerid][pMehrZinsenZeit] = 0;
ClearCrime(playerid);
ClearFishes(playerid);
ClearCooking(playerid);
ClearGroceries(playerid);
ClearMarriage(playerid);
//Car System//
for(new h = 0; h < MaxVeh[playerid]; h++){
Carlist[playerid][h][Typ]=-1;
Carlist[playerid][h][pos_x]=0.0;
Carlist[playerid][h][pos_y]=0.0;
Carlist[playerid][h][pos_z]=0.0;
Carlist[playerid][h][z_angle]=0.0;
Carlist[playerid][h][Status]=0;
Carlist[playerid][h][Lock]=0;
Carlist[playerid][h][Carid]=-1;
Carlist[playerid][h][Farbe1]=-1;
Carlist[playerid][h][Farbe2]=-1;
Carlist[playerid][h][mod1]=-1;
Carlist[playerid][h][mod2]=-1;
Carlist[playerid][h][mod3]=-1;
Carlist[playerid][h][mod4]=-1;
Carlist[playerid][h][mod5]=-1;
Carlist[playerid][h][mod6]=-1;
Carlist[playerid][h][mod7]=-1;
Carlist[playerid][h][mod8]=-1;
Carlist[playerid][h][mod9]=-1;
Carlist[playerid][h][mod10]=-1;
Carlist[playerid][h][mod11]=-1;
Carlist[playerid][h][mod12]=-1;
Carlist[playerid][h][mod13]=-1;
Carlist[playerid][h][mod14]=-1;
Carlist[playerid][h][mod15]=-1;
Carlist[playerid][h][mod16]=-1;
Carlist[playerid][h][mod17]=-1;
Carlist[playerid][h][Paintjob]=-1;
Carlist[playerid][h][OwnerID] = playerid;
Carlist[playerid][h][SpawnSaveX]=0.0;
Carlist[playerid][h][SpawnSaveY]=0.0;
Carlist[playerid][h][SpawnSaveZ]=0.0;
Carlist[playerid][h][SpawnSaveRot]=0.0;
Carlist[playerid][h][TankVolumen]=0;
Carlist[playerid][h][RepairTime] = 0;
Carlist[playerid][h][Versicherung] = 0;
Carlist[playerid][h][Abschleppzeit] = 0;
Carlist[playerid][h][Meter] = 0;
Carlist[playerid][h][Changed] = false;
}
PUBLIC:SavePlayers()
{
new checkTime = GetTickCount();
ForAllPlayers(i){
if(IsPlayerConnected(i) && gPlayerLogged[i] >= 1 && !IsPlayerNPC(i)){
if(strcmp(PlayerInfo[i][pForceName], "Niemand", true) != 0)
{
SetPlayerName(i,PlayerInfo[i][pForceName]);
SetPlayerScore(i, PlayerInfo[i][pLevel]);
}
PlayerUpdate(i);
PlayerCarUpdate(i);
}
}
printf("Spielers wurden in %dms gespeichert.", (GetTickCount() - checkTime));
return 1;
}
Alles anzeigen