Raised This Month: $ Target: $400
 0% 

How to load this ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
grs4
Senior Member
Join Date: Dec 2010
Location: Poland
Old 08-25-2012 , 13:27   Re: How to load this ?
Reply With Quote #2

OK its work, but if load data duplicate name i.e:
1. Glock Master[3/5][3000 exp]
2. Usp Master[2/5][3000 exp]
3. Usp Master[2/5][3000 exp] // must be P228 Master[0/5][3100 exp]
4. Deagle Master[4/5][3500 exp]
5. Deagle Master[4/5][3500 exp] // must be Elite Master[1/5][3100 exp]
6. Fiveseven Master[0/5][3500 exp]

This is currently load:
PHP Code:
//Save
public ZapiszI(id)
{
    new 
nick[33], dane[500], szTemp[25]
    
get_user_name(idnick32)
    for(new 
1<= liczba_achIi++)
    {
        if(
== 1)
            
formatex(szTemp24"%d %d"status_achI[id][i], postep_achI[id][i])
        else 
            
formatex(szTemp24" %d %d"status_achI[id][i], postep_achI[id][i])
        
add(dane499szTemp)
    }
    
ZapiszDane(plikInickdane)
}

// Load
public WczytajI(id)
{
    new 
nick[33], dane[500]
    
get_user_name(idnick32)
    
WczytajDane(plikInickdane499)
    
    
remove_quotes(dane)

    new 
wartosc[MAX_ACHIEVEMENTS+1][15]
    
    
explode(dane' 'wartoscMAX_ACHIEVEMENTS+114)
    
    for(new 
0<= liczba_achIi++)
    {
        if(
== 0)
            
status_achI[id][1] = str_to_num(wartosc[i]) // 0 
        
else if(!= 0)
            
status_achI[id][i+1] = str_to_num(wartosc[i+1]) // 2, 4, 6, 8 itd...
    
}
    new 
j;
    for(new 
0<= liczba_achIi++)
    {
        if(
== 0)
            
postep_achI[id][1] = str_to_num(wartosc[1]) // 1
        
else if(!= 0) {
            
j+=2;
            
postep_achI[id][i+1] = str_to_num(wartosc[j+1]); // 3, 5, 7...    
        
}
    }
    
0

grs4 is offline
 



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

Forum Jump


All times are GMT -4. The time now is 05:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode