Was meinst du mit "SetPlayerSpawnInfo"?
Oky ich versuchs mal
Was meinst du mit "SetPlayerSpawnInfo"?
Oky ich versuchs mal
hay,
ist es möglich die Skinauswahl komplett auszuschalten o.Ä. ?
Ich hätte es gern so, dass, wenn ich mich einlogge mit meinem
PW, ich direkt Skin 2 zugewiesen bekommen und direkt Spawne.
Ohne auf die Skinauswahl zu kommen und "SPAWN" klicken zu müssen
.. Ist es möglich die Skinauswahl zu löschen/überspringen?
Narushi
jap hab vergessen es einzubinden
if(strcom(cmdtext,"/startbonus",true) == 0);
{
if(IsPlayerInRangeOfPoint(playerid,5,x,y,z);
{
if(GetPlayerScore(playerid)==1)
{
SetPlayerScore(playerid,3);
GivePlayerMoney(playerid,250000);
SendClientMessage(playerid,COLOR_BLUE,"Startbonus: Level 3 + 250k");
PlayerInfo[playerid][pCarLic] = 1;
PlayerInfo[playerid][pOwnPerso] = 1;
}
SendClientMessage(playerid,COLOR_GREY,"Nur für Lv. 1 User!");
return 1;
}
SendClientMessage(playerid,COLOR_GREY,"Du bist nicht beim Startbonus!");
return 1;
}
ja hab ich, alles klappt nun wunderbar MD5-Verschlüsselung hab ich auch schon eingefügt
Wieso kommt dieser Warning?
Warning:
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(1125) : warning 203: symbol is never used: "makeadmin"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Befehl:
ocmd:makeadmin(playerid,params[])
{
new pID, Adminlevel[20], str[128];
switch(Adminlevel)
{
case 0:{Adminlevel="No-Admin";}
case 1:{Adminlevel="Probe Supporter"}
case 2:{Adminlevel="Supporter"}
case 3:{Adminlevel="Moderator"}
case 4:{Adminlevel="Super Moderator"}
case 5:{Adminlevel="Administrator"}
case 6:{Adminlevel="Server Manager"}
case 7:{Adminlevel="Community Leiter"}
case 8:{Adminlevel="Serverleiter"}
}
if(IsPlayerAdmin(playerid));
{
if(sscanf(params,"u",pID)) return SendClientMessage(playerid,COLOR_GREY,"Benutzung: /makeadmin [ID]");
format(str,sizeof(str),"%s hat dich zum '%s' ernannt!",GetName(playerid),Adminlevel);
SendClientMessage(pID,COLOR_BLUE,str);
return 1;
}
return 1;
}
ja habe es durch printf ersetzt wie fnL es sagte, jetzt gehts :>
danke sehr leute
printf zu Spielerspeichern oder zu Register?
SavePlayer:
stock SavePlayer(playerid)
{
new Player[64], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(Player,sizeof(Player),"/Spieler/%s.txt",Name);
if(dini_Exists(Player))
{
dini_IntSet(Player,"Level",PlayerInfo[playerid][pLevel]);
dini_IntSet(Player,"Adminlevel",PlayerInfo[playerid][pAdmin]);
dini_IntSet(Player,"Supporter",PlayerInfo[playerid][pSupporter]);
dini_IntSet(Player,"DonateRang",PlayerInfo[playerid][pDonateRank]);
dini_IntSet(Player,"UpgradePunkte",PlayerInfo[playerid][gPupgrade]);
dini_IntSet(Player,"ConnectTime",PlayerInfo[playerid][pConnectTime]);
dini_IntSet(Player,"Neuling",PlayerInfo[playerid][pNeuling]);
dini_IntSet(Player,"pReg",PlayerInfo[playerid][pReg]);
dini_IntSet(Player,"Geschlecht",PlayerInfo[playerid][pSex]);
dini_IntSet(Player,"Alter",PlayerInfo[playerid][pAge]);
dini_IntSet(Player,"Herkunft",PlayerInfo[playerid][pOrigin]);
dini_IntSet(Player,"pCK",PlayerInfo[playerid][pCK]);
dini_IntSet(Player,"Account",PlayerInfo[playerid][pAccount]);
dini_IntSet(Player,"KreditkartenDauer",PlayerInfo[playerid][pPlayerKreditDauer]);
dini_IntSet(Player,"Kredit",PlayerInfo[playerid][pPlayerKredit]);
dini_IntSet(Player,"Kills",PlayerInfo[playerid][pKills]);
dini_IntSet(Player,"Jailed",PlayerInfo[playerid][pJailed]);
dini_IntSet(Player,"Jailtime",PlayerInfo[playerid][pJailTime]);
dini_IntSet(Player,"Tode",PlayerInfo[playerid][pDeaths]);
dini_IntSet(Player,"Arrest",PlayerInfo[playerid][pArrested]);
dini_IntSet(Player,"Wantedtode",PlayerInfo[playerid][pWantedDeaths]);
dini_IntSet(Player,"Telefonbuch",PlayerInfo[playerid][pPhoneBook]);
dini_IntSet(Player,"Lottonummer",PlayerInfo[playerid][pLottoNr]);
dini_IntSet(Player,"Fische",PlayerInfo[playerid][pFishes]);
dini_IntSet(Player,"GrosterFang",PlayerInfo[playerid][pBiggestFish]);
dini_IntSet(Player,"Job",PlayerInfo[playerid][pJob]);
dini_IntSet(Player,"PayCheck",PlayerInfo[playerid][pPayCheck]);
dini_IntSet(Player,"Rest",PlayerInfo[playerid][pRest]);
dini_IntSet(Player,"Kopfgeld",PlayerInfo[playerid][pHeadValue]);
dini_IntSet(Player,"Gangjail",PlayerInfo[playerid][pGangJailed]);
dini_IntSet(Player,"Mundtape",PlayerInfo[playerid][pMauled]);
dini_IntSet(Player,"Materialien",PlayerInfo[playerid][pMats]);
dini_IntSet(Player,"Drogen",PlayerInfo[playerid][pDrugs]);
dini_IntSet(Player,"FraktionsLeader",PlayerInfo[playerid][pLeader]);
dini_IntSet(Player,"FraktionsMember",PlayerInfo[playerid][pMember]);
dini_IntSet(Player,"FraktionsRang",PlayerInfo[playerid][pRank]);
dini_IntSet(Player,"Charakter",PlayerInfo[playerid][pChar]);
dini_IntSet(Player,"Contracts",PlayerInfo[playerid][pContractTime]);
dini_IntSet(Player,"DetektivSkill",PlayerInfo[playerid][pDetSkill]);
dini_IntSet(Player,"SexSkill",PlayerInfo[playerid][pSexSkill]);
dini_IntSet(Player,"BoxSkill",PlayerInfo[playerid][pBoxSkill]);
dini_IntSet(Player,"AnwaltsSkill",PlayerInfo[playerid][pLawSkill]);
dini_IntSet(Player,"MechanikerSkill",PlayerInfo[playerid][pMechSkill]);
dini_IntSet(Player,"AutodiebSkill",PlayerInfo[playerid][pJackSkill]);
dini_IntSet(Player,"CarSkill",PlayerInfo[playerid][pCarSkill]);
dini_IntSet(Player,"NewsSkill",PlayerInfo[playerid][pNewsSkill]);
dini_IntSet(Player,"DrogenSkill",PlayerInfo[playerid][pDrugsSkill]);
dini_IntSet(Player,"KochSkill",PlayerInfo[playerid][pCookSkill]);
dini_IntSet(Player,"FischSkill",PlayerInfo[playerid][pFishSkill]);
dini_IntSet(Player,"Interior",PlayerInfo[playerid][pInt]);
dini_IntSet(Player,"Local",PlayerInfo[playerid][pLocal]);
dini_IntSet(Player,"Team",PlayerInfo[playerid][pTeam]);
dini_IntSet(Player,"Model",PlayerInfo[playerid][pModel]);
dini_IntSet(Player,"Telefonnummer",PlayerInfo[playerid][pPnumber]);
dini_IntSet(Player,"Hausschlüssel",PlayerInfo[playerid][pPhousekey]);
dini_IntSet(Player,"BizSchlüssel",PlayerInfo[playerid][pPbiskey]);
dini_IntSet(Player,"Fahrschein",PlayerInfo[playerid][pCarLic]);
dini_IntSet(Player,"NewLic",PlayerInfo[playerid][pNewLic]);
dini_IntSet(Player,"Flugschein",PlayerInfo[playerid][pFlyLic]);
dini_IntSet(Player,"Bootschein",PlayerInfo[playerid][pBoatLic]);
dini_IntSet(Player,"Fischerschein",PlayerInfo[playerid][pFishLic]);
dini_IntSet(Player,"Waffenschein",PlayerInfo[playerid][pGunLic]);
dini_IntSet(Player,"LKWSchein",PlayerInfo[playerid][pLKWLic]);
dini_IntSet(Player,"Rollerschein",PlayerInfo[playerid][pRollerLic]);
dini_IntSet(Player,"MotorradSchein",PlayerInfo[playerid][pMotoLic]);
dini_IntSet(Player,"Zigaretten",PlayerInfo[playerid][pZig]);
dini_IntSet(Player,"Kekse",PlayerInfo[playerid][pKekse]);
dini_IntSet(Player,"ZigarettenSucht",PlayerInfo[playerid][pZigSucht]);
dini_IntSet(Player,"Waffe1",PlayerInfo[playerid][pGun1]);
dini_IntSet(Player,"Waffe2",PlayerInfo[playerid][pGun2]);
dini_IntSet(Player,"Waffe3",PlayerInfo[playerid][pGun3]);
dini_IntSet(Player,"Waffe4",PlayerInfo[playerid][pGun4]);
dini_IntSet(Player,"Mun1",PlayerInfo[playerid][pAmmo1]);
dini_IntSet(Player,"Mun2",PlayerInfo[playerid][pAmmo2]);
dini_IntSet(Player,"Mun3",PlayerInfo[playerid][pAmmo3]);
dini_IntSet(Player,"Mun4",PlayerInfo[playerid][pAmmo4]);
dini_IntSet(Player,"Fahrzeit",PlayerInfo[playerid][pCarTime]);
dini_IntSet(Player,"Mulltime",PlayerInfo[playerid][pMulltime]);
dini_IntSet(Player,"PayDay",PlayerInfo[playerid][pPayDay]);
dini_IntSet(Player,"GehabtePayDay",PlayerInfo[playerid][pPayDayHad]);
dini_IntSet(Player,"CDSpieler",PlayerInfo[playerid][pCDPlayer]);
dini_IntSet(Player,"Siege",PlayerInfo[playerid][pWins]);
dini_IntSet(Player,"Niederlagen",PlayerInfo[playerid][pLoses]);
dini_IntSet(Player,"PromilleAlk",PlayerInfo[playerid][pAlcoholPerk]);
dini_IntSet(Player,"PromilleDrug",PlayerInfo[playerid][pDrugPerk]);
dini_IntSet(Player,"MiserPerk",PlayerInfo[playerid][pMiserPerk]);
dini_IntSet(Player,"PainPerk",PlayerInfo[playerid][pPainPerk]);
dini_IntSet(Player,"TraderPerk",PlayerInfo[playerid][pTraderPerk]);
dini_IntSet(Player,"Tutorial",PlayerInfo[playerid][pTut]);
dini_IntSet(Player,"Radio",PlayerInfo[playerid][pRadio]);
dini_IntSet(Player,"Warns",PlayerInfo[playerid][pWarns]);
dini_IntSet(Player,"Verheiratet",PlayerInfo[playerid][pMarried]);
dini_IntSet(Player,"VeheiratetMit",PlayerInfo[playerid][pMarriedTo]);
dini_IntSet(Player,"SpielMinuten",PlayerInfo[playerid][pPlayMinutes]);
dini_IntSet(Player,"SpielMinutenGesamt",PlayerInfo[playerid][pGesamtMinutes]);
dini_IntSet(Player,"SFPass",PlayerInfo[playerid][pSFPASS]);
dini_IntSet(Player,"DrogenSkill",PlayerInfo[playerid][pDrugsSkill]);
dini_IntSet(Player,"HandyGuthaben",PlayerInfo[playerid][pHandyGeld]);
dini_IntSet(Player,"HandyVersion",PlayerInfo[playerid][pHandyVer]);
dini_IntSet(Player,"UhrID",PlayerInfo[playerid][pUhrID]);
dini_IntSet(Player,"HandyID",PlayerInfo[playerid][pHandyID]);
dini_IntSet(Player,"Personalausweis",PlayerInfo[playerid][pOwnPerso]);
dini_IntSet(Player,"Antrag",PlayerInfo[playerid][pOwnAntrag]);
dini_IntSet(Player,"PersoStop",PlayerInfo[playerid][pPersoStop]);
dini_IntSet(Player,"Gehalt",PlayerInfo[playerid][pGehalt]);
dini_IntSet(Player,"Fraktionssperre",PlayerInfo[playerid][pFrakSperre]);
dini_IntSet(Player,"SafeMats",PlayerInfo[playerid][pBoxMats]);
dini_IntSet(Player,"SafeDrugs",PlayerInfo[playerid][pBoxDrugs]);
dini_IntSet(Player,"Banned",PlayerInfo[playerid][pban]);
dini_IntSet(Player,"pTot",PlayerInfo[playerid][pTot]);
dini_IntSet(Player,"FarmZeit",PlayerInfo[playerid][pFarmTime]);
dini_IntSet(Player,"GDeaths",PlayerInfo[playerid][pGDeaths]);
dini_IntSet(Player,"GKills",PlayerInfo[playerid][pGKills]);
dini_IntSet(Player,"Meldungen",PlayerInfo[playerid][pMeldung]);
dini_IntSet(Player,"HouseKey",PlayerInfo[playerid][pHouseKey]);
dini_IntSet(Player,"RentHouseKey",PlayerInfo[playerid][pRentHouseKey]);
}
}
Hallo Leute,
ich habe ein Register/Login System erstellt nach "NemesusScripts"Tutorials.
also hab ich bei "stock Register" folgendes geschrieben.
stock Register(playerid,key[])
{
new Player[64], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(Player,sizeof(Player),"/Spieler/%s.txt",Name);
dini_Create(Player);
dini_Set(Player,"Passwort",key);
SendClientMessage(playerid,0xFEFEFEFE,"Du hast dich erfolgreich registriert.");
return 1;
}
Das Passwort speichern ist das Problem!! Wenn ich mich registriere und im Spiel auf das Scriptfile meines accs sehe steht da " Passwort=*key* "
doch wenn ich dann mich auslogge steht da:
Passwort=
Level=0
Adminlevel=0
Supporter=0
DonateRang=0
UpgradePunkte=0
ConnectTime=0
Neuling=0
pReg=0
Geschlecht=0
Alter=0
Herkunft=0
pCK=0
Account=0
KreditkartenDauer=0
Kredit=0
Kills=0
Jailed=0
Jailtime=0
Tode=0
Arrest=0
Wantedtode=0
Telefonbuch=0
..
..
...
......
Durch das stock SpielerSpeichern passiert das glaub ich.. Wie kann ich das verbessern
geklärt ..
Dicken, Fetten Danke an Sonic_Hedgedog :3
okay Sonic ich schicke sie dir mal per pn
Wnn ich mich nicht irre musst du bei dini alle Strings anders auslesen, dann sollten die Fehler weg sein.
Wie meinst du das? Wie soll ich die denn auslesen?^^ habe diese Methode aus "NemesusScripts" ..
stock LoadPlayer(playerid)
{
new Player[256], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(Player,sizeof(Player),"/Spieler/%s.txt",Name);
if(dini_Exists(Player))
{
PlayerInfo[playerid][pKey] = dini_Get(Player,"Passwort");
PlayerInfo[playerid][pLevel] = dini_Get(Player,"Level");
PlayerInfo[playerid][pAdmin] = dini_Get(Player,"Adminlevel");
PlayerInfo[playerid][pSupporter] = dini_Get(Player,"Supporter");
PlayerInfo[playerid][pDonateRank] = dini_Get(Player,"DonateRang");
PlayerInfo[playerid][gPupgrade] = dini_Get(Player,"UpgradePunkte");
PlayerInfo[playerid][pConnectTime] = dini_Get(Player,"ConnectTime");
Davon ist die Zeile 545 die:
ZEILE 545::
PlayerInfo[playerid][pKey] = dini_Get(Player,"Passwort");
danke D4rk^^ dieser Error hatte mich gestört x.x
enum pInfo
{
pKey[128],
pLevel,
pAdmin,
pSupporter,
pDonateRank,
gPupgrade,
pConnectTime,
pNeuling,
pReg,
pSex,
pAge,
pOrigin,
pCK,
pMuted,
pKnast,
pExp,
pCash,
pAccount,
pPlayerKreditDauer,
pPlayerKredit,
pCrimes,
pKills,
pJailed,
pJailTime,
pDeaths,
pArrested,
pWantedDeaths,
pPhoneBook,
pLottoNr,
pFishes,
pBiggestFish,
pJob,
pPayCheck,
pRest,
pHeadValue,
pGangJailed,
pMauled,
pMats,
pDrugs,
pLeader,
pMember,
pFMember,
pRank,
pChar,
pContractTime,
pDetSkill,
pSexSkill,
pBoxSkill,
pLawSkill,
pMechSkill,
pJackSkill,
pCarSkill,
pNewsSkill,
pDrugsSkill,
pCookSkill,
pFishSkill,
Float:pHealth,
Float:pSHealth,
pInt,
pLocal,
pTeam,
pModel,
pPnumber,
pPhousekey,
pPbiskey,
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
pCarLic,
pNewLic,
pFlyLic,
pBoatLic,
pFishLic,
pGunLic, //Definition des Scheines zb die Aufgabe später
pLKWLic,
pRollerLic,
pMotoLic,
pZig,
pKekse,
pZigSucht,
pGun1,
pGun2,
pGun3,
pGun4,
pAmmo1,
pAmmo2,
pAmmo3,
pAmmo4,
pCarTime,
pMulltime,
pPayDay,
pPayDayHad,
pCDPlayer,
pWins,
pLoses,
pAlcoholPerk,
pDrugPerk,
pMiserPerk,
pPainPerk,
pTraderPerk,
pTut,
pRadio,
pWarns,
Float:pGWD,
pAdjustable,
pFuel,
pMarried,
pMarriedTo[128],
pInvWeapon,
pInvAmmo,
pInvWeapon2,
pInvAmmo2,
pInvDrugs,
pInvMats,
pFlugTime,
pRoadblock,
pPlayMinutes,
pGesamtMinutes,
pMinutesSinceLogin,
pMinutesSinceAn,
pSFPASS,
pLVPASS,
pHandyGeld,
pHandyVer,
pUhrID,
pHandyID,
pOwnPerso,
pOwnAntrag,
pPersoStop,
pGehalt,
pFrakSperre,
pBoxMats,
pBoxDrugs,
pban,
Text:LetterboxTop,Text:LetterboxBottom2, Text:LetterboxBottom,
pTot,
pFarmTime,
pGDeaths,
pGKills,
pMeldung,
pHouseKey,
pRentHouseKey,
pLoggedIn
};
stock SavePlayer(playerid)
{
new Player[64], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(Player,sizeof(Player),"/Spieler/%s.txt",Name);
if(dini_Exists(Player))
{
dini_Set(Player,"Passwort",PlayerInfo[playerid][pKey]);
dini_IntSet(Player,"Level",PlayerInfo[playerid][pLevel]);
dini_IntSet(Player,"Adminlevel",PlayerInfo[playerid][pAdmin]);
dini_IntSet(Player,"Supporter",PlayerInfo[playerid][pSupporter]);
dini_IntSet(Player,"DonateRang",PlayerInfo[playerid][pDonateRank]);
dini_IntSet(Player,"UpgradePunkte",PlayerInfo[playerid][gPupgrade]);
dini_IntSet(Player,"ConnectTime",PlayerInfo[playerid][pConnectTime]);
dini_IntSet(Player,"Neuling",PlayerInfo[playerid][pNeuling]);
dini_IntSet(Player,"pReg",PlayerInfo[playerid][pReg]);
dini_IntSet(Player,"Geschlecht",PlayerInfo[playerid][pSex]);
dini_IntSet(Player,"Alter",PlayerInfo[playerid][pAge]);
dini_IntSet(Player,"Herkunft",PlayerInfo[playerid][pOrigin]);
dini_IntSet(Player,"pCK",PlayerInfo[playerid][pCK]);
dini_IntSet(Player,"Account",PlayerInfo[playerid][pAccount]);
dini_IntSet(Player,"KreditkartenDauer",PlayerInfo[playerid][pPlayerKreditDauer]);
dini_IntSet(Player,"Kredit",PlayerInfo[playerid][pPlayerKredit]);
dini_IntSet(Player,"Kills",PlayerInfo[playerid][pKills]);
dini_IntSet(Player,"Jailed",PlayerInfo[playerid][pJailed]);
dini_IntSet(Player,"Jailtime",PlayerInfo[playerid][pJailTime]);
dini_IntSet(Player,"Tode",PlayerInfo[playerid][pDeaths]);
dini_IntSet(Player,"Arrest",PlayerInfo[playerid][pArrested]);
dini_IntSet(Player,"Wantedtode",PlayerInfo[playerid][pWantedDeaths]);
dini_IntSet(Player,"Telefonbuch",PlayerInfo[playerid][pPhoneBook]);
dini_IntSet(Player,"Lottonummer",PlayerInfo[playerid][pLottoNr]);
dini_IntSet(Player,"Fische",PlayerInfo[playerid][pFishes]);
dini_IntSet(Player,"GrosterFang",PlayerInfo[playerid][pBiggestFish]);
dini_IntSet(Player,"Job",PlayerInfo[playerid][pJob]);
dini_IntSet(Player,"PayCheck",PlayerInfo[playerid][pPayCheck]);
dini_IntSet(Player,"Rest",PlayerInfo[playerid][pRest]);
dini_IntSet(Player,"Kopfgeld",PlayerInfo[playerid][pHeadValue]);
dini_IntSet(Player,"Gangjail",PlayerInfo[playerid][pGangJailed]);
dini_IntSet(Player,"Mundtape",PlayerInfo[playerid][pMauled]);
dini_IntSet(Player,"Materialien",PlayerInfo[playerid][pMats]);
dini_IntSet(Player,"Drogen",PlayerInfo[playerid][pDrugs]);
dini_IntSet(Player,"FraktionsLeader",PlayerInfo[playerid][pLeader]);
dini_IntSet(Player,"FraktionsMember",PlayerInfo[playerid][pMember]);
dini_IntSet(Player,"FraktionsRang",PlayerInfo[playerid][pRank]);
dini_IntSet(Player,"Charakter",PlayerInfo[playerid][pChar]);
dini_IntSet(Player,"Contracts",PlayerInfo[playerid][pContractTime]);
dini_IntSet(Player,"DetektivSkill",PlayerInfo[playerid][pDetSkill]);
dini_IntSet(Player,"SexSkill",PlayerInfo[playerid][pSexSkill]);
dini_IntSet(Player,"BoxSkill",PlayerInfo[playerid][pBoxSkill]);
dini_IntSet(Player,"AnwaltsSkill",PlayerInfo[playerid][pLawSkill]);
dini_IntSet(Player,"MechanikerSkill",PlayerInfo[playerid][pMechSkill]);
dini_IntSet(Player,"AutodiebSkill",PlayerInfo[playerid][pJackSkill]);
dini_IntSet(Player,"CarSkill",PlayerInfo[playerid][pCarSkill]);
dini_IntSet(Player,"NewsSkill",PlayerInfo[playerid][pNewsSkill]);
dini_IntSet(Player,"DrogenSkill",PlayerInfo[playerid][pDrugsSkill]);
dini_IntSet(Player,"KochSkill",PlayerInfo[playerid][pCookSkill]);
dini_IntSet(Player,"FischSkill",PlayerInfo[playerid][pFishSkill]);
dini_IntSet(Player,"Interior",PlayerInfo[playerid][pInt]);
dini_IntSet(Player,"Local",PlayerInfo[playerid][pLocal]);
dini_IntSet(Player,"Team",PlayerInfo[playerid][pTeam]);
dini_IntSet(Player,"Model",PlayerInfo[playerid][pModel]);
dini_IntSet(Player,"Telefonnummer",PlayerInfo[playerid][pPnumber]);
dini_IntSet(Player,"Hausschlüssel",PlayerInfo[playerid][pPhousekey]);
dini_IntSet(Player,"BizSchlüssel",PlayerInfo[playerid][pPbiskey]);
dini_IntSet(Player,"Fahrschein",PlayerInfo[playerid][pCarLic]);
dini_IntSet(Player,"NewLic",PlayerInfo[playerid][pNewLic]);
dini_IntSet(Player,"Flugschein",PlayerInfo[playerid][pFlyLic]);
dini_IntSet(Player,"Bootschein",PlayerInfo[playerid][pBoatLic]);
dini_IntSet(Player,"Fischerschein",PlayerInfo[playerid][pFishLic]);
dini_IntSet(Player,"Waffenschein",PlayerInfo[playerid][pGunLic]);
dini_IntSet(Player,"LKWSchein",PlayerInfo[playerid][pLKWLic]);
dini_IntSet(Player,"Rollerschein",PlayerInfo[playerid][pRollerLic]);
dini_IntSet(Player,"MotorradSchein",PlayerInfo[playerid][pMotoLic]);
dini_IntSet(Player,"Zigaretten",PlayerInfo[playerid][pZig]);
dini_IntSet(Player,"Kekse",PlayerInfo[playerid][pKekse]);
dini_IntSet(Player,"ZigarettenSucht",PlayerInfo[playerid][pZigSucht]);
dini_IntSet(Player,"Waffe1",PlayerInfo[playerid][pGun1]);
dini_IntSet(Player,"Waffe2",PlayerInfo[playerid][pGun2]);
dini_IntSet(Player,"Waffe3",PlayerInfo[playerid][pGun3]);
dini_IntSet(Player,"Waffe4",PlayerInfo[playerid][pGun4]);
dini_IntSet(Player,"Mun1",PlayerInfo[playerid][pAmmo1]);
dini_IntSet(Player,"Mun2",PlayerInfo[playerid][pAmmo2]);
dini_IntSet(Player,"Mun3",PlayerInfo[playerid][pAmmo3]);
dini_IntSet(Player,"Mun4",PlayerInfo[playerid][pAmmo4]);
dini_IntSet(Player,"Fahrzeit",PlayerInfo[playerid][pCarTime]);
dini_IntSet(Player,"Mulltime",PlayerInfo[playerid][pMulltime]);
dini_IntSet(Player,"PayDay",PlayerInfo[playerid][pPayDay]);
dini_IntSet(Player,"GehabtePayDay",PlayerInfo[playerid][pPayDayHad]);
dini_IntSet(Player,"CDSpieler",PlayerInfo[playerid][pCDPlayer]);
dini_IntSet(Player,"Siege",PlayerInfo[playerid][pWins]);
dini_IntSet(Player,"Niederlagen",PlayerInfo[playerid][pLoses]);
dini_IntSet(Player,"PromilleAlk",PlayerInfo[playerid][pAlcoholPerk]);
dini_IntSet(Player,"PromilleDrug",PlayerInfo[playerid][pDrugPerk]);
dini_IntSet(Player,"MiserPerk",PlayerInfo[playerid][pMiserPerk]);
dini_IntSet(Player,"PainPerk",PlayerInfo[playerid][pPainPerk]);
dini_IntSet(Player,"TraderPerk",PlayerInfo[playerid][pTraderPerk]);
dini_IntSet(Player,"Tutorial",PlayerInfo[playerid][pTut]);
dini_IntSet(Player,"Radio",PlayerInfo[playerid][pRadio]);
dini_IntSet(Player,"Warns",PlayerInfo[playerid][pWarns]);
dini_IntSet(Player,"Verheiratet",PlayerInfo[playerid][pMarried]);
dini_IntSet(Player,"VeheiratetMit",PlayerInfo[playerid][pMarriedTo]);
dini_IntSet(Player,"SpielMinuten",PlayerInfo[playerid][pPlayMinutes]);
dini_IntSet(Player,"SpielMinutenGesamt",PlayerInfo[playerid][pGesamtMinutes]);
dini_IntSet(Player,"SFPass",PlayerInfo[playerid][pSFPASS]);
dini_IntSet(Player,"DrogenSkill",PlayerInfo[playerid][pDrugsSkill]);
dini_IntSet(Player,"HandyGuthaben",PlayerInfo[playerid][pHandyGeld]);
dini_IntSet(Player,"HandyVersion",PlayerInfo[playerid][pHandyVer]);
dini_IntSet(Player,"UhrID",PlayerInfo[playerid][pUhrID]);
dini_IntSet(Player,"HandyID",PlayerInfo[playerid][pHandyID]);
dini_IntSet(Player,"Personalausweis",PlayerInfo[playerid][pOwnPerso]);
dini_IntSet(Player,"Antrag",PlayerInfo[playerid][pOwnAntrag]);
dini_IntSet(Player,"PersoStop",PlayerInfo[playerid][pPersoStop]);
dini_IntSet(Player,"Gehalt",PlayerInfo[playerid][pGehalt]);
dini_IntSet(Player,"Fraktionssperre",PlayerInfo[playerid][pFrakSperre]);
dini_IntSet(Player,"SafeMats",PlayerInfo[playerid][pBoxMats]);
dini_IntSet(Player,"SafeDrugs",PlayerInfo[playerid][pBoxDrugs]);
dini_IntSet(Player,"Banned",PlayerInfo[playerid][pban]);
dini_IntSet(Player,"pTot",PlayerInfo[playerid][pTot]);
dini_IntSet(Player,"FarmZeit",PlayerInfo[playerid][pFarmTime]);
dini_IntSet(Player,"GDeaths",PlayerInfo[playerid][pGDeaths]);
dini_IntSet(Player,"GKills",PlayerInfo[playerid][pGKills]);
dini_IntSet(Player,"Meldungen",PlayerInfo[playerid][pMeldung]);
dini_IntSet(Player,"HouseKey",PlayerInfo[playerid][pHouseKey]);
dini_IntSet(Player,"RentHouseKey",PlayerInfo[playerid][pRentHouseKey]);
}
}
LoadPlayer(playerid)
{
new Player[64], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(Player,sizeof(Player),"/Spieler/%s.txt",Name);
if(dini_Exists(Player))
{
PlayerInfo[playerid][pKey] = dini_Get(Player,"Passwort");
PlayerInfo[playerid][pLevel] = dini_Get(Player,"Level");
PlayerInfo[playerid][pAdmin] = dini_Get(Player,"Adminlevel");
PlayerInfo[playerid][pSupporter] = dini_Get(Player,"Supporter");
PlayerInfo[playerid][pDonateRank] = dini_Get(Player,"DonateRang");
PlayerInfo[playerid][gPupgrade] = dini_Get(Player,"UpgradePunkte");
PlayerInfo[playerid][pConnectTime] = dini_Get(Player,"ConnectTime");
PlayerInfo[playerid][pNeuling] = dini_Get(Player,"Neuling");
PlayerInfo[playerid][pReg] = dini_Get(Player,"pReg");
PlayerInfo[playerid][pSex] = dini_Get(Player,"Geschlecht");
PlayerInfo[playerid][pAge] = dini_Get(Player,"Alter");
PlayerInfo[playerid][pOrigin] = dini_Get(Player,"Herkunft");
PlayerInfo[playerid][pCK] = dini_Get(Player,"pCK");
PlayerInfo[playerid][pAccount] = dini_Get(Player,"Account");
PlayerInfo[playerid][pPlayerKreditDauer] = dini_Get(Player,"KreditkartenDauer");
PlayerInfo[playerid][pPlayerKredit] = dini_Get(Player,"Kredit");
PlayerInfo[playerid][pKills] = dini_Get(Player,"Kills");
PlayerInfo[playerid][pJailed] = dini_Get(Player,"Jailed");
PlayerInfo[playerid][pJailTime] = dini_Get(Player,"Jailtime");
PlayerInfo[playerid][pDeaths] = dini_Get(Player,"Tode");
PlayerInfo[playerid][pArrested] = dini_Get(Player,"Arrest");
PlayerInfo[playerid][pWantedDeaths] = dini_Get(Player,"Wantedtode");
PlayerInfo[playerid][pPhoneBook] = dini_Get(Player,"Telefonbuch");
PlayerInfo[playerid][pLottoNr] = dini_Get(Player,"Lottonummer");
PlayerInfo[playerid][pFishes] = dini_Get(Player,"Fische");
PlayerInfo[playerid][pBiggestFish] = dini_Get(Player,"GrosterFang");
PlayerInfo[playerid][pJob] = dini_Get(Player,"Job");
PlayerInfo[playerid][pPayCheck] = dini_Get(Player,"PayCheck");
PlayerInfo[playerid][pRest] = dini_Get(Player,"Rest");
PlayerInfo[playerid][pHeadValue] = dini_Get(Player,"Kopfgeld");
PlayerInfo[playerid][pGangJailed] = dini_Get(Player,"Gangjail");
PlayerInfo[playerid][pMauled] = dini_Get(Player,"Mundtape");
PlayerInfo[playerid][pMats] = dini_Get(Player,"Materialien");
PlayerInfo[playerid][pDrugs] = dini_Get(Player,"Drogen");
PlayerInfo[playerid][pLeader] = dini_Get(Player,"FraktionsLeader");
PlayerInfo[playerid][pMember] = dini_Get(Player,"FraktionsMember");
PlayerInfo[playerid][pRank] = dini_Get(Player,"FraktionsRang");
PlayerInfo[playerid][pChar] = dini_Get(Player,"Charakter");
PlayerInfo[playerid][pContractTime] = dini_Get(Player,"Contracts");
PlayerInfo[playerid][pDetSkill] = dini_Get(Player,"DetektivSkill");
PlayerInfo[playerid][pSexSkill] = dini_Get(Player,"SexSkill");
PlayerInfo[playerid][pBoxSkill] = dini_Get(Player,"BoxSkill");
PlayerInfo[playerid][pLawSkill] = dini_Get(Player,"AnwaltsSkill");
PlayerInfo[playerid][pMechSkill] = dini_Get(Player,"MechanikerSkill");
PlayerInfo[playerid][pJackSkill] = dini_Get(Player,"AutodiebSkill");
PlayerInfo[playerid][pCarSkill] = dini_Get(Player,"CarSkill");
PlayerInfo[playerid][pNewsSkill] = dini_Get(Player,"NewsSkill");
PlayerInfo[playerid][pDrugsSkill] = dini_Get(Player,"DrogenSkill");
PlayerInfo[playerid][pCookSkill] = dini_Get(Player,"KochSkill");
PlayerInfo[playerid][pFishSkill] = dini_Get(Player,"FischSkill");
PlayerInfo[playerid][pInt] = dini_Get(Player,"Interior");
PlayerInfo[playerid][pLocal] = dini_Get(Player,"Local");
PlayerInfo[playerid][pTeam] = dini_Get(Player,"Team");
PlayerInfo[playerid][pModel] = dini_Get(Player,"Model");
PlayerInfo[playerid][pPnumber] = dini_Get(Player,"Telefonnummer");
PlayerInfo[playerid][pPhousekey] = dini_Get(Player,"Hausschlüssel");
PlayerInfo[playerid][pPbiskey] = dini_Get(Player,"BizSchlüssel");
PlayerInfo[playerid][pCarLic] = dini_Get(Player,"Fahrschein");
PlayerInfo[playerid][pNewLic] = dini_Get(Player,"NewLic");
PlayerInfo[playerid][pFlyLic] = dini_Get(Player,"Flugschein");
PlayerInfo[playerid][pBoatLic] = dini_Get(Player,"Bootschein");
PlayerInfo[playerid][pFishLic] = dini_Get(Player,"Fischerschein");
PlayerInfo[playerid][pGunLic] = dini_Get(Player,"Waffenschein");
PlayerInfo[playerid][pLKWLic] = dini_Get(Player,"LKWSchein");
PlayerInfo[playerid][pRollerLic] = dini_Get(Player,"Rollerschein");
PlayerInfo[playerid][pMotoLic] = dini_Get(Player,"MotorradSchein");
PlayerInfo[playerid][pZig] = dini_Get(Player,"Zigaretten");
PlayerInfo[playerid][pKekse] = dini_Get(Player,"Kekse");
PlayerInfo[playerid][pZigSucht] = dini_Get(Player,"ZigarettenSucht");
PlayerInfo[playerid][pGun1] = dini_Get(Player,"Waffe1");
PlayerInfo[playerid][pGun2] = dini_Get(Player,"Waffe2");
PlayerInfo[playerid][pGun3] = dini_Get(Player,"Waffe3");
PlayerInfo[playerid][pGun4] = dini_Get(Player,"Waffe4");
PlayerInfo[playerid][pAmmo1] = dini_Get(Player,"Mun1");
PlayerInfo[playerid][pAmmo2] = dini_Get(Player,"Mun2");
PlayerInfo[playerid][pAmmo3] = dini_Get(Player,"Mun3");
PlayerInfo[playerid][pAmmo4] = dini_Get(Player,"Mun4");
PlayerInfo[playerid][pCarTime] = dini_Get(Player,"Fahrzeit");
PlayerInfo[playerid][pMulltime] = dini_Get(Player,"Mulltime");
PlayerInfo[playerid][pPayDay] = dini_Get(Player,"PayDay");
PlayerInfo[playerid][pPayDayHad] = dini_Get(Player,"GehabtePayDay");
PlayerInfo[playerid][pCDPlayer] = dini_Get(Player,"CDSpieler");
PlayerInfo[playerid][pWins] = dini_Get(Player,"Siege");
PlayerInfo[playerid][pLoses] = dini_Get(Player,"Niederlagen");
PlayerInfo[playerid][pAlcoholPerk] = dini_Get(Player,"PromilleAlk");
PlayerInfo[playerid][pDrugPerk] = dini_Get(Player,"PromilleDrug");
PlayerInfo[playerid][pMiserPerk] = dini_Get(Player,"MiserPerk");
PlayerInfo[playerid][pPainPerk] = dini_Get(Player,"PainPerk");
PlayerInfo[playerid][pTraderPerk] = dini_Get(Player,"TraderPerk");
PlayerInfo[playerid][pTut] = dini_Get(Player,"Tutorial");
PlayerInfo[playerid][pRadio] = dini_Get(Player,"Radio");
PlayerInfo[playerid][pWarns] = dini_Get(Player,"Warns");
PlayerInfo[playerid][pMarried] = dini_Get(Player,"Verheiratet");
PlayerInfo[playerid][pMarriedTo] = dini_Get(Player,"VeheiratetMit");
PlayerInfo[playerid][pPlayMinutes] = dini_Get(Player,"SpielMinuten");
PlayerInfo[playerid][pGesamtMinutes] = dini_Get(Player,"SpielMinutenGesamt");
PlayerInfo[playerid][pSFPASS] = dini_Get(Player,"SFPass");
PlayerInfo[playerid][pDrugsSkill] = dini_Get(Player,"DrogenSkill");
PlayerInfo[playerid][pHandyGeld] = dini_Get(Player,"HandyGuthaben");
PlayerInfo[playerid][pHandyVer] = dini_Get(Player,"HandyVersion");
PlayerInfo[playerid][pUhrID] = dini_Get(Player,"UhrID");
PlayerInfo[playerid][pHandyID] = dini_Get(Player,"HandyID");
PlayerInfo[playerid][pOwnPerso] = dini_Get(Player,"Personalausweis");
PlayerInfo[playerid][pOwnAntrag] = dini_Get(Player,"Antrag");
PlayerInfo[playerid][pPersoStop] = dini_Get(Player,"PersoStop");
PlayerInfo[playerid][pGehalt] = dini_Get(Player,"Gehalt");
PlayerInfo[playerid][pFrakSperre] = dini_Get(Player,"Fraktionssperre");
PlayerInfo[playerid][pBoxMats] = dini_Get(Player,"SafeMats");
PlayerInfo[playerid][pBoxDrugs] = dini_Get(Player,"SafeDrugs");
PlayerInfo[playerid][pban] = dini_Get(Player,"Banned");
PlayerInfo[playerid][pTot] = dini_Get(Player,"pTot");
PlayerInfo[playerid][pFarmTime] = dini_Get(Player,"FarmZeit");
PlayerInfo[playerid][pGDeaths] = dini_Get(Player,"GDeaths");
PlayerInfo[playerid][pGKills] = dini_Get(Player,"GKills");
PlayerInfo[playerid][pMeldung] = dini_Get(Player,"Meldungen");
PlayerInfo[playerid][pHouseKey] = dini_Get(Player,"HouseKey");
PlayerInfo[playerid][pRentHouseKey] = dini_Get(Player,"RentHouseKey");
}
return 1;
}
Nein eig nicht glaube ich, alle Zeilen sehen so aus:
PlayerInfo[playerid][pKey] = dini_Get(Player,"Passwort");
Hey, ich habe einen stock für LoadPlayer erstellt.. Wenn ich compile keine Errors ausser 1 Warning..
Der Warning
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(915) : warning 203: symbol is never used: "LoadPlayer"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Wenn ich dann bei "stock Login" , "LoadPlayer(playerid)" eingebe bekomme ich 26 Errors.
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(545) : error 047: array sizes do not match, or destination array is too small
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(546) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(547) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(548) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(549) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(550) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(551) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(552) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(553) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(554) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(555) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(556) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(557) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(558) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(559) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(560) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(561) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(562) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(563) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(564) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(565) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(566) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(567) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(568) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(569) : error 006: must be assigned to an array
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(570) : error 006: must be assigned to an array
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\pawno\include\Dini.inc
ist doch richtig.. 0,o
Was hat das zu bedeuten?
Habe blankes Script.: Ich schreibe "#include <dini>"
und dann wenn ich compile::
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade2.pwn(516) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.