saving system crashes
#1

So, My saving system crashes the server every time its toggled, what is wrong here:

pawn Код:
forward save2();
public save2()
{
    format(file3,sizeof(file3), "realityrp/gcom.ini");
    format(file9,sizeof(file9),"realityrp/vehicles/Vindex.ini");
    dini_IntSet(file3, "gowned", gcom[gowned]);
    dini_IntSet(file3, "gbank", gcom[gbank]);
    for(new b = 0; b < sizeof(BizzInfo); b++)
    {
        format(file2, sizeof(file2),"realityrp/bizzes/%d.ini", b);
        dini_IntSet(file2, "bforsale", BizzInfo[b][bforsale]);
        dini_IntSet(file2, "Bvalue", BizzInfo[b][Bvalue]);
        dini_IntSet(file2, "bbank", BizzInfo[b][bbank]);
        dini_IntSet(file2, "customers", BizzInfo[b][customers]);
        dini_IntSet(file2, "bprods", BizzInfo[b][bprods]);
        dini_IntSet(file2, "bopen", BizzInfo[b][bopen]);
        }
    dini_IntSet(file9, "topnumber",Index[topnumber]);
    dini_IntSet(file9, "topbnumber", Index[topbnumber]);
    for(new h = 0; h < sizeof(House); h++)
    {
    format(file5, sizeof(file5),"realityrp/houses/%d.ini", h);
    {
        dini_IntSet(file5, "hforsale",House[h][hforsale]);
        dini_IntSet(file5, "hprice",House[h][hprice]);
        dini_IntSet(file5, "howner",House[h][howner]);
        dini_IntSet(file5, "hlocked",House[h][hlocked]);
        dini_IntSet(file5, "Setted",House[h][Setted]);
    }
    }
    return 1;
}
Reply
#2

Checked all the files exist? Check the define/text replacements aren't miss-spelt too.
Reply
#3

everthing exists,
All defines are good aswell
Reply
#4

PHP код:
forward save2();
public 
save2()
{
    
format(file3,sizeof(file3), "realityrp/gcom.ini");
    
format(file9,sizeof(file9),"realityrp/vehicles/Vindex.ini");
    
dini_IntSet(file3"gowned"gcom[gowned]);
    
dini_IntSet(file3"gbank"gcom[gbank]);
    for(new 
0sizeof(BizzInfo); b++)
    {
        
format(file2sizeof(file2),"realityrp/bizzes/%d.ini"b);
        
dini_IntSet(file2"bforsale"BizzInfo[b][bforsale]);
        
dini_IntSet(file2"Bvalue"BizzInfo[b][Bvalue]);
        
dini_IntSet(file2"bbank"BizzInfo[b][bbank]);
        
dini_IntSet(file2"customers"BizzInfo[b][customers]);
        
dini_IntSet(file2"bprods"BizzInfo[b][bprods]);
        
dini_IntSet(file2"bopen"BizzInfo[b][bopen]);
        }
    
dini_IntSet(file9"topnumber",Index[topnumber]);
    
dini_IntSet(file9"topbnumber"Index[topbnumber]);
    for(new 
0sizeof(House); h++)
    {
    
format(file5sizeof(file5),"realityrp/houses/%d.ini"h);
    {
        
dini_IntSet(file5"hforsale",House[h][hforsale]);
        
dini_IntSet(file5"hprice",House[h][hprice]);
        
dini_IntSet(file5"howner",House[h][howner]);
        
dini_IntSet(file5"hlocked",House[h][hlocked]);
        
dini_IntSet(file5"Setted",House[h][Setted]);
    }
    return 
1;

Reply
#5

Quote:
Originally Posted by boyan96
Посмотреть сообщение
PHP код:
forward save2();
public 
save2()
{
    
format(file3,sizeof(file3), "realityrp/gcom.ini");
    
format(file9,sizeof(file9),"realityrp/vehicles/Vindex.ini");
    
dini_IntSet(file3"gowned"gcom[gowned]);
    
dini_IntSet(file3"gbank"gcom[gbank]);
    for(new 
0sizeof(BizzInfo); b++)
    {
        
format(file2sizeof(file2),"realityrp/bizzes/%d.ini"b);
        
dini_IntSet(file2"bforsale"BizzInfo[b][bforsale]);
        
dini_IntSet(file2"Bvalue"BizzInfo[b][Bvalue]);
        
dini_IntSet(file2"bbank"BizzInfo[b][bbank]);
        
dini_IntSet(file2"customers"BizzInfo[b][customers]);
        
dini_IntSet(file2"bprods"BizzInfo[b][bprods]);
        
dini_IntSet(file2"bopen"BizzInfo[b][bopen]);
        }
    
dini_IntSet(file9"topnumber",Index[topnumber]);
    
dini_IntSet(file9"topbnumber"Index[topbnumber]);
    for(new 
0sizeof(House); h++)
    {
    
format(file5sizeof(file5),"realityrp/houses/%d.ini"h);
    {
        
dini_IntSet(file5"hforsale",House[h][hforsale]);
        
dini_IntSet(file5"hprice",House[h][hprice]);
        
dini_IntSet(file5"howner",House[h][howner]);
        
dini_IntSet(file5"hlocked",House[h][hlocked]);
        
dini_IntSet(file5"Setted",House[h][Setted]);
    }
    return 
1;

whats the difference?

EDIT: this one misses a bracelet
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)