- 0
problema la teritori
-
Similar Content
-
- 14 answers
- 263 views
-
- 7 answers
- 178 views
-
- 1 reply
- 58 views
-
- 2 replies
- 143 views
-
- 1 reply
- 173 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
radufabian9794
Salutare am incercat sa imi fac un sistem de war nu a dat nici o eroare pana am ajuns la teritori mai exact in momentul cand ar trebui sa le citeasca dintrun fisier.
Nu am erori sau ceva dar am 3 warrninguri si nu stiu ce sunt cu ele!
[pawn]
forward LoadTeritorii();
public LoadTeritorii()
{
new arrCoords[11][64];
new strFromFile2[256];
new File: file = fopen("teritori.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(TeritoriuInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, '|');
strmid(TeritoriuInfo[idx][tId], arrCoords[0], 0, strlen(arrCoords[0]), 255);
TeritoriuInfo[idx][tOwner] = floatstr(arrCoords[1]);//linia 192
TeritoriuInfo[idx][tOwned] = floatstr(arrCoords[2]);// linia 193
TeritoriuInfo[idx][tTime] = floatstr(arrCoords[3]);// linia194
TeritoriuInfo[idx][tPozX1] = floatstr(arrCoords[4]);
TeritoriuInfo[idx][tPozY1] = floatstr(arrCoords[5]);
TeritoriuInfo[idx][tPozX2] = floatstr(arrCoords[6]);
TeritoriuInfo[idx][tPozY2] = floatstr(arrCoords[7]);
TeritoriuInfo[idx][tPozX3] = floatstr(arrCoords[8]);
TeritoriuInfo[idx][tPozY3] = floatstr(arrCoords[9]);
TeritoriuInfo[idx][tPozZ3] = strval(arrCoords[10]);
idx++;
}
fclose(file);
}
return 1;
}
[/pawn]
Link to comment
Share on other sites
2 answers to this question
Recommended Posts