well i have a problem with INT i am trying to create biznises but i have a problem with the int i have this
Код:
public LoadBizz()
{
new arrCoords[19][64];
new strFromFile2[256];
new File: file = fopen("bizz.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(BizzInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, '|');
BizzInfo[idx][bOwned] = strval(arrCoords[0]);
strmid(BizzInfo[idx][bOwner], arrCoords[1], 0, strlen(arrCoords[1]), 255);
strmid(BizzInfo[idx][bMessage], arrCoords[2], 0, strlen(arrCoords[2]), 255);
BizzInfo[idx][bEntranceX] = floatstr(arrCoords[3]);
BizzInfo[idx][bEntranceY] = floatstr(arrCoords[4]);
BizzInfo[idx][bEntranceZ] = floatstr(arrCoords[5]);
BizzInfo[idx][bExitX] = floatstr(arrCoords[6]);
BizzInfo[idx][bExitY] = floatstr(arrCoords[7]);
BizzInfo[idx][bExitZ] = floatstr(arrCoords[8]);
BizzInfo[idx][bLevelNeeded] = strval(arrCoords[9]);
BizzInfo[idx][bBuyPrice] = strval(arrCoords[10]);
BizzInfo[idx][bEntranceCost] = strval(arrCoords[11]);
BizzInfo[idx][bTill] = strval(arrCoords[12]);
BizzInfo[idx][bLocked] = strval(arrCoords[13]);
BizzInfo[idx][bInterior] = strval(arrCoords[14]);
BizzInfo[idx][bProducts] = strval(arrCoords[15]);
BizzInfo[idx][bMaxProducts] = strval(arrCoords[16]);
BizzInfo[idx][bPriceProd] = strval(arrCoords[17]);
printf("BizzInfo:%d Owner:%s Message:%s Entfee:%d Till:%d Products:%d/%d Interior:%d.\n",
idx,
BizzInfo[idx][bOwner],
BizzInfo[idx][bMessage],
BizzInfo[idx][bEntranceCost],
BizzInfo[idx][bTill],
BizzInfo[idx][bProducts],
BizzInfo[idx][bMaxProducts],
BizzInfo[idx][bInterior]);
idx++;
}
fclose(file);
}
return 1;
}
when i edit the int number in the bizz.cfg and run it it works but when i buy the bizz and enter it it gives me a interior i never heard off how can i make it go to the exact int?? is there an include or something to help me also
When i turn the server off and turn it back on the bizz disapear and when i check the bizz.cfg all coords there all change