[Ajuda] Server nгo lк carros.txt
#1

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);
}
Reply
#2

cade o fopen ?
Reply
#3

ta ali '-'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)