Raised This Month: $ Target: $400
 0% 

Display a HUD message from a file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
redplug
Junior Member
Join Date: Jan 2009
Old 01-30-2009 , 10:50   Display a HUD message from a file
Reply With Quote #1

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(25500, -1.00.906.012.02.02.04);
         if(
file_exists("addons/amxmodx/configs/msg.txt"))
      {
      new 
datei fopen("addons/amxmodx/configs/msg.txt""r");
      new 
msg[1024] = fgets(datei);
      
show_hudmessage(idmsg);
      }


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?
redplug is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode