Habe den Code jetzt überarbeitet.
Code
PUBLIC:PlayerUpdate(playerid)
{
new mainQuery[3046], secondQuery[3046];
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
format(secondQuery, sizeof(secondQuery), "UPDATE `users` SET `Level` = '%d', `AdminLevel` = '%d', `Checkpoint` = '%d', `CPrison` = '%d', `RunningCP` = '%d', `TeamRadar` = '%d', `BNDRadar` = '%d', `Rolex` = '%d', `Swissonic` = '%d', `Casio` = '%d', ",
PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pAdmin], CCP[playerid], xPrison[playerid], RunningCP[playerid],
TeamRadar[playerid], BNDRadar[playerid], PlayerInfo[playerid][pRolex], PlayerInfo[playerid][pSwissonic], PlayerInfo[playerid][pCasio]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`Breitling` = '%d', `Nixon` = '%d', `IceWatch` = '%d', `StartCoints` = '%d', `Coints` = '%d', `SpawnhealZeit` = '%d', `DeaglespawnZeit` = '%d', `DeaglespawnZeit` = '%d', `M4SpawnZeit` = '%d', `MP5SpawnZeit` = '%d', `MehrZinsenZeit` = '%d', ",
PlayerInfo[playerid][pBreitling], PlayerInfo[playerid][pNixon], PlayerInfo[playerid][pIceWatch], PlayerInfo[playerid][pStartCoints], PlayerInfo[playerid][pCoints],
PlayerInfo[playerid][pSpawnhealZeit], PlayerInfo[playerid][pDeaglespawnZeit], PlayerInfo[playerid][pM4SpawnZeit], PlayerInfo[playerid][pMP5SpawnZeit], PlayerInfo[playerid][pMehrZinsenZeit]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`Medickit` = '%d', `Startbonus` = '%d', `Kreditkarte` = '%d', `KreditkarteBenutzung` = '%d', `Personalausweis` = '%d', `Namechange` = '%d', `DonateRank` = '%d', `UpgradePoints` = '%d', `ConnectedTime` = '%d', `Registered` = '%d', ",
PlayerInfo[playerid][pMedickit], PlayerInfo[playerid][pStartbonus], PlayerInfo[playerid][pKreditkarte], PlayerInfo[playerid][pKreditkartebenutzen], PlayerInfo[playerid][pPersonalausweis],
PlayerInfo[playerid][pSchongeandert], PlayerInfo[playerid][pDonatorRank], PlayerInfo[playerid][gPupgrade], PlayerInfo[playerid][pConnectTime], PlayerInfo[playerid][pReg]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`Sex` = '%d', `Age` = '%d', `Origin` = '%d', `Muted` = '%d', `Respect` = '%d', `Gehalt` = '%d', `Money` = '%d', `Bank` = '%d', `Jobgeld` = '%d', `Crimes` = '%d', ",
PlayerInfo[playerid][pSex], PlayerInfo[playerid][pAlter], PlayerInfo[playerid][pOrigin], PlayerInfo[playerid][pMuted], PlayerInfo[playerid][pRespekt],
PlayerInfo[playerid][pGehalt], PlayerInfo[playerid][pCash], PlayerInfo[playerid][pBank], PlayerInfo[playerid][pJobLohn], PlayerInfo[playerid][pCrimes]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`Kills` = '%d', `sKills` = '%d', `Deaths` = '%d', `Arrested` = '%d', `ArrestTime` = '%d', `PhoneBook` = '%d', `LottoNr` = '%d', `Fishes` = '%d', `BiggestFish` = '%d', `Job` = '%d', ",
PlayerInfo[playerid][pKills], PlayerInfo[playerid][psKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pArrested], PlayerInfo[playerid][pArrestTime],
PlayerInfo[playerid][pPhoneBook], PlayerInfo[playerid][pLottoNr], PlayerInfo[playerid][pFishes], PlayerInfo[playerid][pBiggestFish], PlayerInfo[playerid][pJob]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`HeadValue` = '%d', `Jailed` = '%d', `JailTime` = '%d', `Leader` = '%d', `Member` = '%d', `Rank` = '%d', `Skin` = '%d', `Vertragszeit` = '%d', ",
PlayerInfo[playerid][pHeadValue], PlayerInfo[playerid][pJailed], PlayerInfo[playerid][pJailTime], PlayerInfo[playerid][pLeader], PlayerInfo[playerid][pMember],
PlayerInfo[playerid][pRank], PlayerInfo[playerid][pChar], PlayerInfo[playerid][pVertragszeit]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`NewsSkill` = '%d', `House` = '%d', `Mieten` = '%d', `HealPaket` = '%d', `ArmourPaket` = '%d', `WaffenPaket` = '%d', `OverHealPaket` = '%d', `FishSkill` = '%d', `MechSkill` = '%d', `pSHealth` = '%.1f' WHERE `Name`='%s' ",
PlayerInfo[playerid][pNewsSkill], PlayerInfo[playerid][pHaus], PlayerInfo[playerid][pMieten], PlayerInfo[playerid][pHealPaket], PlayerInfo[playerid][pArmourPaket],
PlayerInfo[playerid][pWaffenPaket], PlayerInfo[playerid][pOverHealPaket], PlayerInfo[playerid][pFishSkill], PlayerInfo[playerid][pMechSkill], PlayerInfo[playerid][pSHealth], SpielerName(playerid));
strcat(mainQuery, secondQuery);
mysql_pquery(handle, mainQuery, "", "");
print(mainQuery);
strdel(mainQuery, 0, sizeof(mainQuery));
strdel(secondQuery, 0, sizeof(secondQuery));
format(secondQuery, sizeof(secondQuery), "UPDATE `users` SET `PhoneNr` = '%d', `Hotel` = '%d', `Biz` = '%d', `CarLic` = '%d', `FlyLic` = '%d', `BoatLic` = '%d', `FishLic` = '%d', `GunLic` = '%d', `Zollpass` = '%d', ",
PlayerInfo[playerid][pNummer], PlayerInfo[playerid][pPhotelkey], PlayerInfo[playerid][pBizKey], PlayerInfo[playerid][pCarLic], PlayerInfo[playerid][pFlyLic],
PlayerInfo[playerid][pBoatLic], PlayerInfo[playerid][pFishLic], PlayerInfo[playerid][pGunLic], PlayerInfo[playerid][pZollpass]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`Gun1` = '%d', `Gun2` = '%d', `Gun3` = '%d', `Gun4` = '%d', `Ammo1` = '%d', `Ammo2` = '%d', `Ammo3` = '%d', `Ammo4` = '%d', `CarTime` = '%d', `PayDay` = '%d', ",
PlayerInfo[playerid][pGun1], PlayerInfo[playerid][pGun2], PlayerInfo[playerid][pGun3], PlayerInfo[playerid][pGun4], PlayerInfo[playerid][pAmmo1],
PlayerInfo[playerid][pAmmo2], PlayerInfo[playerid][pAmmo3], PlayerInfo[playerid][pAmmo4], PlayerInfo[playerid][pCarTime], PlayerInfo[playerid][pPayDay]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`PayDayHad` = '%d', `CDPlayer` = '%d',`AlcoholPerk` = '%d', `PainKillerPerk` = '%d', `PistolSkill` = '%d', `MaschinePistolSkill` = '%d', `SturmgewehrPistolSkill` = '%d', `ShotGunSkill` = '%d', `DrugPerk` = '%d', `MiserPerk` = '%d', ",
PlayerInfo[playerid][pPayDayHad], PlayerInfo[playerid][pCDPlayer], PlayerInfo[playerid][pAlcoholPerk], PlayerInfo[playerid][pPainKillerPerk], PlayerInfo[playerid][pPistolSkill],
PlayerInfo[playerid][pMaschinePistolSkill], PlayerInfo[playerid][pSturmgewehrPistolSkill], PlayerInfo[playerid][pShotGunSkill], PlayerInfo[playerid][pDrugPerk], PlayerInfo[playerid][pMiserPerk]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`TraderPerk` = '%d', `Tutorial` = '%d', `Cptut` = '%d', `kh` = '%d', `Warnings` = '%d', ",
PlayerInfo[playerid][pTraderPerk], PlayerInfo[playerid][pTut], PlayerInfo[playerid][pCPTUT], PlayerInfo[playerid][pKHTIME], PlayerInfo[playerid][pWarns]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`Fuel` = '%d', `Married` = '%d', `MarriedTo` = '%d', `WantedLevel` = '%d', `Spawn` = '%d', `SavedMaterials` = '%d', `SavedDrugs` = '%d', `BikeLic` = '%d', `LKWLic` = '%d', `DonatorTime` = '%d', ",
PlayerInfo[playerid][pFuel], PlayerInfo[playerid][pMarried], PlayerInfo[playerid][pMarriedTo], PlayerInfo[playerid][pWantedLevel], PlayerInfo[playerid][pSpawn],
PlayerInfo[playerid][pSaveMats], PlayerInfo[playerid][pSaveDrugs], PlayerInfo[playerid][pBikeLic], PlayerInfo[playerid][pLKWLic], PlayerInfo[playerid][pDonatorZeit]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`WerberName` = '%d', `FightingStyle` = '%d', `Handy` = '%d', ",
PlayerInfo[playerid][pWerberName], PlayerInfo[playerid][pFightingStyle], PlayerInfo[playerid][pHandy]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`OnDutySkin` = '%d', `CarLicPoints` = '%d', `BikeLicPoints` = '%d', `InviteSperre` = '%d', `warntime1` = '%d', `warntime2` = '%d', `Ticketsopen` = '%d', `OldName` = '%s', `ClientIP` = '%d', `OrgMember` = '%d',",
PlayerInfo[playerid][pOnDutySkin], PlayerInfo[playerid][pCarLicPoints], PlayerInfo[playerid][pBikeLicPoints], PlayerInfo[playerid][pInviteSperre], PlayerInfo[playerid][pWarnTime1],
PlayerInfo[playerid][pWarnTime2], PlayerInfo[playerid][pTicketsopen], PlayerInfo[playerid][pOldName], PlayerInfo[playerid][pUserIP], PlayerInfo[playerid][pOrgaID]);
strcat(mainQuery, secondQuery);
format(secondQuery, sizeof(secondQuery), "`OrgLeader` = '%d', `OrgManager` = '%d', `OrgName` = '%s' WHERE `Name`='%s' ",
PlayerInfo[playerid][pOrgaLeader], PlayerInfo[playerid][pOrgaManager], PlayerInfo[playerid][pOrgaName], SpielerName(playerid));
strcat(mainQuery, secondQuery);
mysql_pquery(handle, mainQuery, "", "");
print(mainQuery);
strdel(mainQuery, 0, sizeof(mainQuery));
strdel(secondQuery, 0, sizeof(secondQuery));
}
return 1;
}
Alles anzeigen
Code
[19:09:21] UPDATE `users` SET `Level` = '1', `AdminLevel` = '0', `Checkpoint` = '0', `CPrison` = '0', `RunningCP` = '0', `TeamRadar` = '0', `BNDRadar` = '0', `Rolex` = '0', `Swissonic` = '0', `Casio` = '0', `Breitling` = '0', `Nixon` = '0', `IceWatch` = '0', `StartCoints` = '0', `Coints` = '0', `SpawnhealZeit` = '0', `DeaglespawnZeit` = '0', `DeaglespawnZeit` = '0', `M4SpawnZeit` = '0', `MP5SpawnZeit` = '0', `MehrZinsenZeit` = '', `Medickit` = '0', `Startbonus` = '0', `Kreditkarte` = '0', `KreditkarteBenutzung` = '0', `Personalausweis` = '0', `Namechange` = '0', `DonateRank` = '0', `UpgradePoints` = '0', `ConnectedTime` = '0', `Registered` = '1', `Sex` = '0', `Age` = '0', `Origin` = '0', `Muted` = '0', `Respect` = '0', `Gehalt` = '0', `Money` = '5000', `Bank` = '0', `Jobgeld` = '0', `Crimes` = '0', `Kills` = '0', `sKills` = '0', `Deaths` = '0', `Arrested` = '0', `ArrestTime` = '0', `PhoneBook` = '0', `LottoNr` = '0', `Fishes` = '0', `BiggestFish` = '0', `Job` = '0', `HeadValue` = '0', `Jailed` = '0', `JailTime` = '0', `Leader` = '-1', `Member` = '-1', `Rank` = '0', `Skin` = '26', `Vertragszeit` = '5', `NewsSkill` = '0', `House` = '0', `Mieten` = '0', `HealPaket` = '0', `ArmourPaket` = '0', `WaffenPaket` = '0', `OverHealPaket` = '0', `FishSkill` = '0', `MechSkill` = '0', `pSHealth` = '50.0' WHERE `Name`='James.Gordon'
[19:09:21] UPDATE `users` SET `PhoneNr` = '1', `Hotel` = '-1', `Biz` = '-1', `CarLic` = '0', `FlyLic` = '0', `BoatLic` = '0', `FishLic` = '0', `GunLic` = '0', `Zollpass` = '0', `Gun1` = '0', `Gun2` = '0', `Gun3` = '0', `Gun4` = '0', `Ammo1` = '0', `Ammo2` = '0', `Ammo3` = '0', `Ammo4` = '0', `CarTime` = '0', `PayDay` = '0', `PayDayHad` = '0', `CDPlayer` = '0',`AlcoholPerk` = '0', `PainKillerPerk` = '0', `PistolSkill` = '2', `MaschinePistolSkill` = '2', `SturmgewehrPistolSkill` = '2', `ShotGunSkill` = '1', `DrugPerk` = '0', `MiserPerk` = '0', `TraderPerk` = '0', `Tutorial` = '0', `Cptut` = '0', `kh` = '0', `Warnings` = '0', `Fuel` = '0', `Married` = '0', `MarriedTo` = '78', `WantedLevel` = '0', `Spawn` = '0', `SavedMaterials` = '0', `SavedDrugs` = '0', `BikeLic` = '0', `LKWLic` = '0', `DonatorTime` = '0', `WerberName` = '78', `FightingStyle` = '0', `Handy` = '0', `OnDutySkin` = '60', `CarLicPoints` = '0', `BikeLicPoints` = '0', `InviteSperre` = '0', `warntime1` = '0', `warntime2` = '0', `Ticketsopen` = '0', `OldName` = 'Niemand', `ClientIP` = '49', `OrgMember` = '-1',`OrgLeader` = '-1', `OrgManager` = '-1', `OrgName` = 'Keine' WHERE `Name`='James.Gordon'
Laut log macht er es so rein aber mir wird überall 0 Angezeigt. (In der Datenbank)
Mysql Log:
Code
[19:08:58] [WARNING] mysql_connect: no password specified
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:58] [ERROR] cache_get_row_count: no active cache
[19:08:59] [ERROR] cache_get_row_count: no active cache
[19:08:59] [ERROR] cache_get_row_count: no active cache
[19:09:00] [ERROR] cache_get_row_count: no active cache
[19:09:00] [ERROR] cache_get_row_count: no active cache
[19:09:00] [ERROR] cache_get_row_count: no active cache
[19:09:00] [ERROR] cache_get_row_count: no active cache
[19:09:00] [ERROR] cache_get_row_count: no active cache
[19:09:00] [ERROR] cache_get_row_count: no active cache
[19:09:12] [ERROR] cache_get_row_count: no active cache
[19:09:15] [ERROR] cache_get_row_count: no active cache
[19:09:21] [ERROR] cache_insert_id: no active cache
[19:09:22] [ERROR] error #1054 while executing query "UPDATE `users` SET `Level` = '1', `AdminLevel` = '0', `Checkpoint` = '0', `CPrison` = '0', `RunningCP` = '0', `TeamRadar` = '0', `BNDRadar` = '0', `Rolex` = '0', `Swissonic` = '0', `Casio` = '0', `Breitling` = '0', `Nixon` = '0', `IceWatch` = '0', `StartCoints` = '0', `Coints` = '0', `SpawnhealZeit` = '0', `DeaglespawnZeit` = '0', `DeaglespawnZeit` = '0', `M4SpawnZeit` = '0', `MP5SpawnZeit` = '0', `MehrZinsenZeit` = '', `Medickit` = '0', `Startbonus` = '0', `Kreditkarte` = '0', `KreditkarteBenutzung` = '0', `Personalausweis` = '0', `Namechange` = '0', `DonateRank` = '0', `UpgradePoints` = '0', `ConnectedTime` = '0', `Registered` = '1', `Sex` = '0', `Age` = '0', `Origin` = '0', `Muted` = '0', `Respect` = '0', `Gehalt` = '0', `Money` = '5000', `Bank` = '0', `Jobgeld` = '0', `Crimes` = '0', `Kills` = '0', `sKills` = '0', `Deaths` = '0', `Arrested` = '0', `ArrestTime` = '0', `PhoneBook` = '0', `LottoNr` = '0', `Fishes` = '0', `BiggestFish` = '0', `Job` = '0', `HeadValue` = '0', `Jailed` = '0', `JailTime` = '0', `Leader` = '-1', `Member` = '-1', `Rank` = '0', `Skin` = '26', `Vertragszeit` = '5', `NewsSkill` = '0', `House` = '0', `Mieten` = '0', `HealPaket` = '0', `ArmourPaket` = '0', `WaffenPaket` = '0', `OverHealPaket` = '0', `FishSkill` = '0', `MechSkill` = '0', `pSHealth` = '50.0' WHERE `Name`='James.Gordon' ": Unknown column 'DeaglespawnZeit' in 'field list'
[19:09:25] [ERROR] mysql_format: no value for specifier '%s' passed
[19:09:25] [ERROR] cache_get_row_count: no active cache
[19:09:25] [ERROR] cache_get_row_count: no active cache
[19:09:25] [ERROR] error #1065 while executing query "": Query was empty
[19:11:04] [ERROR] cache_get_row_count: no active cache
[19:11:07] [ERROR] cache_get_row_count: no active cache
Alles anzeigen