Ich habe nun versucht ein Dialog zu machen mit geworben aber ich bekomme die errors nicht weg könnte mir wer helfen
C:\Users\Kokosnuss\Desktop\NoobLife\gamemodes\GNE.pwn(5713) : error 029: invalid expression, assumed zero
C:\Users\Kokosnuss\Desktop\NoobLife\gamemodes\GNE.pwn(5722) : error 029: invalid expression, assumed zero
C:\Users\Kokosnuss\Desktop\NoobLife\gamemodes\GNE.pwn(6336) : warning 225: unreachable code
C:\Users\Kokosnuss\Desktop\NoobLife\gamemodes\GNE.pwn(11328) : error 017: undefined symbol "geworben"
C:\Users\Kokosnuss\Desktop\NoobLife\gamemodes\GNE.pwn(55010) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
format(string1, sizeof string1, "{0000FF}[Stats von %s auf NoobLife]{FFFFFF}", name);
format(string2, sizeof string2, "[Allgemeines]");
format(string3, sizeof string3, "Level [%d] Geschlecht [%s] Alter [%d] Geworben [%s] Spawnenergie [%.1f] Verheiretet mit [%s] Telefonnummer [%d]", level,atext,age,geworben,shealth+50.0,married,pnumber);
format(string4, sizeof string4, "Größter Fisch [%d] Verbrechen [%d] Gefängniszeiten [%d] Kosten für nächstes Level [%d$] Spielminuten seit Login / insgesammt [%d / %d]", bigfish,crimes,arrests,costlevel,PlayerInfo[targetid][pMinutesSinceLogin],PlayerInfo[targetid][pGesamtMinutes]);
format(string5, sizeof string5, "Kreditraten verbleibend / Summe [%d / %d] Spielminuten bis Payday [%d]", PlayerInfo[targetid][pPlayerKreditDauer], PlayerInfo[targetid][pPlayerKredit], 60-PlayerInfo[targetid][pPlayMinutes]);
format(string6, sizeof string6, "[Besitztum]");
format(string7, sizeof string7, "Premium Rang [%s] Spielzeit [%d] Lottonummer [%d] Wantedlevel [%d] Krankheit [%s] Gefangene Fische [%d] Kills & Deaths [%d / %d]", drank,ptime,lotto,wanted,dtext,fishes,kills,deaths);
format(string8, sizeof string8, "Bargeld [%d$] Bankkonto [%d$] Drogen [%d] Materialien [%d] Box Materialien [%d] Box Drogen [%d] Respektpunkte [%d / %d]", cash,account,drugs,mats,boxmats,boxdrugs,exp,expamount);
format(string9, sizeof string9, "[Fraktion und Job]");
format(string10, sizeof string10, "Team [%s] Organisation [%s] Rang [%s] Familie [%s] Job [%s] Gehalt/Payday: [%d$] Fraktionsmaterialien: [%d]", ttext,ftext,rtext,f2text,jtext,PlayerInfo[targetid][pGehalt], FrakMatsHolding[targetid]);
format(string11, sizeof string11, "[Zusatzinfos]");
format(string12, sizeof string12, "Hausschlüssel [%d] Geschäftsschlüssel [%d] Interior [%d] Gebäude [%d]", housekey,bizkey,intir,local);
format(string13, sizeof string13, "Zeit bis zum nächsten Flug [%d] (Job Pilot) Zeit bis zur nächsten Fahrt [%d] (Job Müllmann)", PlayerInfo[targetid][pFlugTime]/60, PlayerInfo[targetid][pMulltime]/60);
format(string14, sizeof string14, "Lebenspunkte [%.2f] Schutzweste [%.2f] IP [%s] Ping [%d] Verwarnungen [%d]", plHealth,plArmour,plIP,GetPlayerPing(targetid),PlayerInfo[targetid][pWarns]);
format(rest, sizeof rest, "%s\n\n\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n\n%s\n%s\n\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14);
ShowPlayerDialog(playerid,30,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Beenden","");
}
}
if ((gTeam[playerid]) == 1)
{
SetPlayerToTeamColor(playerid);
rand = random(sizeof(gMedPlayerSpawns));
SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
if(PlayerInfo[playerid][pGeworben] == 1))
{
SetPlayerPos(playerid,489.7321,-1506.2321,20.6240);
SetPlayerFacingAngle(playerid,358.8067);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pRollerLic] = 1;
PlayerInfo[playerid][pPhoneBook] = 1;
}
else
{
rand = random(sizeof(gRandomPlayerSpawns));
SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 180.0); //normal 270.0
SetPlayerInterior(playerid,3); //normal 15
PlayerInfo[playerid][pInt] = 3; //normal 15
}
return 1;
}
}
return 1;
}
enum pInfo
{
pKey[128],
pLevel,
pMoney,
pAdmin,
pSupporter,
pDonateRank,
gPupgrade,
pConnectTime,
pReg,
pSex,
pAge,
pGeworben,
pCK,
pMuted,
pExp,
pCash,
pAccount,
pPlayerKreditDauer,
pPlayerKredit,
pCrimes,
pKills,
pDeaths,
pArrested,
pWantedDeaths,
pPhoneBook,
pLottoNr,
pFishes,
pBiggestFish,
pJob,
pPayCheck,
pRest,
pHeadValue,
pJailed,
pJailTime,
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,
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,
pPtankekey,
pZollPass,
pZollPassTime,
pGesperrt,
};
PlayerInfo[playerid][pReg] = 0;
PlayerInfo[playerid][pSex] = 0;
PlayerInfo[playerid][pAge] = 0;
PlayerInfo[playerid][pGeworben] = 0;
if ((gTeam[playerid]) == 1)
{
SetPlayerToTeamColor(playerid);
rand = random(sizeof(gMedPlayerSpawns));
SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
if(PlayerInfo[playerid][pGeworben] == 1))
{
SetPlayerPos(playerid,489.7321,-1506.2321,20.6240);
SetPlayerFacingAngle(playerid,358.8067);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pRollerLic] = 1;
PlayerInfo[playerid][pPhoneBook] = 1;
}
else
{
rand = random(sizeof(gRandomPlayerSpawns));
SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 180.0); //normal 270.0
SetPlayerInterior(playerid,3); //normal 15
PlayerInfo[playerid][pInt] = 3; //normal 15
}
return 1;
}
}
return 1;
}
format(string2, sizeof string2, "[Allgemeines]");
format(string3, sizeof string3, "Level [%d] Geschlecht [%s] Alter [%d] Geworben [%s] Spawnenergie [%.1f] Verheiretet mit [%s] Telefonnummer [%d]", level,atext,age,geworben,shealth+50.0,married,pnumber);
format(string4, sizeof string4, "Größter Fisch [%d] Verbrechen [%d] Gefängniszeiten [%d] Kosten für nächstes Level [%d$] Spielminuten seit Login / insgesammt [%d / %d]", bigfish,crimes,arrests,costlevel,PlayerInfo[targetid][pMinutesSinceLogin],PlayerInfo[targetid][pGesamtMinutes]);
format(string5, sizeof string5, "Kreditraten verbleibend / Summe [%d / %d] Spielminuten bis Payday [%d]", PlayerInfo[targetid][pPlayerKreditDauer], PlayerInfo[targetid][pPlayerKredit], 60-PlayerInfo[targetid][pPlayMinutes]);
format(string6, sizeof string6, "[Besitztum]");
format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
format(var, 32, "Geworben=%d\n",PlayerInfo[playerid][pGeworben]);fwrite(hFile, var);
if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
if( strcmp( key , "Geworben" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGeworben] = strval( val ); }