[Ajuda] Server caindo
#8

Vб atй a linha do cуdigo com problema na callback cmd_editarlinha1 e corrija o cуdigo para verificar se a abertura do arquivo foi realizada com sucesso.

Код:
// Open "file.txt" in "append only" mode
new File:handle = fopen("file.txt", io_append);
 
// Check, if file is open
if(handle)
{
	// Success
 
	// Write "Hi there!" into the file
	fwrite(handle, "Hi there!");
 
	// Close the file
	fclose(handle);
}
else
{
	// Error
	print("Failed to open file \"file.txt\".");
}
A utilizaзгo correta seria afim de prevenir problemas com crashes seria como descrito no Wiki.
https://sampwiki.blast.hk/wiki/Fclose

No caso, vocк deveria verificar se o arquivo aberto na callback mencionada estб criado corretamente na pasta scriptfiles e seus derivados.
Reply


Messages In This Thread
Server caindo - by R3connect - 24.07.2017, 20:26
Re: Server caindo - by testi_man - 24.07.2017, 20:45
Re: Server caindo - by R3connect - 24.07.2017, 21:12
Re: Server caindo - by Lucs325 - 24.07.2017, 22:01
Re: Server caindo - by R3connect - 24.07.2017, 22:15
Re: Server caindo - by RDM - 24.07.2017, 22:49
Re: Server caindo - by R3connect - 24.07.2017, 23:24
Re: Server caindo - by connork - 24.07.2017, 23:41
Re: Server caindo - by IlanZ - 24.07.2017, 23:54

Forum Jump:


Users browsing this thread: 3 Guest(s)