I found the problem, need your help now... -
Necip - 27.06.2013
After like 2 weeks of trying to find the problem, I found it.My biz system is good, but SaveBizz() is messed up so it shows "Unknown Command".I need your help to fix it

Here is SaveBizz()
pawn Код:
SaveBizz() {
new
szFileStr[1024],
File: fHandle = fopen("businesses.cfg", io_write);
for(new iIndex; iIndex < MAX_HOUSES; iIndex++) {
format(szFileStr, sizeof(szFileStr), "%d|%s|%s|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f|%f|%f|%f%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|\r\n",
BizzInfo[iIndex][bOwned],
BizzInfo[iIndex][bOwner],
BizzInfo[iIndex][bMessage],
BizzInfo[iIndex][bPickupID],
BizzInfo[iIndex][bVirWorld],
BizzInfo[iIndex][bLevelNeeded],
BizzInfo[iIndex][bBuyPrice],
BizzInfo[iIndex][bEntranceCost],
BizzInfo[iIndex][bTill],
BizzInfo[iIndex][bLocked],
BizzInfo[iIndex][bProducts],
BizzInfo[iIndex][bPriceProd],
BizzInfo[iIndex][bDelivProd],
BizzInfo[iIndex][bPercent],
BizzInfo[iIndex][bType],
BizzInfo[iIndex][bInteriorID],
BizzInfo[iIndex][bExteriorID],
BizzInfo[iIndex][bExitX],
BizzInfo[iIndex][bExitY],
BizzInfo[iIndex][bExitZ],
BizzInfo[iIndex][bEntranceX],
BizzInfo[iIndex][bEntranceY],
BizzInfo[iIndex][bEntranceZ],
BizzInfo[iIndex][bProductPrice1],
BizzInfo[iIndex][bProductPrice2],
BizzInfo[iIndex][bProductPrice3],
BizzInfo[iIndex][bProductPrice4],
BizzInfo[iIndex][bProductPrice5],
BizzInfo[iIndex][bProductPrice6],
BizzInfo[iIndex][bProductPrice7],
BizzInfo[iIndex][bProductPrice8],
BizzInfo[iIndex][bProductPrice9],
BizzInfo[iIndex][bProductPrice10],
BizzInfo[iIndex][bProductPrice11],
BizzInfo[iIndex][bProductPrice12],
BizzInfo[iIndex][bProductPrice13],
BizzInfo[iIndex][bProductPrice14],
BizzInfo[iIndex][bProductPrice15],
BizzInfo[iIndex][bProductPrice16],
BizzInfo[iIndex][bProductPrice17],
BizzInfo[iIndex][bProductPrice18],
BizzInfo[iIndex][bProductPrice19],
BizzInfo[iIndex][bProductPrice20]
);
fwrite(fHandle, szFileStr);
}
return fclose(fHandle);
}
My server is growing really fast, if you help me I can make you an admin.Also +REP will be given
Re: I found the problem, need your help now... -
Kittylol - 27.06.2013
If you want save it with command,write
becouse if it shows unknown command,that means it need a command,but you didn't made it.
If you have dialog,then you need to change dialogid,becouse somedialogs can conflict and disable some commands or make them to not work.If i didn't helped,sorry,i am not pro scripter,i just want to help with same problems what i had.And i had problem like your.
Re: I found the problem, need your help now... -
Necip - 27.06.2013
I didn't want that, I fixed it.The problem was a missing "|" and instead of MAX_BUSINESSES I ded MAX_HOUSES, problem solved.
- Close request