07.05.2015, 17:36
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:
@OnPlayerDisconnect (saving problem):
@Errors:
++ Here is my @LoadBusinesses stock. If you could take a view if i am doing something wrong.
Thanks for your support!
My problem is saving businesses.
Here is my enum:
PHP код:
enum bInfo
{
Name[128],
Owner[MAX_PLAYER_NAME],
Float: Pozicija[3],
Float: Interijer[10],
Zakljucan,
Cijena,
PickupID,
Text3D: LabelID
};
new BiznisInfo[MAX_BIZNISA][bInfo];
PHP код:
// Informacije - Spremanje BIZNIS podataka
new INI:bFile = INI_Open(BiznisPath(playerid));
INI_SetTag(bFile,"data");
for(new i = 0; i != MAX_BIZNISA; i++)
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]);
PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1694) : error 017: undefined symbol "i"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1695) : error 017: undefined symbol "i"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1696) : error 017: undefined symbol "i"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1697) : error 017: undefined symbol "i"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1698) : error 017: undefined symbol "i"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1699) : error 017: undefined symbol "i"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1700) : error 017: undefined symbol "i"
PHP код:
stock LoadBiznis_data(playerid,name[],value[])
{
for(new i = 0; i != MAX_BIZNISA; i++)
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;
}