SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 25/10/2013, 01:17 PM   #1
nguyenquynh
Banned
 
Join Date: Sep 2012
Posts: 94
Reputation: 0
Default Help error +1 REP!

Code:
D:\LS-RP\gamemodes\LS-RP.pwn(23900 -- 24018) : fatal error 102: table overflow: "staging buffer"

Code:
SaveBusiness()
{
	new
		szFileStr[1024],
		File: fHandle = fopen("business.cfg", io_write); 

	for(new iIndex; iIndex < MAX_BUSINESS; iIndex++) {
  	 		format(szFileStr, sizeof(szFileStr), "%d|%s|%s|%f|%f|%f|%f|%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|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f\r\n",
  	 		BusinessInfo[iIndex][bOwned],
			BusinessInfo[iIndex][bOwner],
			BusinessInfo[iIndex][bMessage],
			BusinessInfo[iIndex][bExteriorX],
			BusinessInfo[iIndex][bExteriorY],
			BusinessInfo[iIndex][bExteriorZ],
			BusinessInfo[iIndex][bExteriorR],
			BusinessInfo[iIndex][bExteriorA],
			BusinessInfo[iIndex][bInteriorX],
			BusinessInfo[iIndex][bInteriorY],
			BusinessInfo[iIndex][bInteriorZ],
			BusinessInfo[iIndex][bInteriorR],
			BusinessInfo[iIndex][bInteriorA],
			BusinessInfo[iIndex][bLock],
			BusinessInfo[iIndex][bType],
			BusinessInfo[iIndex][bValue],
			BusinessInfo[iIndex][bSafeMoney],
			BusinessInfo[iIndex][bPot],
			BusinessInfo[iIndex][bCrack],
			BusinessInfo[iIndex][bMaterials],
			BusinessInfo[iIndex][bPickupID],
			BusinessInfo[iIndex][bCustomInterior],
			BusinessInfo[iIndex][bCustomExterior],
			BusinessInfo[iIndex][bInt],
			BusinessInfo[iIndex][bProductPrice1],
            BusinessInfo[iIndex][bProductPrice2],
            BusinessInfo[iIndex][bProductPrice3],
            BusinessInfo[iIndex][bProductPrice4],
            BusinessInfo[iIndex][bProductPrice5],
            BusinessInfo[iIndex][bProductPrice6],
            BusinessInfo[iIndex][bProductPrice7],
            BusinessInfo[iIndex][bProductPrice8],
            BusinessInfo[iIndex][bProductPrice9],
            BusinessInfo[iIndex][bProductPrice10],
            BusinessInfo[iIndex][bProductPrice11],
            BusinessInfo[iIndex][bProductPrice12],
            BusinessInfo[iIndex][bProductPrice13],
            BusinessInfo[iIndex][bProductPrice14],
            BusinessInfo[iIndex][bProductPrice15],
            BusinessInfo[iIndex][bProductPrice16],
            BusinessInfo[iIndex][bProductPrice17],
            BusinessInfo[iIndex][bProductPrice18],
            BusinessInfo[iIndex][bProductPrice19],
            BusinessInfo[iIndex][bProductPrice20],
            BusinessInfo[iIndex][bProductPrice21],
            BusinessInfo[iIndex][bProductPrice22],
            BusinessInfo[iIndex][bProductPrice23],
            BusinessInfo[iIndex][bProductPrice24],
            BusinessInfo[iIndex][bProductPrice25],
            BusinessInfo[iIndex][bProductPrice26],
            BusinessInfo[iIndex][bProductPrice27],
            BusinessInfo[iIndex][bProductPrice28],
            BusinessInfo[iIndex][bProductPrice29],
            BusinessInfo[iIndex][bProductPrice30],
            BusinessInfo[iIndex][bProductPrice31],
            BusinessInfo[iIndex][bProductPrice32],
            BusinessInfo[iIndex][bProductPrice33],
            BusinessInfo[iIndex][bProductPrice34],
            BusinessInfo[iIndex][bProductPrice35],
            BusinessInfo[iIndex][bProductPrice36],
            BusinessInfo[iIndex][bProductPrice37],
            BusinessInfo[iIndex][bProductPrice38],
            BusinessInfo[iIndex][bProductPrice39],
            BusinessInfo[iIndex][bProductPrice40],
            BusinessInfo[iIndex][bProductPrice41],
            BusinessInfo[iIndex][bProductPrice42],
            BusinessInfo[iIndex][bProductPrice43],
            BusinessInfo[iIndex][bProductPrice44],
            BusinessInfo[iIndex][bProductPrice45],
            BusinessInfo[iIndex][bProductPrice46],
            BusinessInfo[iIndex][bProductPrice47],
            BusinessInfo[iIndex][bProductPrice48],
            BusinessInfo[iIndex][bProductPrice49],
            BusinessInfo[iIndex][bProductPrice50],
			BusinessInfo[iIndex][bProducts1],
			BusinessInfo[iIndex][bProducts2],
            BusinessInfo[iIndex][bProducts3],
            BusinessInfo[iIndex][bProducts4],
            BusinessInfo[iIndex][bProducts5],
            BusinessInfo[iIndex][bProducts6],
            BusinessInfo[iIndex][bProducts7],
            BusinessInfo[iIndex][bProducts8],
            BusinessInfo[iIndex][bProducts9],
            BusinessInfo[iIndex][bProducts10],
            BusinessInfo[iIndex][bProducts11],
            BusinessInfo[iIndex][bProducts12],
            BusinessInfo[iIndex][bProducts13],
            BusinessInfo[iIndex][bProducts14],
            BusinessInfo[iIndex][bProducts15],
            BusinessInfo[iIndex][bProducts16],
            BusinessInfo[iIndex][bProducts17],
            BusinessInfo[iIndex][bProducts18],
            BusinessInfo[iIndex][bProducts19],
            BusinessInfo[iIndex][bProducts20],
            BusinessInfo[iIndex][bProducts21],
            BusinessInfo[iIndex][bProducts22],
            BusinessInfo[iIndex][bProducts23],
            BusinessInfo[iIndex][bProducts24],
            BusinessInfo[iIndex][bProducts25],
            BusinessInfo[iIndex][bProducts26],
            BusinessInfo[iIndex][bProducts27],
            BusinessInfo[iIndex][bProducts28],
            BusinessInfo[iIndex][bProducts29],
            BusinessInfo[iIndex][bProducts30],
            BusinessInfo[iIndex][bProducts31],
            BusinessInfo[iIndex][bProducts32],
            BusinessInfo[iIndex][bProducts33],
            BusinessInfo[iIndex][bProducts34],
            BusinessInfo[iIndex][bProducts35],
            BusinessInfo[iIndex][bProducts36],
            BusinessInfo[iIndex][bProducts37],
            BusinessInfo[iIndex][bProducts38],
            BusinessInfo[iIndex][bProducts39],
            BusinessInfo[iIndex][bProducts40],
            BusinessInfo[iIndex][bProducts41],
            BusinessInfo[iIndex][bProducts42],
            BusinessInfo[iIndex][bProducts43],
            BusinessInfo[iIndex][bProducts44],
            BusinessInfo[iIndex][bProducts45],
            BusinessInfo[iIndex][bProducts46],
            BusinessInfo[iIndex][bProducts47],
            BusinessInfo[iIndex][bProducts48],
            BusinessInfo[iIndex][bProducts49],
            BusinessInfo[iIndex][bProducts50],
            BusinessInfo[iIndex][pExteriorX],
            BusinessInfo[iIndex][pExteriorY],
            BusinessInfo[iIndex][pExteriorZ]
		);
		fwrite(fHandle, szFileStr);
	}
	return fclose(fHandle);
}
nguyenquynh is offline   Reply With Quote
Old 25/10/2013, 01:32 PM   #2
PCPold
Little Clucker
 
Join Date: Oct 2013
Location: In the middle of nowhere.
Posts: 7
Reputation: 0
Default Re: Help error +1 REP!

Please see other similar threads before posting a new one.
http://forum.sa-mp.com/showthread.php?t=385244
http://forum.sa-mp.com/showthread.php?t=183776
http://forum.sa-mp.com/showthread.php?t=135431
PCPold is offline   Reply With Quote
Old 25/10/2013, 01:32 PM   #3
Akira297
Banned
 
Join Date: Jul 2012
Posts: 1,274
Reputation: 183
Default Re: Help error +1 REP!

You gotta make sure everything is lined up perfectly with each other.
Akira297 is offline   Reply With Quote
Old 25/10/2013, 01:35 PM   #4
nguyenquynh
Banned
 
Join Date: Sep 2012
Posts: 94
Reputation: 0
Default Re: Help error +1 REP!

how to fixed
nguyenquynh is offline   Reply With Quote
Old 25/10/2013, 01:37 PM   #5
Patrick
Guest
 
Posts: n/a
Default Re: Help error +1 REP!

I bet you're using a Leaked LS-RP script, but oh-well, I just edited some bits on your code, try this code if it does work

pawn Code:
SaveBusiness()
{
    if(!fexist("business.cfg")) fcreate("business.cfg");
    new
        szFileStr[1024],
        File: fHandle,
        iIndex = 1
     ;
    while(iIndex < MAX_BIZ)
    {
            format(szFileStr, sizeof(szFileStr), "%d|%s|%s|%f|%f|%f|%f|%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|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|\
            %d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|\
            %d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f\r\n"
,
            BusinessInfo[iIndex][bOwned],
            BusinessInfo[iIndex][bOwner],
            BusinessInfo[iIndex][bMessage],
            BusinessInfo[iIndex][bExteriorX],
            BusinessInfo[iIndex][bExteriorY],
            BusinessInfo[iIndex][bExteriorZ],
            BusinessInfo[iIndex][bExteriorR],
            BusinessInfo[iIndex][bExteriorA],
            BusinessInfo[iIndex][bInteriorX],
            BusinessInfo[iIndex][bInteriorY],
            BusinessInfo[iIndex][bInteriorZ],
            BusinessInfo[iIndex][bInteriorR],
            BusinessInfo[iIndex][bInteriorA],
            BusinessInfo[iIndex][bLock],
            BusinessInfo[iIndex][bType],
            BusinessInfo[iIndex][bValue],
            BusinessInfo[iIndex][bSafeMoney],
            BusinessInfo[iIndex][bPot],
            BusinessInfo[iIndex][bCrack],
            BusinessInfo[iIndex][bMaterials],
            BusinessInfo[iIndex][bPickupID],
            BusinessInfo[iIndex][bCustomInterior],
            BusinessInfo[iIndex][bCustomExterior],
            BusinessInfo[iIndex][bInt],
            BusinessInfo[iIndex][bProductPrice1],
            BusinessInfo[iIndex][bProductPrice2],
            BusinessInfo[iIndex][bProductPrice3],
            BusinessInfo[iIndex][bProductPrice4],
            BusinessInfo[iIndex][bProductPrice5],
            BusinessInfo[iIndex][bProductPrice6],
            BusinessInfo[iIndex][bProductPrice7],
            BusinessInfo[iIndex][bProductPrice8],
            BusinessInfo[iIndex][bProductPrice9],
            BusinessInfo[iIndex][bProductPrice10],
            BusinessInfo[iIndex][bProductPrice11],
            BusinessInfo[iIndex][bProductPrice12],
            BusinessInfo[iIndex][bProductPrice13],
            BusinessInfo[iIndex][bProductPrice14],
            BusinessInfo[iIndex][bProductPrice15],
            BusinessInfo[iIndex][bProductPrice16],
            BusinessInfo[iIndex][bProductPrice17],
            BusinessInfo[iIndex][bProductPrice18],
            BusinessInfo[iIndex][bProductPrice19],
            BusinessInfo[iIndex][bProductPrice20],
            BusinessInfo[iIndex][bProductPrice21],
            BusinessInfo[iIndex][bProductPrice22],
            BusinessInfo[iIndex][bProductPrice23],
            BusinessInfo[iIndex][bProductPrice24],
            BusinessInfo[iIndex][bProductPrice25],
            BusinessInfo[iIndex][bProductPrice26],
            BusinessInfo[iIndex][bProductPrice27],
            BusinessInfo[iIndex][bProductPrice28],
            BusinessInfo[iIndex][bProductPrice29],
            BusinessInfo[iIndex][bProductPrice30],
            BusinessInfo[iIndex][bProductPrice31],
            BusinessInfo[iIndex][bProductPrice32],
            BusinessInfo[iIndex][bProductPrice33],
            BusinessInfo[iIndex][bProductPrice34],
            BusinessInfo[iIndex][bProductPrice35],
            BusinessInfo[iIndex][bProductPrice36],
            BusinessInfo[iIndex][bProductPrice37],
            BusinessInfo[iIndex][bProductPrice38],
            BusinessInfo[iIndex][bProductPrice39],
            BusinessInfo[iIndex][bProductPrice40],
            BusinessInfo[iIndex][bProductPrice41],
            BusinessInfo[iIndex][bProductPrice42],
            BusinessInfo[iIndex][bProductPrice43],
            BusinessInfo[iIndex][bProductPrice44],
            BusinessInfo[iIndex][bProductPrice45],
            BusinessInfo[iIndex][bProductPrice46],
            BusinessInfo[iIndex][bProductPrice47],
            BusinessInfo[iIndex][bProductPrice48],
            BusinessInfo[iIndex][bProductPrice49],
            BusinessInfo[iIndex][bProductPrice50],
            BusinessInfo[iIndex][bProducts1],
            BusinessInfo[iIndex][bProducts2],
            BusinessInfo[iIndex][bProducts3],
            BusinessInfo[iIndex][bProducts4],
            BusinessInfo[iIndex][bProducts5],
            BusinessInfo[iIndex][bProducts6],
            BusinessInfo[iIndex][bProducts7],
            BusinessInfo[iIndex][bProducts8],
            BusinessInfo[iIndex][bProducts9],
            BusinessInfo[iIndex][bProducts10],
            BusinessInfo[iIndex][bProducts11],
            BusinessInfo[iIndex][bProducts12],
            BusinessInfo[iIndex][bProducts13],
            BusinessInfo[iIndex][bProducts14],
            BusinessInfo[iIndex][bProducts15],
            BusinessInfo[iIndex][bProducts16],
            BusinessInfo[iIndex][bProducts17],
            BusinessInfo[iIndex][bProducts18],
            BusinessInfo[iIndex][bProducts19],
            BusinessInfo[iIndex][bProducts20],
            BusinessInfo[iIndex][bProducts21],
            BusinessInfo[iIndex][bProducts22],
            BusinessInfo[iIndex][bProducts23],
            BusinessInfo[iIndex][bProducts24],
            BusinessInfo[iIndex][bProducts25],
            BusinessInfo[iIndex][bProducts26],
            BusinessInfo[iIndex][bProducts27],
            BusinessInfo[iIndex][bProducts28],
            BusinessInfo[iIndex][bProducts29],
            BusinessInfo[iIndex][bProducts30],
            BusinessInfo[iIndex][bProducts31],
            BusinessInfo[iIndex][bProducts32],
            BusinessInfo[iIndex][bProducts33],
            BusinessInfo[iIndex][bProducts34],
            BusinessInfo[iIndex][bProducts35],
            BusinessInfo[iIndex][bProducts36],
            BusinessInfo[iIndex][bProducts37],
            BusinessInfo[iIndex][bProducts38],
            BusinessInfo[iIndex][bProducts39],
            BusinessInfo[iIndex][bProducts40],
            BusinessInfo[iIndex][bProducts41],
            BusinessInfo[iIndex][bProducts42],
            BusinessInfo[iIndex][bProducts43],
            BusinessInfo[iIndex][bProducts44],
            BusinessInfo[iIndex][bProducts45],
            BusinessInfo[iIndex][bProducts46],
            BusinessInfo[iIndex][bProducts47],
            BusinessInfo[iIndex][bProducts48],
            BusinessInfo[iIndex][bProducts49],
            BusinessInfo[iIndex][bProducts50],
            BusinessInfo[iIndex][pExteriorX],
            BusinessInfo[iIndex][pExteriorY],
            BusinessInfo[iIndex][pExteriorZ]
        );
        if(iIndex == 1)
        {
            file = fopen("business.cfg", io_write);
        }
        else
        {
            file = fopen("business.cfg", io_append);
        }
        fwrite(fHandle, szFileStr);
        fclose(fHandle);
        iIndex ++;
    }
}

Best Regards, pds2k12
  Reply With Quote
Old 25/10/2013, 01:39 PM   #6
nguyenquynh
Banned
 
Join Date: Sep 2012
Posts: 94
Reputation: 0
Default Re: Help error +1 REP!

Quote:
Originally Posted by pds2k12 View Post
I bet you're using a Leaked LS-RP script, but oh-well, I just edited some bits on your code, try this code if it does work

pawn Code:
SaveBusiness()
{
    if(!fexist("business.cfg")) fcreate("business.cfg");
    new
        szFileStr[1024],
        File: fHandle,
        iIndex = 1
     ;
    while(iIndex < MAX_BIZ)
    {
            format(szFileStr, sizeof(szFileStr), "%d|%s|%s|%f|%f|%f|%f|%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|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|\
            %d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|\
            %d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f\r\n"
,
            BusinessInfo[iIndex][bOwned],
            BusinessInfo[iIndex][bOwner],
            BusinessInfo[iIndex][bMessage],
            BusinessInfo[iIndex][bExteriorX],
            BusinessInfo[iIndex][bExteriorY],
            BusinessInfo[iIndex][bExteriorZ],
            BusinessInfo[iIndex][bExteriorR],
            BusinessInfo[iIndex][bExteriorA],
            BusinessInfo[iIndex][bInteriorX],
            BusinessInfo[iIndex][bInteriorY],
            BusinessInfo[iIndex][bInteriorZ],
            BusinessInfo[iIndex][bInteriorR],
            BusinessInfo[iIndex][bInteriorA],
            BusinessInfo[iIndex][bLock],
            BusinessInfo[iIndex][bType],
            BusinessInfo[iIndex][bValue],
            BusinessInfo[iIndex][bSafeMoney],
            BusinessInfo[iIndex][bPot],
            BusinessInfo[iIndex][bCrack],
            BusinessInfo[iIndex][bMaterials],
            BusinessInfo[iIndex][bPickupID],
            BusinessInfo[iIndex][bCustomInterior],
            BusinessInfo[iIndex][bCustomExterior],
            BusinessInfo[iIndex][bInt],
            BusinessInfo[iIndex][bProductPrice1],
            BusinessInfo[iIndex][bProductPrice2],
            BusinessInfo[iIndex][bProductPrice3],
            BusinessInfo[iIndex][bProductPrice4],
            BusinessInfo[iIndex][bProductPrice5],
            BusinessInfo[iIndex][bProductPrice6],
            BusinessInfo[iIndex][bProductPrice7],
            BusinessInfo[iIndex][bProductPrice8],
            BusinessInfo[iIndex][bProductPrice9],
            BusinessInfo[iIndex][bProductPrice10],
            BusinessInfo[iIndex][bProductPrice11],
            BusinessInfo[iIndex][bProductPrice12],
            BusinessInfo[iIndex][bProductPrice13],
            BusinessInfo[iIndex][bProductPrice14],
            BusinessInfo[iIndex][bProductPrice15],
            BusinessInfo[iIndex][bProductPrice16],
            BusinessInfo[iIndex][bProductPrice17],
            BusinessInfo[iIndex][bProductPrice18],
            BusinessInfo[iIndex][bProductPrice19],
            BusinessInfo[iIndex][bProductPrice20],
            BusinessInfo[iIndex][bProductPrice21],
            BusinessInfo[iIndex][bProductPrice22],
            BusinessInfo[iIndex][bProductPrice23],
            BusinessInfo[iIndex][bProductPrice24],
            BusinessInfo[iIndex][bProductPrice25],
            BusinessInfo[iIndex][bProductPrice26],
            BusinessInfo[iIndex][bProductPrice27],
            BusinessInfo[iIndex][bProductPrice28],
            BusinessInfo[iIndex][bProductPrice29],
            BusinessInfo[iIndex][bProductPrice30],
            BusinessInfo[iIndex][bProductPrice31],
            BusinessInfo[iIndex][bProductPrice32],
            BusinessInfo[iIndex][bProductPrice33],
            BusinessInfo[iIndex][bProductPrice34],
            BusinessInfo[iIndex][bProductPrice35],
            BusinessInfo[iIndex][bProductPrice36],
            BusinessInfo[iIndex][bProductPrice37],
            BusinessInfo[iIndex][bProductPrice38],
            BusinessInfo[iIndex][bProductPrice39],
            BusinessInfo[iIndex][bProductPrice40],
            BusinessInfo[iIndex][bProductPrice41],
            BusinessInfo[iIndex][bProductPrice42],
            BusinessInfo[iIndex][bProductPrice43],
            BusinessInfo[iIndex][bProductPrice44],
            BusinessInfo[iIndex][bProductPrice45],
            BusinessInfo[iIndex][bProductPrice46],
            BusinessInfo[iIndex][bProductPrice47],
            BusinessInfo[iIndex][bProductPrice48],
            BusinessInfo[iIndex][bProductPrice49],
            BusinessInfo[iIndex][bProductPrice50],
            BusinessInfo[iIndex][bProducts1],
            BusinessInfo[iIndex][bProducts2],
            BusinessInfo[iIndex][bProducts3],
            BusinessInfo[iIndex][bProducts4],
            BusinessInfo[iIndex][bProducts5],
            BusinessInfo[iIndex][bProducts6],
            BusinessInfo[iIndex][bProducts7],
            BusinessInfo[iIndex][bProducts8],
            BusinessInfo[iIndex][bProducts9],
            BusinessInfo[iIndex][bProducts10],
            BusinessInfo[iIndex][bProducts11],
            BusinessInfo[iIndex][bProducts12],
            BusinessInfo[iIndex][bProducts13],
            BusinessInfo[iIndex][bProducts14],
            BusinessInfo[iIndex][bProducts15],
            BusinessInfo[iIndex][bProducts16],
            BusinessInfo[iIndex][bProducts17],
            BusinessInfo[iIndex][bProducts18],
            BusinessInfo[iIndex][bProducts19],
            BusinessInfo[iIndex][bProducts20],
            BusinessInfo[iIndex][bProducts21],
            BusinessInfo[iIndex][bProducts22],
            BusinessInfo[iIndex][bProducts23],
            BusinessInfo[iIndex][bProducts24],
            BusinessInfo[iIndex][bProducts25],
            BusinessInfo[iIndex][bProducts26],
            BusinessInfo[iIndex][bProducts27],
            BusinessInfo[iIndex][bProducts28],
            BusinessInfo[iIndex][bProducts29],
            BusinessInfo[iIndex][bProducts30],
            BusinessInfo[iIndex][bProducts31],
            BusinessInfo[iIndex][bProducts32],
            BusinessInfo[iIndex][bProducts33],
            BusinessInfo[iIndex][bProducts34],
            BusinessInfo[iIndex][bProducts35],
            BusinessInfo[iIndex][bProducts36],
            BusinessInfo[iIndex][bProducts37],
            BusinessInfo[iIndex][bProducts38],
            BusinessInfo[iIndex][bProducts39],
            BusinessInfo[iIndex][bProducts40],
            BusinessInfo[iIndex][bProducts41],
            BusinessInfo[iIndex][bProducts42],
            BusinessInfo[iIndex][bProducts43],
            BusinessInfo[iIndex][bProducts44],
            BusinessInfo[iIndex][bProducts45],
            BusinessInfo[iIndex][bProducts46],
            BusinessInfo[iIndex][bProducts47],
            BusinessInfo[iIndex][bProducts48],
            BusinessInfo[iIndex][bProducts49],
            BusinessInfo[iIndex][bProducts50],
            BusinessInfo[iIndex][pExteriorX],
            BusinessInfo[iIndex][pExteriorY],
            BusinessInfo[iIndex][pExteriorZ]
        );
        if(iIndex == 1)
        {
            file = fopen("business.cfg", io_write);
        }
        else
        {
            file = fopen("business.cfg", io_append);
        }
        fwrite(fHandle, szFileStr);
        fclose(fHandle);
        iIndex ++;
    }
}

Best Regards, pds2k12
It dosen't work!
nguyenquynh is offline   Reply With Quote
Old 25/10/2013, 01:41 PM   #7
xVIP3Rx
High-roller
 
xVIP3Rx's Avatar
 
Join Date: Feb 2013
Location: Egypt
Posts: 1,096
Reputation: 96
Default Re: Help error +1 REP!

pawn Code:
SaveBusiness()
{
    new
        szFileStr[1024],
        File: fHandle = fopen("business.cfg", io_write);

    for(new iIndex; iIndex < MAX_BUSINESS; iIndex++)
    {
        format(szFileStr, sizeof(szFileStr), "%d|%s|%s|%f|%f|%f|%f|%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|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f\r\n",
        BusinessInfo[iIndex][bOwned],
        BusinessInfo[iIndex][bOwner],
        BusinessInfo[iIndex][bMessage],
        BusinessInfo[iIndex][bExteriorX],
        BusinessInfo[iIndex][bExteriorY],
        BusinessInfo[iIndex][bExteriorZ],
        BusinessInfo[iIndex][bExteriorR],
        BusinessInfo[iIndex][bExteriorA],
        BusinessInfo[iIndex][bInteriorX],
        BusinessInfo[iIndex][bInteriorY],
        BusinessInfo[iIndex][bInteriorZ],
        BusinessInfo[iIndex][bInteriorR],
        BusinessInfo[iIndex][bInteriorA],
        BusinessInfo[iIndex][bLock],
        BusinessInfo[iIndex][bType],
        BusinessInfo[iIndex][bValue],
        BusinessInfo[iIndex][bSafeMoney],
        BusinessInfo[iIndex][bPot],
        BusinessInfo[iIndex][bCrack],
        BusinessInfo[iIndex][bMaterials],
        BusinessInfo[iIndex][bPickupID],
        BusinessInfo[iIndex][bCustomInterior],
        BusinessInfo[iIndex][bCustomExterior],
        BusinessInfo[iIndex][bInt],
        BusinessInfo[iIndex][bProductPrice1],
        BusinessInfo[iIndex][bProductPrice2],
        BusinessInfo[iIndex][bProductPrice3],
        BusinessInfo[iIndex][bProductPrice4],
        BusinessInfo[iIndex][bProductPrice5],
        BusinessInfo[iIndex][bProductPrice6],
        BusinessInfo[iIndex][bProductPrice7],
        BusinessInfo[iIndex][bProductPrice8],
        BusinessInfo[iIndex][bProductPrice9],
        BusinessInfo[iIndex][bProductPrice10],
        BusinessInfo[iIndex][bProductPrice11],
        BusinessInfo[iIndex][bProductPrice12],
        BusinessInfo[iIndex][bProductPrice13],
        BusinessInfo[iIndex][bProductPrice14],
        BusinessInfo[iIndex][bProductPrice15],
        BusinessInfo[iIndex][bProductPrice16],
        BusinessInfo[iIndex][bProductPrice17],
        BusinessInfo[iIndex][bProductPrice18],
        BusinessInfo[iIndex][bProductPrice19],
        BusinessInfo[iIndex][bProductPrice20],
        BusinessInfo[iIndex][bProductPrice21],
        BusinessInfo[iIndex][bProductPrice22],
        BusinessInfo[iIndex][bProductPrice23],
        BusinessInfo[iIndex][bProductPrice24],
        BusinessInfo[iIndex][bProductPrice25],
        BusinessInfo[iIndex][bProductPrice26],
        BusinessInfo[iIndex][bProductPrice27],
        BusinessInfo[iIndex][bProductPrice28],
        BusinessInfo[iIndex][bProductPrice29],
        BusinessInfo[iIndex][bProductPrice30],
        BusinessInfo[iIndex][bProductPrice31],
        BusinessInfo[iIndex][bProductPrice32],
        BusinessInfo[iIndex][bProductPrice33],
        BusinessInfo[iIndex][bProductPrice34],
        BusinessInfo[iIndex][bProductPrice35],
        BusinessInfo[iIndex][bProductPrice36],
        BusinessInfo[iIndex][bProductPrice37],
        BusinessInfo[iIndex][bProductPrice38],
        BusinessInfo[iIndex][bProductPrice39],
        BusinessInfo[iIndex][bProductPrice40],
        BusinessInfo[iIndex][bProductPrice41],
        BusinessInfo[iIndex][bProductPrice42],
        BusinessInfo[iIndex][bProductPrice43],
        BusinessInfo[iIndex][bProductPrice44],
        BusinessInfo[iIndex][bProductPrice45],
        BusinessInfo[iIndex][bProductPrice46],
        BusinessInfo[iIndex][bProductPrice47],
        BusinessInfo[iIndex][bProductPrice48],
        BusinessInfo[iIndex][bProductPrice49],
        BusinessInfo[iIndex][bProductPrice50],
        BusinessInfo[iIndex][bProducts1],
        BusinessInfo[iIndex][bProducts2],
        BusinessInfo[iIndex][bProducts3],
        BusinessInfo[iIndex][bProducts4],
        BusinessInfo[iIndex][bProducts5],
        BusinessInfo[iIndex][bProducts6],
        BusinessInfo[iIndex][bProducts7],
        BusinessInfo[iIndex][bProducts8],
        BusinessInfo[iIndex][bProducts9],
        BusinessInfo[iIndex][bProducts10],
        BusinessInfo[iIndex][bProducts11],
        BusinessInfo[iIndex][bProducts12],
        BusinessInfo[iIndex][bProducts13],
        BusinessInfo[iIndex][bProducts14],
        BusinessInfo[iIndex][bProducts15],
        BusinessInfo[iIndex][bProducts16],
        BusinessInfo[iIndex][bProducts17],
        BusinessInfo[iIndex][bProducts18],
        BusinessInfo[iIndex][bProducts19],
        BusinessInfo[iIndex][bProducts20],
        BusinessInfo[iIndex][bProducts21],
        BusinessInfo[iIndex][bProducts22],
        BusinessInfo[iIndex][bProducts23],
        BusinessInfo[iIndex][bProducts24],
        BusinessInfo[iIndex][bProducts25],
        BusinessInfo[iIndex][bProducts26],
        BusinessInfo[iIndex][bProducts27],
        BusinessInfo[iIndex][bProducts28],
        BusinessInfo[iIndex][bProducts29],
        BusinessInfo[iIndex][bProducts30],
        BusinessInfo[iIndex][bProducts31],
        BusinessInfo[iIndex][bProducts32],
        BusinessInfo[iIndex][bProducts33],
        BusinessInfo[iIndex][bProducts34],
        BusinessInfo[iIndex][bProducts35],
        BusinessInfo[iIndex][bProducts36],
        BusinessInfo[iIndex][bProducts37],
        BusinessInfo[iIndex][bProducts38],
        BusinessInfo[iIndex][bProducts39],
        BusinessInfo[iIndex][bProducts40],
        BusinessInfo[iIndex][bProducts41],
        BusinessInfo[iIndex][bProducts42],
        BusinessInfo[iIndex][bProducts43],
        BusinessInfo[iIndex][bProducts44],
        BusinessInfo[iIndex][bProducts45],
        BusinessInfo[iIndex][bProducts46],
        BusinessInfo[iIndex][bProducts47],
        BusinessInfo[iIndex][bProducts48],
        BusinessInfo[iIndex][bProducts49],
        BusinessInfo[iIndex][bProducts50],
        BusinessInfo[iIndex][pExteriorX],
        BusinessInfo[iIndex][pExteriorY],
        BusinessInfo[iIndex][pExteriorZ]
    }
    fwrite(fHandle, szFileStr);
    return fclose(fHandle);
}
xVIP3Rx is offline   Reply With Quote
Old 25/10/2013, 01:43 PM   #8
nguyenquynh
Banned
 
Join Date: Sep 2012
Posts: 94
Reputation: 0
Default Re: Help error +1 REP!

Quote:
Originally Posted by xVIP3Rx View Post
pawn Code:
SaveBusiness()
{
    new
        szFileStr[1024],
        File: fHandle = fopen("business.cfg", io_write);

    for(new iIndex; iIndex < MAX_BUSINESS; iIndex++)
    {
        format(szFileStr, sizeof(szFileStr), "%d|%s|%s|%f|%f|%f|%f|%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|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f\r\n",
        BusinessInfo[iIndex][bOwned],
        BusinessInfo[iIndex][bOwner],
        BusinessInfo[iIndex][bMessage],
        BusinessInfo[iIndex][bExteriorX],
        BusinessInfo[iIndex][bExteriorY],
        BusinessInfo[iIndex][bExteriorZ],
        BusinessInfo[iIndex][bExteriorR],
        BusinessInfo[iIndex][bExteriorA],
        BusinessInfo[iIndex][bInteriorX],
        BusinessInfo[iIndex][bInteriorY],
        BusinessInfo[iIndex][bInteriorZ],
        BusinessInfo[iIndex][bInteriorR],
        BusinessInfo[iIndex][bInteriorA],
        BusinessInfo[iIndex][bLock],
        BusinessInfo[iIndex][bType],
        BusinessInfo[iIndex][bValue],
        BusinessInfo[iIndex][bSafeMoney],
        BusinessInfo[iIndex][bPot],
        BusinessInfo[iIndex][bCrack],
        BusinessInfo[iIndex][bMaterials],
        BusinessInfo[iIndex][bPickupID],
        BusinessInfo[iIndex][bCustomInterior],
        BusinessInfo[iIndex][bCustomExterior],
        BusinessInfo[iIndex][bInt],
        BusinessInfo[iIndex][bProductPrice1],
        BusinessInfo[iIndex][bProductPrice2],
        BusinessInfo[iIndex][bProductPrice3],
        BusinessInfo[iIndex][bProductPrice4],
        BusinessInfo[iIndex][bProductPrice5],
        BusinessInfo[iIndex][bProductPrice6],
        BusinessInfo[iIndex][bProductPrice7],
        BusinessInfo[iIndex][bProductPrice8],
        BusinessInfo[iIndex][bProductPrice9],
        BusinessInfo[iIndex][bProductPrice10],
        BusinessInfo[iIndex][bProductPrice11],
        BusinessInfo[iIndex][bProductPrice12],
        BusinessInfo[iIndex][bProductPrice13],
        BusinessInfo[iIndex][bProductPrice14],
        BusinessInfo[iIndex][bProductPrice15],
        BusinessInfo[iIndex][bProductPrice16],
        BusinessInfo[iIndex][bProductPrice17],
        BusinessInfo[iIndex][bProductPrice18],
        BusinessInfo[iIndex][bProductPrice19],
        BusinessInfo[iIndex][bProductPrice20],
        BusinessInfo[iIndex][bProductPrice21],
        BusinessInfo[iIndex][bProductPrice22],
        BusinessInfo[iIndex][bProductPrice23],
        BusinessInfo[iIndex][bProductPrice24],
        BusinessInfo[iIndex][bProductPrice25],
        BusinessInfo[iIndex][bProductPrice26],
        BusinessInfo[iIndex][bProductPrice27],
        BusinessInfo[iIndex][bProductPrice28],
        BusinessInfo[iIndex][bProductPrice29],
        BusinessInfo[iIndex][bProductPrice30],
        BusinessInfo[iIndex][bProductPrice31],
        BusinessInfo[iIndex][bProductPrice32],
        BusinessInfo[iIndex][bProductPrice33],
        BusinessInfo[iIndex][bProductPrice34],
        BusinessInfo[iIndex][bProductPrice35],
        BusinessInfo[iIndex][bProductPrice36],
        BusinessInfo[iIndex][bProductPrice37],
        BusinessInfo[iIndex][bProductPrice38],
        BusinessInfo[iIndex][bProductPrice39],
        BusinessInfo[iIndex][bProductPrice40],
        BusinessInfo[iIndex][bProductPrice41],
        BusinessInfo[iIndex][bProductPrice42],
        BusinessInfo[iIndex][bProductPrice43],
        BusinessInfo[iIndex][bProductPrice44],
        BusinessInfo[iIndex][bProductPrice45],
        BusinessInfo[iIndex][bProductPrice46],
        BusinessInfo[iIndex][bProductPrice47],
        BusinessInfo[iIndex][bProductPrice48],
        BusinessInfo[iIndex][bProductPrice49],
        BusinessInfo[iIndex][bProductPrice50],
        BusinessInfo[iIndex][bProducts1],
        BusinessInfo[iIndex][bProducts2],
        BusinessInfo[iIndex][bProducts3],
        BusinessInfo[iIndex][bProducts4],
        BusinessInfo[iIndex][bProducts5],
        BusinessInfo[iIndex][bProducts6],
        BusinessInfo[iIndex][bProducts7],
        BusinessInfo[iIndex][bProducts8],
        BusinessInfo[iIndex][bProducts9],
        BusinessInfo[iIndex][bProducts10],
        BusinessInfo[iIndex][bProducts11],
        BusinessInfo[iIndex][bProducts12],
        BusinessInfo[iIndex][bProducts13],
        BusinessInfo[iIndex][bProducts14],
        BusinessInfo[iIndex][bProducts15],
        BusinessInfo[iIndex][bProducts16],
        BusinessInfo[iIndex][bProducts17],
        BusinessInfo[iIndex][bProducts18],
        BusinessInfo[iIndex][bProducts19],
        BusinessInfo[iIndex][bProducts20],
        BusinessInfo[iIndex][bProducts21],
        BusinessInfo[iIndex][bProducts22],
        BusinessInfo[iIndex][bProducts23],
        BusinessInfo[iIndex][bProducts24],
        BusinessInfo[iIndex][bProducts25],
        BusinessInfo[iIndex][bProducts26],
        BusinessInfo[iIndex][bProducts27],
        BusinessInfo[iIndex][bProducts28],
        BusinessInfo[iIndex][bProducts29],
        BusinessInfo[iIndex][bProducts30],
        BusinessInfo[iIndex][bProducts31],
        BusinessInfo[iIndex][bProducts32],
        BusinessInfo[iIndex][bProducts33],
        BusinessInfo[iIndex][bProducts34],
        BusinessInfo[iIndex][bProducts35],
        BusinessInfo[iIndex][bProducts36],
        BusinessInfo[iIndex][bProducts37],
        BusinessInfo[iIndex][bProducts38],
        BusinessInfo[iIndex][bProducts39],
        BusinessInfo[iIndex][bProducts40],
        BusinessInfo[iIndex][bProducts41],
        BusinessInfo[iIndex][bProducts42],
        BusinessInfo[iIndex][bProducts43],
        BusinessInfo[iIndex][bProducts44],
        BusinessInfo[iIndex][bProducts45],
        BusinessInfo[iIndex][bProducts46],
        BusinessInfo[iIndex][bProducts47],
        BusinessInfo[iIndex][bProducts48],
        BusinessInfo[iIndex][bProducts49],
        BusinessInfo[iIndex][bProducts50],
        BusinessInfo[iIndex][pExteriorX],
        BusinessInfo[iIndex][pExteriorY],
        BusinessInfo[iIndex][pExteriorZ]
    }
    fwrite(fHandle, szFileStr);
    return fclose(fHandle);
}
It dosen't work
nguyenquynh is offline   Reply With Quote
Old 25/10/2013, 01:44 PM   #9
ikbenremco
Huge Clucker
 
Join Date: Dec 2010
Posts: 379
Reputation: 21
Default AW: Help error +1 REP!

This should do it.

PHP Code:
SaveBusiness()
{
    new
        
szFileStr[1024],
        
FilefHandle fopen("business.cfg"io_write);

    for(new 
iIndexiIndex MAX_BUSINESSiIndex++)
    {
        
format(szFileStrsizeof(szFileStr), "%d|%s|%s|%f|%f|%f|%f|%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|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f\r\n",
        
BusinessInfo[iIndex][bOwned],
        
BusinessInfo[iIndex][bOwner],
        
BusinessInfo[iIndex][bMessage],
        
BusinessInfo[iIndex][bExteriorX],
        
BusinessInfo[iIndex][bExteriorY],
        
BusinessInfo[iIndex][bExteriorZ],
        
BusinessInfo[iIndex][bExteriorR],
        
BusinessInfo[iIndex][bExteriorA],
        
BusinessInfo[iIndex][bInteriorX],
        
BusinessInfo[iIndex][bInteriorY],
        
BusinessInfo[iIndex][bInteriorZ],
        
BusinessInfo[iIndex][bInteriorR],
        
BusinessInfo[iIndex][bInteriorA],
        
BusinessInfo[iIndex][bLock],
        
BusinessInfo[iIndex][bType],
        
BusinessInfo[iIndex][bValue],
        
BusinessInfo[iIndex][bSafeMoney],
        
BusinessInfo[iIndex][bPot],
        
BusinessInfo[iIndex][bCrack],
        
BusinessInfo[iIndex][bMaterials],
        
BusinessInfo[iIndex][bPickupID],
        
BusinessInfo[iIndex][bCustomInterior],
        
BusinessInfo[iIndex][bCustomExterior],
        
BusinessInfo[iIndex][bInt],
        
BusinessInfo[iIndex][bProductPrice1],
        
BusinessInfo[iIndex][bProductPrice2],
        
BusinessInfo[iIndex][bProductPrice3],
        
BusinessInfo[iIndex][bProductPrice4],
        
BusinessInfo[iIndex][bProductPrice5],
        
BusinessInfo[iIndex][bProductPrice6],
        
BusinessInfo[iIndex][bProductPrice7],
        
BusinessInfo[iIndex][bProductPrice8],
        
BusinessInfo[iIndex][bProductPrice9],
        
BusinessInfo[iIndex][bProductPrice10],
        
BusinessInfo[iIndex][bProductPrice11],
        
BusinessInfo[iIndex][bProductPrice12],
        
BusinessInfo[iIndex][bProductPrice13],
        
BusinessInfo[iIndex][bProductPrice14],
        
BusinessInfo[iIndex][bProductPrice15],
        
BusinessInfo[iIndex][bProductPrice16],
        
BusinessInfo[iIndex][bProductPrice17],
        
BusinessInfo[iIndex][bProductPrice18],
        
BusinessInfo[iIndex][bProductPrice19],
        
BusinessInfo[iIndex][bProductPrice20],
        
BusinessInfo[iIndex][bProductPrice21],
        
BusinessInfo[iIndex][bProductPrice22],
        
BusinessInfo[iIndex][bProductPrice23],
        
BusinessInfo[iIndex][bProductPrice24],
        
BusinessInfo[iIndex][bProductPrice25],
        
BusinessInfo[iIndex][bProductPrice26],
        
BusinessInfo[iIndex][bProductPrice27],
        
BusinessInfo[iIndex][bProductPrice28],
        
BusinessInfo[iIndex][bProductPrice29],
        
BusinessInfo[iIndex][bProductPrice30],
        
BusinessInfo[iIndex][bProductPrice31],
        
BusinessInfo[iIndex][bProductPrice32],
        
BusinessInfo[iIndex][bProductPrice33],
        
BusinessInfo[iIndex][bProductPrice34],
        
BusinessInfo[iIndex][bProductPrice35],
        
BusinessInfo[iIndex][bProductPrice36],
        
BusinessInfo[iIndex][bProductPrice37],
        
BusinessInfo[iIndex][bProductPrice38],
        
BusinessInfo[iIndex][bProductPrice39],
        
BusinessInfo[iIndex][bProductPrice40],
        
BusinessInfo[iIndex][bProductPrice41],
        
BusinessInfo[iIndex][bProductPrice42],
        
BusinessInfo[iIndex][bProductPrice43],
        
BusinessInfo[iIndex][bProductPrice44],
        
BusinessInfo[iIndex][bProductPrice45],
        
BusinessInfo[iIndex][bProductPrice46],
        
BusinessInfo[iIndex][bProductPrice47],
        
BusinessInfo[iIndex][bProductPrice48],
        
BusinessInfo[iIndex][bProductPrice49],
        
BusinessInfo[iIndex][bProductPrice50],
        
BusinessInfo[iIndex][bProducts1],
        
BusinessInfo[iIndex][bProducts2],
        
BusinessInfo[iIndex][bProducts3],
        
BusinessInfo[iIndex][bProducts4],
        
BusinessInfo[iIndex][bProducts5],
        
BusinessInfo[iIndex][bProducts6],
        
BusinessInfo[iIndex][bProducts7],
        
BusinessInfo[iIndex][bProducts8],
        
BusinessInfo[iIndex][bProducts9],
        
BusinessInfo[iIndex][bProducts10],
        
BusinessInfo[iIndex][bProducts11],
        
BusinessInfo[iIndex][bProducts12],
        
BusinessInfo[iIndex][bProducts13],
        
BusinessInfo[iIndex][bProducts14],
        
BusinessInfo[iIndex][bProducts15],
        
BusinessInfo[iIndex][bProducts16],
        
BusinessInfo[iIndex][bProducts17],
        
BusinessInfo[iIndex][bProducts18],
        
BusinessInfo[iIndex][bProducts19],
        
BusinessInfo[iIndex][bProducts20],
        
BusinessInfo[iIndex][bProducts21],
        
BusinessInfo[iIndex][bProducts22],
        
BusinessInfo[iIndex][bProducts23],
        
BusinessInfo[iIndex][bProducts24],
        
BusinessInfo[iIndex][bProducts25],
        
BusinessInfo[iIndex][bProducts26],
        
BusinessInfo[iIndex][bProducts27],
        
BusinessInfo[iIndex][bProducts28],
        
BusinessInfo[iIndex][bProducts29],
        
BusinessInfo[iIndex][bProducts30],
        
BusinessInfo[iIndex][bProducts31],
        
BusinessInfo[iIndex][bProducts32],
        
BusinessInfo[iIndex][bProducts33],
        
BusinessInfo[iIndex][bProducts34],
        
BusinessInfo[iIndex][bProducts35],
        
BusinessInfo[iIndex][bProducts36],
        
BusinessInfo[iIndex][bProducts37],
        
BusinessInfo[iIndex][bProducts38],
        
BusinessInfo[iIndex][bProducts39],
        
BusinessInfo[iIndex][bProducts40],
        
BusinessInfo[iIndex][bProducts41],
        
BusinessInfo[iIndex][bProducts42],
        
BusinessInfo[iIndex][bProducts43],
        
BusinessInfo[iIndex][bProducts44],
        
BusinessInfo[iIndex][bProducts45],
        
BusinessInfo[iIndex][bProducts46],
        
BusinessInfo[iIndex][bProducts47],
        
BusinessInfo[iIndex][bProducts48],
        
BusinessInfo[iIndex][bProducts49],
        
BusinessInfo[iIndex][bProducts50],
        
BusinessInfo[iIndex][pExteriorX],
        
BusinessInfo[iIndex][pExteriorY],
        
BusinessInfo[iIndex][pExteriorZ]) // you forgot  ) here
    
}
    
fwrite(fHandleszFileStr);
    return 
fclose(fHandle);

ikbenremco is offline   Reply With Quote
Old 25/10/2013, 01:49 PM   #10
nguyenquynh
Banned
 
Join Date: Sep 2012
Posts: 94
Reputation: 0
Default Re: AW: Help error +1 REP!

Quote:
Originally Posted by ikbenremco View Post
This should do it.

PHP Code:
SaveBusiness()
{
    new
        
szFileStr[1024],
        
FilefHandle fopen("business.cfg"io_write);

    for(new 
iIndexiIndex MAX_BUSINESSiIndex++)
    {
        
format(szFileStrsizeof(szFileStr), "%d|%s|%s|%f|%f|%f|%f|%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|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f\r\n",
        
BusinessInfo[iIndex][bOwned],
        
BusinessInfo[iIndex][bOwner],
        
BusinessInfo[iIndex][bMessage],
        
BusinessInfo[iIndex][bExteriorX],
        
BusinessInfo[iIndex][bExteriorY],
        
BusinessInfo[iIndex][bExteriorZ],
        
BusinessInfo[iIndex][bExteriorR],
        
BusinessInfo[iIndex][bExteriorA],
        
BusinessInfo[iIndex][bInteriorX],
        
BusinessInfo[iIndex][bInteriorY],
        
BusinessInfo[iIndex][bInteriorZ],
        
BusinessInfo[iIndex][bInteriorR],
        
BusinessInfo[iIndex][bInteriorA],
        
BusinessInfo[iIndex][bLock],
        
BusinessInfo[iIndex][bType],
        
BusinessInfo[iIndex][bValue],
        
BusinessInfo[iIndex][bSafeMoney],
        
BusinessInfo[iIndex][bPot],
        
BusinessInfo[iIndex][bCrack],
        
BusinessInfo[iIndex][bMaterials],
        
BusinessInfo[iIndex][bPickupID],
        
BusinessInfo[iIndex][bCustomInterior],
        
BusinessInfo[iIndex][bCustomExterior],
        
BusinessInfo[iIndex][bInt],
        
BusinessInfo[iIndex][bProductPrice1],
        
BusinessInfo[iIndex][bProductPrice2],
        
BusinessInfo[iIndex][bProductPrice3],
        
BusinessInfo[iIndex][bProductPrice4],
        
BusinessInfo[iIndex][bProductPrice5],
        
BusinessInfo[iIndex][bProductPrice6],
        
BusinessInfo[iIndex][bProductPrice7],
        
BusinessInfo[iIndex][bProductPrice8],
        
BusinessInfo[iIndex][bProductPrice9],
        
BusinessInfo[iIndex][bProductPrice10],
        
BusinessInfo[iIndex][bProductPrice11],
        
BusinessInfo[iIndex][bProductPrice12],
        
BusinessInfo[iIndex][bProductPrice13],
        
BusinessInfo[iIndex][bProductPrice14],
        
BusinessInfo[iIndex][bProductPrice15],
        
BusinessInfo[iIndex][bProductPrice16],
        
BusinessInfo[iIndex][bProductPrice17],
        
BusinessInfo[iIndex][bProductPrice18],
        
BusinessInfo[iIndex][bProductPrice19],
        
BusinessInfo[iIndex][bProductPrice20],
        
BusinessInfo[iIndex][bProductPrice21],
        
BusinessInfo[iIndex][bProductPrice22],
        
BusinessInfo[iIndex][bProductPrice23],
        
BusinessInfo[iIndex][bProductPrice24],
        
BusinessInfo[iIndex][bProductPrice25],
        
BusinessInfo[iIndex][bProductPrice26],
        
BusinessInfo[iIndex][bProductPrice27],
        
BusinessInfo[iIndex][bProductPrice28],
        
BusinessInfo[iIndex][bProductPrice29],
        
BusinessInfo[iIndex][bProductPrice30],
        
BusinessInfo[iIndex][bProductPrice31],
        
BusinessInfo[iIndex][bProductPrice32],
        
BusinessInfo[iIndex][bProductPrice33],
        
BusinessInfo[iIndex][bProductPrice34],
        
BusinessInfo[iIndex][bProductPrice35],
        
BusinessInfo[iIndex][bProductPrice36],
        
BusinessInfo[iIndex][bProductPrice37],
        
BusinessInfo[iIndex][bProductPrice38],
        
BusinessInfo[iIndex][bProductPrice39],
        
BusinessInfo[iIndex][bProductPrice40],
        
BusinessInfo[iIndex][bProductPrice41],
        
BusinessInfo[iIndex][bProductPrice42],
        
BusinessInfo[iIndex][bProductPrice43],
        
BusinessInfo[iIndex][bProductPrice44],
        
BusinessInfo[iIndex][bProductPrice45],
        
BusinessInfo[iIndex][bProductPrice46],
        
BusinessInfo[iIndex][bProductPrice47],
        
BusinessInfo[iIndex][bProductPrice48],
        
BusinessInfo[iIndex][bProductPrice49],
        
BusinessInfo[iIndex][bProductPrice50],
        
BusinessInfo[iIndex][bProducts1],
        
BusinessInfo[iIndex][bProducts2],
        
BusinessInfo[iIndex][bProducts3],
        
BusinessInfo[iIndex][bProducts4],
        
BusinessInfo[iIndex][bProducts5],
        
BusinessInfo[iIndex][bProducts6],
        
BusinessInfo[iIndex][bProducts7],
        
BusinessInfo[iIndex][bProducts8],
        
BusinessInfo[iIndex][bProducts9],
        
BusinessInfo[iIndex][bProducts10],
        
BusinessInfo[iIndex][bProducts11],
        
BusinessInfo[iIndex][bProducts12],
        
BusinessInfo[iIndex][bProducts13],
        
BusinessInfo[iIndex][bProducts14],
        
BusinessInfo[iIndex][bProducts15],
        
BusinessInfo[iIndex][bProducts16],
        
BusinessInfo[iIndex][bProducts17],
        
BusinessInfo[iIndex][bProducts18],
        
BusinessInfo[iIndex][bProducts19],
        
BusinessInfo[iIndex][bProducts20],
        
BusinessInfo[iIndex][bProducts21],
        
BusinessInfo[iIndex][bProducts22],
        
BusinessInfo[iIndex][bProducts23],
        
BusinessInfo[iIndex][bProducts24],
        
BusinessInfo[iIndex][bProducts25],
        
BusinessInfo[iIndex][bProducts26],
        
BusinessInfo[iIndex][bProducts27],
        
BusinessInfo[iIndex][bProducts28],
        
BusinessInfo[iIndex][bProducts29],
        
BusinessInfo[iIndex][bProducts30],
        
BusinessInfo[iIndex][bProducts31],
        
BusinessInfo[iIndex][bProducts32],
        
BusinessInfo[iIndex][bProducts33],
        
BusinessInfo[iIndex][bProducts34],
        
BusinessInfo[iIndex][bProducts35],
        
BusinessInfo[iIndex][bProducts36],
        
BusinessInfo[iIndex][bProducts37],
        
BusinessInfo[iIndex][bProducts38],
        
BusinessInfo[iIndex][bProducts39],
        
BusinessInfo[iIndex][bProducts40],
        
BusinessInfo[iIndex][bProducts41],
        
BusinessInfo[iIndex][bProducts42],
        
BusinessInfo[iIndex][bProducts43],
        
BusinessInfo[iIndex][bProducts44],
        
BusinessInfo[iIndex][bProducts45],
        
BusinessInfo[iIndex][bProducts46],
        
BusinessInfo[iIndex][bProducts47],
        
BusinessInfo[iIndex][bProducts48],
        
BusinessInfo[iIndex][bProducts49],
        
BusinessInfo[iIndex][bProducts50],
        
BusinessInfo[iIndex][pExteriorX],
        
BusinessInfo[iIndex][pExteriorY],
        
BusinessInfo[iIndex][pExteriorZ]) // you forgot  ) here
    
}
    
fwrite(fHandleszFileStr);
    return 
fclose(fHandle);


Yes, It dosen't work
nguyenquynh is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fatal error 111: user error: sscanf (possibly the PAWN version) already defined? minijackc Scripting Help 2 15/01/2013 04:17 AM
An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds.... rati555 Scripting Help 1 14/09/2012 07:45 PM
Registered plate stock error 'error 076: syntax error in the expression, or invalid function call' Deal-or-die Scripting Help 2 25/06/2012 03:12 PM
Error message: : error 030: compound statement not closed at the end of file (started at line 170) the_zohan Scripting Help 5 04/06/2012 08:38 AM
I get tagmismatch error, But i cant find any error error Swiftz Help Archive 1 16/04/2011 04:31 AM


All times are GMT. The time now is 08:42 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.