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:50 PM   #11
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,831
Reputation: 1401
Default Re: Help error +1 REP!

ikbenrenco, he didn't. It's on the next line.

You use 125 variables for that table, if it still show that error, then split it up again.

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|"
        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]);
       
        format(szFileStr, sizeof(szFileStr), "%s%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%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",
        szFileStr,
        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(fHandle) fwrite(fHandle, szFileStr);
    }
    if(fHandle) fclose(fHandle);
}
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 25/10/2013, 01:53 PM   #12
nguyenquynh
Banned
 
Join Date: Sep 2012
Posts: 94
Reputation: 0
Default Re: Help error +1 REP!

Quote:
Originally Posted by Konstantinos View Post
ikbenrenco, he didn't. It's on the next line.

You've 125 variables for that table, if it still show that error, then split it up again.

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|"
        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]);
       
        format(szFileStr, sizeof(szFileStr), "%s%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%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",
        szFileStr,
        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(fHandle) fwrite(fHandle, szFileStr);
    }
    if(fHandle) fclose(fHandle);
}
Error:
Code:
D:\LS-RP\gamemodes\LS-RP.pwn(24223 -- 24341) : fatal error 102: table overflow: "staging buffer"
nguyenquynh is offline   Reply With Quote
Old 25/10/2013, 02:03 PM   #13
nguyenquynh
Banned
 
Join Date: Sep 2012
Posts: 94
Reputation: 0
Default Re: Help error +1 REP!

@Konstantinos : help me please
nguyenquynh is offline   Reply With Quote
Old 25/10/2013, 02:09 PM   #14
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,831
Reputation: 1401
Default Re: Help error +1 REP!

Quote:
Originally Posted by nguyenquynh View Post
@Konstantinos : help me please
Double posting is against the rules, don't do that.

The reason I didn't reply back is because I told you to do something if it still shows the error and you ignored my post. Re-read it and do that.

I'll bold the text so you can read it.

Quote:
Originally Posted by Konstantinos View Post
You use 125 variables for that table, if it still show that error, then split it up again.
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 25/10/2013, 02:13 PM   #15
nguyenquynh
Banned
 
Join Date: Sep 2012
Posts: 94
Reputation: 0
Default Re: Help error +1 REP!

Can you split it up again help me
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 07:15 AM.


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