Ich speicher mit dini.
Beiträge von Shoxx
-
-
Bei OnPlayerConnect lass ich alles so :
PlayerInfo[playerid][pBanned] = 0;
PlayerInfo[playerid][pAdmin] = 0;
PlayerInfo[playerid][pSupporter] = 0;
PlayerInfo[playerid][pDonateRank] = 0;
PlayerInfo[playerid][pknackpause] = 0;
PlayerInfo[playerid][pbrecheisen] = 0;Resetten
-
Hallo,
komischer weise passiert es des öfteren, dass User sich einloggen und Adminrank oder Leader einer Fraktion sind.
Ich speicher alles so wie ich es auch Abfrage deswegen weiss ich nicht wieso das so ist.
Bitte um eure Mithilfe!
-
Hat sich erledigt!
Hatte ne Doppelbezeichnung vom String
-
Hey,
ich habe ein Problem und zwar, wenn ich /buycar eingebe im Auto erstellt er zwar das Fahrzeug, allerdings kackt der Server dann ab und wenn ich mich wieder einloggen will kackt der server nach dem Login wieder ab...
Code
Alles anzeigenif(strcmp(cmd, "/buycar", true) == 0) { if(IsPlayerConnected(playerid)) { new vid = GetPlayerVehicleID(playerid); if(!IsAHandelCar(vid) && !IsAShowCarEdel(vid)) { SendClientMessage(playerid, COLOR_GRAD2, "Du kannst dieses Fahrzeug nicht kaufen."); return 1; } new car,preis; if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]]) { SendClientMessage(playerid, COLOR_GREY, "Du besitzt schon ein Fahrzeug!"); return 1; } for(new ah = 0; ah < sizeof(dtcKaufliste);ah++) { if(dtcKaufliste[ah][dtc_Autohaus] == dtc_AutohausCat[playerid] && dtcKaufliste[ah][dtc_CarModel] == GetVehicleModel(vid)) { car = GetVehicleModel(vid); preis = dtcKaufliste[ah][dtc_CarPreis]; } } if(GetPlayerMoney(playerid) >= preis) { OnPlayerBuyCar(playerid, car, preis); dtc_AutohausCar[playerid] = 0; dtc_AutohausCat[playerid] = 2000; RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,"Du hast dir ein Fahrzeug gekauft! Habe viel Spaß damit!"); SendClientMessage(playerid,COLOR_GRAD3,"Alle Befehle findest du unter /carhelp! Dein Auto wurde am Parkplatz geparkt."); SendClientMessage(playerid, COLOR_YELLOW,"System:Der Checkpoint wurde zu deinem Auto gesetzt!"); SetTimerEx("ShowPlayerCar",3000,0,"i",playerid); } else { SendClientMessage(playerid,COLOR_GREY,"Du hast nicht genug Geld um dieses Fahrzeug zu kaufen!"); return 1; } } return 1; }
-
Wie baue ich das denn ein?
-
wie sieht der Befehl aus?
-
Sie werden so Registriert:
Code
Alles anzeigenpublic OnPlayerRegister(playerid, password[]) { if(IsPlayerConnected(playerid)) { new string3[64]; Encrypt(password); 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); if (hFile) { strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255); new var[32]; format(var, 32, "Key=%s\r\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var); PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid); format(var, 32, "Level=%d\r\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var); format(var, 32, "Banned=%d\r\n",PlayerInfo[playerid][pBanned]);fwrite(hFile, var); format(var, 32, "AdminLevel=%d\r\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var); format(var, 32, "Supporter=%d\r\n",PlayerInfo[playerid][pSupporter]);fwrite(hFile, var); format(var, 32, "DonateRank=%d\r\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var); format(var, 32, "UpgradePoints=%d\r\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var); format(var, 32, "ConnectedTime=%d\r\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var); format(var, 32, "Registered=%d\r\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var); format(var, 32, "Harndrang=%d\r\n",PlayerInfo[playerid][pHarndrang]);fwrite(hFile, var); format(var, 32, "Hunger=%d\r\n",PlayerInfo[playerid][pHunger]);fwrite(hFile, var); format(var, 32, "StatsBox=%d\r\n",PlayerInfo[playerid][pStatsBox]);fwrite(hFile, var); format(var, 32, "Sex=%d\r\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var); format(var, 32, "Age=%d\r\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var); format(var, 32, "Origin=%d\r\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var); format(var, 32, "CK=%d\r\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var); format(var, 32, "Muted=%d\r\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var); format(var, 32, "Respect=%d\r\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var); format(var, 32, "Money=%d\r\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var); format(var, 32, "Bank=%d\r\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var); format(var, 32, "Kredit=%d\r\n",PlayerInfo[playerid][pPlayerKredit]);fwrite(hFile, var); format(var, 32, "KreditDauer=%d\r\n",PlayerInfo[playerid][pPlayerKreditDauer]);fwrite(hFile, var); format(var, 32, "Crimes=%d\r\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var); format(var, 32, "Kills=%d\r\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var); format(var, 32, "Deaths=%d\r\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var); format(var, 32, "Arrested=%d\r\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var); format(var, 32, "WantedDeaths=%d\r\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var); format(var, 32, "Phonebook=%d\r\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var); format(var, 32, "LottoNr=%d\r\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var); format(var, 32, "Fishes=%d\r\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var); format(var, 32, "BiggestFish=%d\r\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var); format(var, 32, "Job=%d\r\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var); format(var, 32, "Paycheck=%d\r\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var); format(var, 32, "HeadValue=%d\r\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var); format(var, 32, "Jailed=%d\r\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var); format(var, 32, "GangJailed=%d\r\n",PlayerInfo[playerid][pGangJailed]);fwrite(hFile, var); format(var, 32, "wJailed=%d\r\n",PlayerInfo[playerid][pwJailed]);fwrite(hFile, var); format(var, 32, "Mauled=%d\r\n",PlayerInfo[playerid][pMauled]);fwrite(hFile, var); format(var, 32, "Arbeitslosengeld=%d\r\n",arbeitslosengeld[playerid]);fwrite(hFile, var); format(var, 32, "JailTime=%d\r\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var); format(var, 32, "Friedhoftime=%d\r\n",PlayerInfo[playerid][pTot]);fwrite(hFile, var); format(var, 32, "Materials=%d\r\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var); format(var, 32, "Drugs=%d\r\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var); format(var, 32, "BoxMaterials=%d\r\n",PlayerInfo[playerid][pBoxMats]);fwrite(hFile, var); format(var, 32, "BoxDrugs=%d\r\n",PlayerInfo[playerid][pBoxDrugs]);fwrite(hFile, var); format(var, 32, "FightingStyle=%d\r\n",GetPlayerFightingStyle(playerid));fwrite(hFile, var); format(var, 32, "Leader=%d\r\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var); format(var, 32, "Member=%d\r\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var); format(var, 32, "FMember=%d\r\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var); format(var, 32, "Rank=%d\r\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var); format(var, 32, "Char=%d\r\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var); format(var, 32, "ContractTime=%d\r\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var); format(var, 32, "DetSkill=%d\r\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var); format(var, 32, "SexSkill=%d\r\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var); format(var, 32, "BoxSkill=%d\r\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var); format(var, 32, "LawSkill=%d\r\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var); format(var, 32, "MechSkill=%d\r\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var); format(var, 32, "JackSkill=%d\r\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var); format(var, 32, "CarSkill=%d\r\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var); format(var, 32, "NewsSkill=%d\r\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var); format(var, 32, "DrugsSkill=%d\r\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var); format(var, 32, "CookSkill=%d\r\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var); format(var, 32, "FishSkill=%d\r\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var); format(var, 32, "pSHealth=%.1f\r\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var); GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]); format(var, 32, "pHealth=%.1f\r\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var); format(var, 32, "Int=%d\r\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var); format(var, 32, "Local=%d\r\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var); format(var, 32, "Team=%d\r\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var); format(var, 32, "Model=%d\r\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var); format(var, 32, "PhoneNr=%d\r\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var); format(var, 32, "House=%d\r\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var); format(var, 32, "Bizz=%d\r\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var); format(var, 32, "HandyGeld=%d\r\n",PlayerInfo[playerid][pHandyGeld]);fwrite(hFile, var); format(var, 32, "HandyVer=%d\r\n",PlayerInfo[playerid][pHandyVer]);fwrite(hFile, var); format(var, 32, "Autoradio=%d\r\n",PlayerInfo[playerid][pRadio]);fwrite(hFile, var); format(var, 32, "Navi=%d\r\n",PlayerInfo[playerid][pNavi]);fwrite(hFile, var); format(var, 32, "Tankart=%d\n",PlayerInfo[playerid][ptankart]);fwrite(hFile, var); GetPlayerName(playerid,pname,sizeof(pname)); 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\r\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var); format(var, 32, "Pos_y=%.1f\r\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var); format(var, 32, "Pos_z=%.1f\r\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var); format(var, 32, "CarLic=%d\r\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var); //format(var, 32, "PersoJoe=%d\r\n",PlayerInfo[playerid][pPersoJoe]);fwrite(hFile, var); format(var, 32, "FirstSpawn=%d\r\n",PlayerInfo[playerid][pFirstSpawn]);fwrite(hFile, var); format(var, 32, "OftLogin=%d\r\n",PlayerInfo[playerid][pOftLogin]);fwrite(hFile, var); format(var, 32, "Werberstatus=%d\r\n",PlayerInfo[playerid][pWerberStatus]);fwrite(hFile, var); format(var, 32, "Werber=%s\r\n",PlayerInfo[playerid][pWerber]);fwrite(hFile, var); format(var, 32, "Notfall=%d\r\n",PlayerInfo[playerid][pNotfall]);fwrite(hFile, var); format(var, 32, "Resetbar=%d\r\n",PlayerInfo[playerid][pResetbar]);fwrite(hFile, var); format(var, 32, "Resetbank=%d\r\n",PlayerInfo[playerid][pResetbank]);fwrite(hFile, var); format(var, 32, "Krankenkasse=%d\r\n",PlayerInfo[playerid][pKrankenkasse]);fwrite(hFile, var);// hier wird der schein in der Spieler .ini gespeichert format(var, 32, "KrankenkasseTime=%d\r\n",PlayerInfo[playerid][pKrankenkasseTime]);fwrite(hFile, var);// hier wird der schein in der Spieler .ini gespeichert format(var, 32, "NewLic=%d\r\n",PlayerInfo[playerid][pNewLic]);fwrite(hFile, var); format(var, 32, "ZollPass=%d\r\n",PlayerInfo[playerid][pZollPass]);fwrite(hFile, var); format(var, 32, "Knack Pause=%d\n",PlayerInfo[playerid][pknackpause]);fwrite(hFile, var); format(var, 32, "Brecheisen=%d\n",PlayerInfo[playerid][pbrecheisen]);fwrite(hFile, var); format(var, 32, "ZollPassTime=%d\r\n",PlayerInfo[playerid][pZollPassTime]);fwrite(hFile, var); format(var, 32, "FlyLic=%d\r\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var); format(var, 32, "BoatLic=%d\r\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var); format(var, 32, "FishLic=%d\r\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var); format(var, 32, "GunLic=%d\r\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);// hier wird der schein in der Spieler .ini gespeichert format(var, 32, "LKWLic=%d\r\n",PlayerInfo[playerid][pLKWLic]);fwrite(hFile, var); format(var, 32, "RollerLic=%d\r\n",PlayerInfo[playerid][pRollerLic]);fwrite(hFile, var); format(var, 32, "MotoLic=%d\r\n",PlayerInfo[playerid][pMotoLic]);fwrite(hFile, var); format(var, 32, "Zig=%d\r\n",PlayerInfo[playerid][pZig]);fwrite(hFile, var); format(var, 32, "Kekse=%d\r\n",PlayerInfo[playerid][pKekse]);fwrite(hFile, var); format(var, 32, "ZigSucht=%d\r\n",PlayerInfo[playerid][pZigSucht]);fwrite(hFile, var); format(var, 32, "Gun1=%d\r\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var); format(var, 32, "Gun2=%d\r\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var); format(var, 32, "Gun3=%d\r\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var); format(var, 32, "Gun4=%d\r\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var); format(var, 32, "Ammo1=%d\r\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var); format(var, 32, "Ammo2=%d\r\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var); format(var, 32, "Ammo3=%d\r\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var); format(var, 32, "Ammo4=%d\r\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var); format(var, 32, "CarTime=%d\r\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var); format(var, 32, "PayDay=%d\r\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var); format(var, 32, "PayDayHad=%d\r\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var); format(var, 32, "CDPlayer=%d\r\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var); format(var, 32, "Wins=%d\r\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var); format(var, 32, "Loses=%d\r\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var); format(var, 32, "AlcoholPerk=%d\r\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var); format(var, 32, "DrugPerk=%d\r\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var); format(var, 32, "MiserPerk=%d\r\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var); format(var, 32, "PainPerk=%d\r\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var); format(var, 32, "TraderPerk=%d\r\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var); format(var, 32, "Tutorial=%d\r\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var); format(var, 32, "Warnings=%d\r\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var); format(var, 32, "Adjustable=%d\r\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var); format(var, 32, "Fuel=%d\r\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var); format(var, 32, "Married=%d\r\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var); format(var, 32, "MarriedTo=%s\r\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var); format(var, 32, "SpawnChange=%d\r\n",SpawnChange[playerid]);fwrite(hFile, var); format(var, 32, "WantedLevel=%d\r\n",WantedLevel[playerid]);fwrite(hFile, var); format(var, 32, "WantedPoints=%d\r\n",WantedPoints[playerid]);fwrite(hFile, var); format(var, 32, "Arbeitslosengeld=%d\r\n",arbeitslosengeld[playerid]);fwrite(hFile, var); format(var, 32, "PlayMinutes=%d\r\n",PlayerInfo[playerid][pPlayMinutes]);fwrite(hFile, var); format(var, 32, "GesamtMinutes=%d\r\n",PlayerInfo[playerid][pGesamtMinutes]);fwrite(hFile, var); format(var, 32, "MinutesSinceAn=%d\r\n",PlayerInfo[playerid][pMinutesSinceAn]);fwrite(hFile, var); format(var, 32, "SFPASS=%d\r\n",PlayerInfo[playerid][pSFPASS]);fwrite(hFile, var); format(var, 32, "LVPASS=%d\r\n",PlayerInfo[playerid][pLVPASS]);fwrite(hFile, var); format(var, 32, "Offflucht=%d\r\n",OfflineFlucht[playerid]);fwrite(hFile, var); format(var, 32, "Knast=%d\r\n",Knast[playerid]);fwrite(hFile, var); format(var, 32, "Uhr=%d\r\n",PlayerInfo[playerid][pUhrID]);fwrite(hFile, var); format(var, 32, "Handy=%d\r\n",PlayerInfo[playerid][pHandyID]);fwrite(hFile, var); format(var, 32, "KnastTime=%d\r\n",KnastTime[playerid]);fwrite(hFile, var); format(var, 32, "Perso=%d\r\n",PlayerInfo[playerid][pOwnPerso]);fwrite(hFile, var); format(var, 32, "FrakSperre=%d\r\n",PlayerInfo[playerid][pFrakSperre]);fwrite(hFile, var); format(var, 32, "Gehalt=%d\r\n",PlayerInfo[playerid][pGehalt]);fwrite(hFile, var); format(var, 32, "InvWeapon=%d\r\n",PlayerInfo[playerid][pInvWeapon]);fwrite(hFile, var); format(var, 32, "InvAmmo=%d\r\n",PlayerInfo[playerid][pInvAmmo]);fwrite(hFile, var); format(var, 32, "InvWeapon2=%d\r\n",PlayerInfo[playerid][pInvWeapon2]);fwrite(hFile, var); format(var, 32, "InvAmmo2=%d\r\n",PlayerInfo[playerid][pInvAmmo2]);fwrite(hFile, var); format(var, 32, "InvMats=%d\r\n",PlayerInfo[playerid][pInvMats]);fwrite(hFile, var); format(var, 32, "InvDrugs=%d\r\n",PlayerInfo[playerid][pInvDrugs]);fwrite(hFile, var); format(var, 32, "FlugTime=%d\r\n",PlayerInfo[playerid][pFlugTime]);fwrite(hFile, var); format(var, 32, "FarSsssmTime=%d\r\n",PlayerInfo[playerid][pFarmTime]);fwrite(hFile, var); format(var, 32, "GDeaths=%d\r\n",PlayerInfo[playerid][pGDeaths]);fwrite(hFile, var); format(var, 32, "GKills=%d\r\n",PlayerInfo[playerid][pGKills]);fwrite(hFile, var); format(var, 32, "Meldung=%d\r\n",PlayerInfo[playerid][pMeldung]);fwrite(hFile, var); format(var, 32, "Autoradio=%d\r\n",PlayerInfo[playerid][pRadio]);fwrite(hFile, var); format(var, 32, "Navi=%d\r\n",PlayerInfo[playerid][pNavi]);fwrite(hFile, var); format(var, 32, "SpawnX=%f\r\n",PlayerInfo[playerid][SpawnX]);fwrite(hFile, var); format(var, 32, "SpawnY=%f\r\n",PlayerInfo[playerid][SpawnY]);fwrite(hFile, var); format(var, 32, "SpawnZ=%f\r\n",PlayerInfo[playerid][SpawnZ]);fwrite(hFile, var); format(var, 32, "SpawnR=%f\r\n",PlayerInfo[playerid][SpawnR]);fwrite(hFile, var); format(var, 32, "SInterior=%d\r\n",PlayerInfo[playerid][SInterior]);fwrite(hFile, var); format(var, 32, "SVirtualWorld=%d\r\n",PlayerInfo[playerid][SVirtualWorld]);fwrite(hFile, var); format(var, 32, "SHealth=%f\r\n",PlayerInfo[playerid][SHealth]);fwrite(hFile, var); //format(var, 32, "Wanteds=%d\r\n",WantedLevel[playerid]);fwrite(hFile, var); fclose(hFile); new clientlogonmsg[512]; format(clientlogonmsg, sizeof clientlogonmsg, "%s hat sich registriert.", playername3); new all[700]; format(all, sizeof(all),"{00FF00}Dein Account wurde erfolgreich erstellt!\n\n{FFA000}Benutzername: {FFFFFF}%s\n\nBitte logge dich nun in deinen Account ein!",playername3); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login (3/6)", all, "Weiter", "Abbrechen"); //ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login (3/5)","{00FF00}Dein Account wurde erfolgreich erstellt!\n\n{FFA000}Benutzername: {FFFFFF}%s\n\nBitte logge dich nun in deinen Account ein!","Weiter","Abbrechen",playername3); } } return 1; }
Gehasht wird so:
Code
Alles anzeigenFunction Encrypt(string[]) { for(new x=0; x < strlen(string); x++) { string[x] += (3^x) * (x % 15); if(string[x] > (0xff)) { string[x] -= 256; } } return 1; }
Das ist wohl nicht bei jedem.
Kann es auch sein, dass dies durch irgendeinem Modsobeit oder so sowas herbei gerufen wird?
-
Hallo,
komischerweise können sich die User dann nicht mehr mit ihrem Passwörtern einloggen.
Woran kann das liegen?
Werden die Überschrieben oder irgendwie geändert?
-
Ich weiss es nicht. Es verschwindet einfach.
-
Das Blöde ist, dass das nicht nur passiert, wenn man sich ausloggt, sondern auch einfach so mal das dein Fahrzeug einfach verschwindet mit dem du fährst.
//Edit:
Bei OnPlayerDisconnect wird nur OnPlayerCarUpdate(playerid,true); abgefragt.Und der ist so Definiert:
Code
Alles anzeigenforward OnPlayerCarUpdate(playerid, bool:deletecar); public OnPlayerCarUpdate(playerid,bool:deletecar) { if(IsPlayerConnected(playerid)) { for(new x = 0; x < MaxVeh; x++) { if(Dtc_PlayerHaveCar[playerid][x]) { if(deletecar) { 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); fclose(hFile); } } } } }
-
Ja das ist normal, aber es verschwindet das eigene Auto und dann noch ein zufälliges Auto von nem anderen User oder ein Auto was fest auf dem Server ist respawnt obwohl man im wagen sitzt.
-
Es basiert auf einem GF Script.
Ja kann sein dass das dadurch ist, allerdings habe ich kaum feste Fahrzeuge im Script und nur die automatische Fahrschule produziert Autos und löscht diese auch.
Reicht das nicht aus, dass ich die Fahrzeuge mit AddStaticVehicleEx erstelle? Da dürften die ID's sich ja nicht verschieben oder?
-
Hallo,
komischerweise gibt es immer mal wieder das Problem, dass Fahrzeuge, die man gerade fährt, respawnen, obwohl man im Auto sitzt.
Das ist mir aufgefallen, wenn vor allem User sich ausloggen.
Wie kann das sein, wo könnte das Problem sein?
Ich spawne alle Autos mit
AddStaticVehicleEx -
Leider mussten wir den offiziellen Serverstart vom 28.05.2016 auf den 04.06.2016 verschieben.
Trotzdem kann man sich im Forum schon für Fraktionen oder als Supporter bewerben.
Forum und Server ist jetzt schon offen.
//Edit:
Server ist ab sofort Offiziell geöffnet! -
-
Hallo,
ich suche jemanden, der mir dieses Logo editiert.
Da ich kein Photoshop habe, kann ich das Bild nicht editieren.
http://www.file-upload.net/dow…/GreyImpact-Logo.psd.html
Wäre lieb, wenn mir jemand das so ändert: German-Elite-Reallife anstatt Grey Impact und bei Ihr Slogan soll Das Original stehen.
Vielen Dank!
-
Ich habe die M_Bot Datei schon mal bearbeitet, allerdings hat es immer funktioniert.
Bis vor kurzem dann bei nem Spieler dieses Problem aufgetreten ist, welches sich auch mit älteren Scripts nicht beheben lies.Ich habe das jetzt mal ausgeklammert, mal sehen ob es immer noch so ist.
-
Beim Compilieren zeigt er mir diese Errors an:
CodeC:\Users\Desktop\German Elite Reallife 0.3.7-R2\pawno\include\M_Bot.inc(740) : error 017: undefined symbol "banstring" C:\Users\Desktop\German Elite Reallife 0.3.7-R2\pawno\include\M_Bot.inc(740) : error 017: undefined symbol "banstring" C:\Users\Desktop\German Elite Reallife 0.3.7-R2\pawno\include\M_Bot.inc(740) : error 029: invalid expression, assumed zero C:\Users\Desktop\German Elite Reallife 0.3.7-R2\pawno\include\M_Bot.inc(740) : fatal error 107: too many error messages on one line
-
Hab ich gemacht.
Jetzt ist der Server komplett abgeschmiert.
Code
Alles anzeigen[12:35:01] [join] Dakota has joined the server (18:217.241.137.237) [12:35:01] [debug] Server crashed while executing German-Elite-Reallife.amx [12:35:01] [debug] AMX backtrace: [12:35:01] [debug] #0 native format () from samp-server.exe [12:35:01] [debug] #1 00006508 in public Itter_OnPlayerConnect () at C:\Users\Desktop\German Elite Reallife 0.3.7-R2\pawno\include\M_Bot.inc:739 [12:35:01] [debug] #2 native CallLocalFunction () from samp-server.exe [12:35:01] [debug] #3 00007e20 in public Streamer_OnPlayerConnect (playerid=18) at C:\Users\Desktop\German Elite Reallife 0.3.7-R2\pawno\include\foreach.inc:452 [12:35:01] [debug] #4 000078d0 in public OnPlayerConnect (playerid=18) at C:\Users\Desktop\German Elite Reallife 0.3.7-R2\pawno\include\streamer.inc:277 [12:35:01] [debug] Native backtrace: [12:35:01] [debug] #0 00403334 in ?? () from samp-server.exe [12:35:01] [debug] #1 6bf462ca in ?? () from plugins\crashdetect.DLL [12:35:01] [debug] #2 6bf48b28 in ?? () from plugins\crashdetect.DLL [12:35:01] [debug] #3 6bf409c7 in ?? () from plugins\crashdetect.DLL [12:35:01] [debug] #4 6bf4631a in ?? () from plugins\crashdetect.DLL [12:35:01] [debug] #5 004746be in ?? () from samp-server.exe [12:35:01] [debug] #6 004010b6 in ?? () from samp-server.exe [12:35:01] [debug] #7 6bf462ca in ?? () from plugins\crashdetect.DLL [12:35:01] [debug] #8 6bf48b28 in ?? () from plugins\crashdetect.DLL [12:35:01] [debug] #9 6bf409c7 in ?? () from plugins\crashdetect.DLL [12:35:01] [debug] #10 6bf4631a in ?? () from plugins\crashdetect.DLL [12:35:01] [debug] #11 0046d960 in ?? () from samp-server.exe [12:35:01] [debug] #12 0046650f in ?? () from samp-server.exe [12:35:01] [debug] #13 00498d56 in ?? () from samp-server.exe [12:35:01] [debug] #14 77b7e0a3 in ?? () from C:\Windows\SysWOW64\ntdll.dll [12:35:01] [debug] #15 775514bd in ?? () from C:\Windows\syswow64\kernel32.dll [12:35:01] [debug] #16 00498e11 in ?? () from samp-server.exe [12:35:01] [debug] #17 004950d4 in ?? () from samp-server.exe [12:35:01] [debug] #18 458d5151 in ?? () from samp-server.exe [12:35:01] [debug] #19 15ff50f8 in ?? () from samp-server.exe [12:35:01] [debug] #20 004ac0c4 in ?? () from samp-server.exe
Wenn ich den new Banstring wieder an die Stelle mach, an die sie waren kommt dieser Error wieder:Code[12:41:04] [debug] Run time error 5: "Invalid memory access" [12:41:04] [debug] AMX backtrace: [12:41:04] [debug] #0 000064c0 in public Itter_OnPlayerConnect () at C:\Users\Desktop\German Elite Reallife 0.3.7-R2\pawno\include\M_Bot.inc:739 [12:41:04] [debug] #1 native CallLocalFunction () from samp-server.exe [12:41:04] [debug] #2 00007e48 in public Streamer_OnPlayerConnect (playerid=18) at C:\Users\Desktop\German Elite Reallife 0.3.7-R2\pawno\include\foreach.inc:452 [12:41:04] [debug] #3 000078f8 in public OnPlayerConnect (playerid=18) at C:\Users\Desktop\German Elite Reallife 0.3.7-R2\pawno\include\streamer.inc:277
Das komische dabei ist, dass das nicht bei jeden User auftritt.
(Könnte es auch sein, dass das an den Includes liegt, dass diese zu alt sind?)
//edit:
Hab auch mal paar ältere Backups Gamemodes angemacht und die Fehler kommen immer wieder