SA-MP Forums Archive
Error : Staging buffer over flow ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error : Staging buffer over flow ? (/showthread.php?tid=405583)



Error : Staging buffer over flow ? - Black Axe - 07.01.2013

Well.. When I try to compile it gives me this error in these lines :

PHP код:
SaveFactions()
{
    new 
coordsstring[4096];
Line 9860:    format(coordsstringsizeof(coordsstring), "%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s",
    
FACTION_1,
    
FACTION_2,
    
FACTION_3,
    
FACTION_4,
    
FACTION_5,
    
FACTION_6,
    
FACTION_7,
    
FACTION_8,
    
FACTION_9,
    
FACTION_10,
    
FACTION_11,
    
FACTION_12,
    
FACTION_13,
    
FACTION_14,
    
FACTION_15,
    
FACTION_16,
    
FACTION_17,
    
FACTION_18,
    
FACTION_19,
    
FACTION_20,
    
FACTION_21,
    
FACTION_22,
    
FACTION_23,
    
FACTION_24,
    
FACTION_25,
    
FACTION1_OWNER,
    
FACTION2_OWNER,
    
FACTION3_OWNER,
    
FACTION4_OWNER,
    
FACTION5_OWNER,
    
FACTION6_OWNER,
    
FACTION7_OWNER,
    
FACTION8_OWNER,
    
FACTION9_OWNER,
    
FACTION10_OWNER,
    
FACTION11_OWNER,
    
FACTION12_OWNER,
    
FACTION13_OWNER,
    
FACTION14_OWNER,
    
FACTION15_OWNER,
    
FACTION16_OWNER,
    
FACTION17_OWNER,
    
FACTION18_OWNER,
    
FACTION19_OWNER,
    
FACTION20_OWNER,
    
FACTION21_OWNER,
    
FACTION22_OWNER,
    
FACTION23_OWNER,
    
FACTION24_OWNER,
    
FACTION25_OWNER,
    
TOTAL_FACTION1_MEMBERS,
    
TOTAL_FACTION2_MEMBERS,
    
TOTAL_FACTION3_MEMBERS,
    
TOTAL_FACTION4_MEMBERS,
    
TOTAL_FACTION5_MEMBERS,
    
TOTAL_FACTION6_MEMBERS,
    
TOTAL_FACTION7_MEMBERS,
    
TOTAL_FACTION8_MEMBERS,
    
TOTAL_FACTION9_MEMBERS,
    
TOTAL_FACTION10_MEMBERS,
    
TOTAL_FACTION11_MEMBERS,
    
TOTAL_FACTION12_MEMBERS,
    
TOTAL_FACTION13_MEMBERS,
    
TOTAL_FACTION14_MEMBERS,
    
TOTAL_FACTION15_MEMBERS,
    
TOTAL_FACTION16_MEMBERS,
    
TOTAL_FACTION17_MEMBERS,
    
TOTAL_FACTION18_MEMBERS,
    
TOTAL_FACTION19_MEMBERS,
    
TOTAL_FACTION20_MEMBERS,
    
TOTAL_FACTION21_MEMBERS,
    
TOTAL_FACTION22_MEMBERS,
    
TOTAL_FACTION23_MEMBERS,
    
TOTAL_FACTION24_MEMBERS,
    
TOTAL_FACTION25_MEMBERS,
    
FactionInfo[1][FactionType],
    
FactionInfo[2][FactionType],
    
FactionInfo[3][FactionType],
    
FactionInfo[4][FactionType],
    
FactionInfo[5][FactionType],
    
FactionInfo[6][FactionType],
    
FactionInfo[7][FactionType],
    
FactionInfo[8][FactionType],
    
FactionInfo[9][FactionType],
    
FactionInfo[10][FactionType],
    
FactionInfo[11][FactionType],
    
FactionInfo[12][FactionType],
    
FactionInfo[13][FactionType],
    
FactionInfo[14][FactionType],
    
FactionInfo[15][FactionType],
    
FactionInfo[16][FactionType],
    
FactionInfo[17][FactionType],
    
FactionInfo[18][FactionType],
    
FactionInfo[19][FactionType],
    
FactionInfo[20][FactionType],
    
FactionInfo[21][FactionType],
    
FactionInfo[22][FactionType],
    
FactionInfo[23][FactionType],
    
FactionInfo[24][FactionType],
    
FactionInfo[25][FactionType],
                                                        
    
FactionRank[1][1],
    
FactionRank[1][2],
    
FactionRank[1][3],
    
FactionRank[1][4],
    
FactionRank[1][5],
    
FactionRank[1][6],
    
FactionRank[2][1],
    
FactionRank[2][2],
    
FactionRank[2][3],
    
FactionRank[2][4],
    
FactionRank[2][5],
    
FactionRank[2][6],
    
FactionRank[3][1],
    
FactionRank[3][2],
    
FactionRank[3][3],
    
FactionRank[3][4],
    
FactionRank[3][5],
    
FactionRank[3][6],
    
FactionRank[4][1],
    
FactionRank[4][2],
    
FactionRank[4][3],
    
FactionRank[4][4],
    
FactionRank[4][5],
    
FactionRank[4][6],
    
FactionRank[5][1],
    
FactionRank[5][2],
    
FactionRank[5][3],
    
FactionRank[5][4],
    
FactionRank[5][5],
    
FactionRank[5][6],
    
FactionRank[6][1],
    
FactionRank[6][2],
    
FactionRank[6][3],
    
FactionRank[6][4],
    
FactionRank[6][5],
    
FactionRank[6][6],
    
FactionRank[7][1],
    
FactionRank[7][2],
    
FactionRank[7][3],
    
FactionRank[7][4],
    
FactionRank[7][5],
    
FactionRank[7][6],
    
FactionRank[8][1],
    
FactionRank[8][2],
    
FactionRank[8][3],
    
FactionRank[8][4],
    
FactionRank[8][5],
    
FactionRank[8][6],
    
FactionRank[9][1],
    
FactionRank[9][2],
    
FactionRank[9][3],
    
FactionRank[9][4],
    
FactionRank[9][5],
    
FactionRank[9][6],
    
FactionRank[10][1],
    
FactionRank[10][2],
    
FactionRank[10][3],
    
FactionRank[10][4],
    
FactionRank[10][5],
    
FactionRank[10][6],
    
    
FactionRank[11][1],
    
FactionRank[11][2],
    
FactionRank[11][3],
    
FactionRank[11][4],
    
FactionRank[11][5],
    
FactionRank[11][6],
    
    
FactionRank[12][1],
    
FactionRank[12][2],
    
FactionRank[12][3],
    
FactionRank[12][4],
    
FactionRank[12][5],
    
FactionRank[12][6],
    
    
FactionRank[13][1],
    
FactionRank[13][2],
    
FactionRank[13][3],
    
FactionRank[13][4],
    
FactionRank[13][5],
    
FactionRank[13][6],
    
    
FactionRank[14][1],
    
FactionRank[14][2],
    
FactionRank[14][3],
    
FactionRank[14][4],
    
FactionRank[14][5],
    
FactionRank[14][6],
    
    
FactionRank[15][1],
    
FactionRank[15][2],
    
FactionRank[15][3],
    
FactionRank[15][4],
    
FactionRank[15][5],
    
FactionRank[15][6],
    
    
FactionRank[16][1],
    
FactionRank[16][2],
    
FactionRank[16][3],
    
FactionRank[16][4],
    
FactionRank[16][5],
    
FactionRank[16][6],
    
    
FactionRank[17][1],
    
Line 10075 FactionRank[17][2],
    
FactionRank[17][3],
    
FactionRank[17][4],
    
FactionRank[17][5],
    
FactionRank[17][6],
    
    
FactionRank[18][1],
    
FactionRank[18][2],
    
FactionRank[18][3],
    
FactionRank[18][4],
    
FactionRank[18][5],
    
FactionRank[18][6],
    
    
FactionRank[19][1],
    
FactionRank[19][2],
    
FactionRank[19][3],
    
FactionRank[19][4],
    
FactionRank[19][5],
    
FactionRank[19][6],
    
    
FactionRank[20][1],
    
FactionRank[20][2],
    
FactionRank[20][3],
    
FactionRank[20][4],
    
FactionRank[20][5],
    
FactionRank[20][6],
    
    
FactionRank[21][1],
    
FactionRank[21][2],
    
FactionRank[21][3],
    
FactionRank[21][4],
    
FactionRank[21][5],
    
FactionRank[21][6],
    
    
FactionRank[22][1],
    
FactionRank[22][2],
    
FactionRank[22][3],
    
FactionRank[22][4],
    
FactionRank[22][5],
    
FactionRank[22][6],
    
    
FactionRank[23][1],
    
FactionRank[23][2],
    
FactionRank[23][3],
    
FactionRank[23][4],
    
FactionRank[23][5],
    
FactionRank[23][6],
    
    
FactionRank[24][1],
    
FactionRank[24][2],
    
FactionRank[24][3],
    
FactionRank[24][4],
    
FactionRank[24][5],
    
FactionRank[24][6],
    
    
FactionRank[25][1],
    
FactionRank[25][2],
    
FactionRank[25][3],
    
FactionRank[25][4],
    
FactionRank[25][5],
    
FactionRank[25][6]);
    
    
    new 
Filefile2 fopen("factions.cfg"io_write);
    
fwrite(file2coordsstring);
    
fclose(file2);
    return 
1;

PHP код:
(9860 -- 10075) : fatal error 102table overflow"staging buffer" 
So.. What's wrong ?


Re: Error : Staging buffer over flow ? - park4bmx - 07.01.2013

with that kind of string size and that kind of long format what do you expect ?
Quote:

This forum requires that you wait 120 seconds between posts.

Hate that thing ;X


Re: Error : Staging buffer over flow ? - Black Axe - 07.01.2013

So.. How to fix ? xD


Re: Error : Staging buffer over flow ? - ikey07 - 07.01.2013

why you want to save whole faction info in one long string?

Save each faction in each row


Re: Error : Staging buffer over flow ? - Black Axe - 07.01.2013

Well.. Am still learning - So can you show me an example please ?