i want to read a sting from an file but i become the error:
Code:
Error: Number of arguments does not match definition on line 18
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("test", "0.1", "Deltachaos");
register_clcmd("say all","test",0,"");
}
public test(id)
{
set_hudmessage(255, 0, 0, -1.0, 0.9, 0, 6.0, 12.0, 2.0, 2.0, 4);
if(file_exists("addons/amxmodx/configs/msg.txt"))
{
new datei = fopen("addons/amxmodx/configs/msg.txt", "r");
new msg[1024] = fgets(datei);
show_hudmessage(id, msg);
}
}
dose anyone know why?
Code:
fgets
Core (file.inc) Description
fgets - Reads a short (2 bytes) from a file handle. Syntax
fgets ( file ) Type
Native Notes
This function is deprecated as of AMX Mod X Version 1.1.
and a 2. question - how i can send the message every 30 sec?