The full code is going to be a bit of a problem (80000+ lines).
pawn Код:
...
new query[10000];
format(query, sizeof(query), "UPDATE `users` SET \
`Key` = '%s', \
`Level` = %d, \
`Spawn` = %d, \
`TesterLevel` = %d, \
`HelperLevel` = %d, \
`AdminLevel` = %d, \
`RegularRank` = %d, \
`UpgradePoints` = %d, \
`ConnectedTime` = %d, \
`Registered` = %d, \
`Sex` = %d, \
`Age` = %d, \
`GPS` = %d, \
`Origin` = %d, \
`CK` = %d, \
`Muted` = %d, \
`Frozen` = %d, \
`Blind` = %d, \
`Respect` = %d, \
`Money` = %d, \
`Bank` = %d, \
`Crimes` = %d, \
`CrimeReason` = '%s', \
`Wanted` = %d, \
`WantedLevel` = %d,",
newpass,
PlayerInfo[playerid][pLevel],
PlayerInfo[playerid][pSpawn],
PlayerInfo[playerid][pTester],
PlayerInfo[playerid][pHelper],
PlayerInfo[playerid][pAdmin],
PlayerInfo[playerid][pRegularRank],
PlayerInfo[playerid][gPupgrade],
PlayerInfo[playerid][pConnectSeconds],
PlayerInfo[playerid][pReg],
PlayerInfo[playerid][pSex],
PlayerInfo[playerid][pAge],
PlayerInfo[playerid][pGPS],
PlayerInfo[playerid][pOrigin],
PlayerInfo[playerid][pCK],
PlayerInfo[playerid][pMuted],
PlayerInfo[playerid][pFrozen],
PlayerInfo[playerid][pBlind],
PlayerInfo[playerid][pExp],
PlayerInfo[playerid][pCash],
PlayerInfo[playerid][pAccount],
PlayerInfo[playerid][pCrimes],
crimereason,
PlayerInfo[playerid][pWanted],
PlayerInfo[playerid][pWantedLevel]);
format(query, sizeof(query), "%s \
`Kills` = %d, \
`Deaths` = %d, \
`WhyLeft` = '%s', \
`Arrested` = %d, \
`WantedDeaths` = %d, \
`Phonebook` = %d, \
`LottoNr` = %d, \
`Fishes` = %d, \
`BiggestFish` = %d, \
`Job` = %d, \
`Paycheck` = %d, \
`HeadValue` = %d, \
`Jailed` = %d, \
`JailTime` = %d, \
`CanRobTime` = %d, \
`Materials` = %d, \
`Drugs` = %d, \
`Leader` = %d, \
`Member` = %d, \
`FMember` = %d, \
`Rank` = %d, \
`Char` = %d, \
`ContractTime` = %d, \
`DetSkill` = %d, \
`SexSkill` = %d, \
`BoxSkill` = %d,",
query,
PlayerInfo[playerid][pKills],
PlayerInfo[playerid][pDeaths],
whyleft,
PlayerInfo[playerid][pArrested],
PlayerInfo[playerid][pWantedDeaths],
PlayerInfo[playerid][pPhoneBook],
PlayerInfo[playerid][pLottoNr],
PlayerInfo[playerid][pFishes],
PlayerInfo[playerid][pBiggestFish],
PlayerInfo[playerid][pJob],
PlayerInfo[playerid][pPayCheck],
PlayerInfo[playerid][pHeadValue],
PlayerInfo[playerid][pJailed],
PlayerInfo[playerid][pJailTime],
PlayerInfo[playerid][pRobTime],
PlayerInfo[playerid][pMats],
PlayerInfo[playerid][pDrugs],
PlayerInfo[playerid][pLeader],
PlayerInfo[playerid][pMember],
PlayerInfo[playerid][pFMember],
PlayerInfo[playerid][pRank],
PlayerInfo[playerid][pChar],
PlayerInfo[playerid][pContractTime],
PlayerInfo[playerid][pDetSkill],
PlayerInfo[playerid][pSexSkill],
PlayerInfo[playerid][pBoxSkill]);
format(query, sizeof(query), "%s \
`LawSkill` = %d, \
`MechSkill` = %d, \
...
And so on
I've even tried to split the whole query into 10 smaller query's (and thus having having to execute 10 different mysql_query's, which is everything but ideal, and even that resulted in unexpected behaviour. (A command not found error).
I think the reason why I get this command not found error is because the script produces an error when it tries to set and execute the query, which results in a disturbance in the whole command system. (Not sure about this though).