Businesses
#1

Hey guys. I made similar thread 2-3 weeks ago and nobody give a reply. I can't find it to do some 'bump' so I made this "similar" post again.

My problem is saving businesses.

Here is my enum:

PHP код:
enum bInfo
{
    
Name[128],
    
Owner[MAX_PLAYER_NAME],
    
FloatPozicija[3],
    
FloatInterijer[10],
    
Zakljucan,
    
Cijena,
    
PickupID,
    
Text3DLabelID
};
new 
BiznisInfo[MAX_BIZNISA][bInfo]; 
@OnPlayerDisconnect (saving problem):

PHP код:
    // Informacije - Spremanje BIZNIS podataka
    
new INI:bFile INI_Open(BiznisPath(playerid));
    
INI_SetTag(bFile,"data");
    for(new 
0!= MAX_BIZNISAi++)
    
INI_WriteString(bFile,"Ime",BiznisInfo[i][Name]);
    
INI_WriteString(bFile,"Owner",BiznisInfo[i][Owner]);
    
INI_WriteInt(bFile,"Pozicija",BiznisInfo[i][Pozicija]);
    
INI_WriteInt(bFile,"Interijer",BiznisInfo[i][Interijer]);
    
INI_WriteString(bFile,"Zakljucan",BiznisInfo[i][Zakljucan]);
     
INI_WriteInt(bFile,"Cijena",BiznisInfo[i][Cijena]);
     
INI_WriteInt(bFile,"PickupID",BiznisInfo[i][PickupID]);
     
INI_WriteInt(bFile,"LabelID",BiznisInfo[i][LabelID]); 
@Errors:

PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1694) : error 017undefined symbol "i"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1695) : error 017undefined symbol "i"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1696) : error 017undefined symbol "i"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1697) : error 017undefined symbol "i"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1698) : error 017undefined symbol "i"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1699) : error 017undefined symbol "i"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1700) : error 017undefined symbol "i" 
++ Here is my @LoadBusinesses stock. If you could take a view if i am doing something wrong.

PHP код:
stock LoadBiznis_data(playerid,name[],value[])
{
    for(new 
0!= MAX_BIZNISAi++)
    
INI_Int("Ime",BiznisInfo[i][Name]);
    
INI_Int("Owner",BiznisInfo[i][Owner]);
    
INI_Int("Pozicija",BiznisInfo[i][Pozicija]);
    
INI_Int("Interijer",BiznisInfo[i][Interijer]);
    
INI_Int("Zakljucan",BiznisInfo[i][Zakljucan]);
     
INI_Int("Cijena",BiznisInfo[i][Cijena]);
     
INI_Int("PickupID",BiznisInfo[i][PickupID]);
     
INI_Int("LabelID",BiznisInfo[i][LabelID]);
     return 
1;

Thanks for your support!
Reply


Messages In This Thread
Businesses - by NoDi522 - 07.05.2015, 17:36
Re: Businesses - by ]Rafaellos[ - 07.05.2015, 17:43
Re: Businesses - by NoDi522 - 07.05.2015, 17:49
Re: Businesses - by ]Rafaellos[ - 07.05.2015, 17:52
Re: Businesses - by Konstantinos - 07.05.2015, 17:55
Re: Businesses - by NoDi522 - 07.05.2015, 18:01
Re: Businesses - by rappy93 - 07.05.2015, 18:23
Re: Businesses - by NoDi522 - 07.05.2015, 18:36

Forum Jump:


Users browsing this thread: 4 Guest(s)