[pomoc]Stanovi

Započeo Nemanja King, Avgust 22, 2011, 17:48:33 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:BU
Detaljan opis problema:Ugodio sam da moze da se kupi stan,kada kupim stan i uradim restart servera i ponovo udjem ono mi ne sacuva..pa da li bih neko mogao da mi pomogne zasto ne sacuva stan.
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Kontakt
Skype nemanja.lazarevic.567
XFire kingsamp
Mystic World Community
Server Address 176.104.106.8 :5555

Dio Skirpte : ?
daj kak osi napravi oda sprema pa cemo vidit gdje je problem...

public LoadStanovi()
{
new arrCoords[29][64];
new strFromFile2[256];
new File: file = fopen("cfg/stanovi.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(StanInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
StanInfo[idx][hoEntrancex] = floatstr(arrCoords[0]);
StanInfo[idx][hoEntrancey] = floatstr(arrCoords[1]);
StanInfo[idx][hoEntrancez] = floatstr(arrCoords[2]);
StanInfo[idx][hoExitx] = floatstr(arrCoords[3]);
StanInfo[idx][hoExity] = floatstr(arrCoords[4]);
StanInfo[idx][hoExitz] = floatstr(arrCoords[5]);
StanInfo[idx][hoHealthx] = strval(arrCoords[6]);
StanInfo[idx][hoHealthy] = strval(arrCoords[7]);
StanInfo[idx][hoHealthz] = strval(arrCoords[8]);
StanInfo[idx][hoArmourx] = strval(arrCoords[9]);
StanInfo[idx][hoArmoury] = strval(arrCoords[10]);
StanInfo[idx][hoArmourz] = strval(arrCoords[11]);
//printf("HouseInfo hEntrancez %f",HouseInfo[idx][hEntrancez]);
strmid(StanInfo[idx][hoOwner], arrCoords[12], 0, strlen(arrCoords[12]), 255);
strmid(StanInfo[idx][hoDiscription], arrCoords[13], 0, strlen(arrCoords[13]), 255);
StanInfo[idx][hoValue] = strval(arrCoords[14]);
StanInfo[idx][hoHel] = strval(arrCoords[15]);
StanInfo[idx][hoArm] = strval(arrCoords[16]);
StanInfo[idx][hoInt] = strval(arrCoords[17]);
StanInfo[idx][hoLock] = strval(arrCoords[18]);
StanInfo[idx][hoOwned] = strval(arrCoords[19]);
StanInfo[idx][hoRooms] = strval(arrCoords[20]);
StanInfo[idx][hoRent] = strval(arrCoords[21]);
StanInfo[idx][hoRentabil] = strval(arrCoords[22]);
StanInfo[idx][hoTakings] = strval(arrCoords[23]);
StanInfo[idx][hoVcol1] = strval(arrCoords[24]);
StanInfo[idx][hoVcol2] = strval(arrCoords[25]);
StanInfo[idx][hoDate] = strval(arrCoords[26]);
StanInfo[idx][hoLevel] = strval(arrCoords[27]);
StanInfo[idx][hoWorld] = strval(arrCoords[28]);
printf("StanInfo:%d Vlasnik:%s hoTakings %d ",idx,StanInfo[idx][hoOwner],StanInfo[idx][hoTakings]);
idx++;
}
fclose(file);
}
return 1;
}

Kontakt
Skype nemanja.lazarevic.567
XFire kingsamp
Mystic World Community
Server Address 176.104.106.8 :5555