dFile with loops failed!
#1

When im using dFile system inside loop its compile the mod but the server fails to load.
Example:
PHP код:
for(new v=0;v<MAX_VEHICLES;v++)
{
   
dfile_Open(CarFile(v));
   
//Script comes here....
   
dfile_SaveFile();
   
dfile_CloseFile();

It can be use with loops?
Reply
#2

Uppp
Reply
#3

I don't know dfile but I suspect (if dfile isn't bugged) that the function CarFile(v) returns an invalid file. Do you really have like 2000 vehicle files? This is what I would read without knowing what CarFile(...) looks like.
Reply
#4

the same function worked with dini, so the problem is not with the function...
any ideas?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)