File problem, Crash Server
#1

PHP код:
stock LoadFile() 
{
new 
arrCoords[3][64];
new 
strFromFile2[256];
new 
Filefile fopen("file.ini"io_read);
if(!
file

fcreate("file.ini"); 
}
if(
file)
{
fread(filestrFromFile2);
split(strFromFile2arrCoords',');
var0strvalEx(arrCoords[0]);
var1strvalEx(arrCoords[1]);
var2strvalEx(arrCoords[2]);
var3strvalEx(arrCoords[3]);
fclose(file); 

return 
1

The file exist in scriptfiles, why my Server crash? Please help me!
Reply
#2

I'm sorry, but how?
Thanks!
Reply
#3

Right click, Properties (in Windows, home server...) or File Permissions (in FileZilla)
Reply
#4

I not understand... right click on samp-server.exe?
(I don't use filezille, i do hosting in locate on my pc)
Reply
#5

I suggest you to do:
pawn Код:
fopen("file.inc", io_append); //io_append means it creates the file if it's not created
Under that, execute 'fread'. Hope that works!
Reply
#6

nothing
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)