SA-MP Forums Archive
[Ajuda] Server nгo lк carros.txt - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Server nгo lк carros.txt (/showthread.php?tid=412973)



Server nгo lк carros.txt - GoldLion - 03.02.2013

ola pessoal, de um dia para outro meu server nгo le mais carros.txt n sei pq '-'

o codigo pra ler й esse, sempre funfo normal!
pawn Код:
new File:temp;
new index = 0;
new tmp[256];
new modelid, Float:X, Float:Y, Float:Z, Float:ang, Cor1, Cor2;
temp = fopen("carros.txt", io_readwrite);
while(fread(temp, tmp, sizeof(tmp), false)) {
index = 0;
modelid    = strval(strtok(tmp, index));
X          = Float:floatstr(strtok(tmp, index));
Y          = Float:floatstr(strtok(tmp, index));
Z          = Float:floatstr(strtok(tmp, index));
ang        = Float:floatstr(strtok(tmp, index));
Cor1       = strval(strtok(tmp, index));
Cor2       = strval(strtok(tmp, index));

cAddStaticVehicleEx(modelid, X, Y, Z, ang, Cor1, Cor2, 9999999999);
}



Re: Server nгo lк carros.txt - Maklister - 03.02.2013

cade o fopen ?


Re: Server nгo lк carros.txt - GoldLion - 03.02.2013

ta ali '-'