Raised This Month: $ Target: $400
 0% 

How do you read something from a file. Ini?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CsIosefin
Senior Member
Join Date: Aug 2009
Old 05-02-2010 , 17:46   How do you read something from a file. Ini?
Reply With Quote #1

Code:
#include <amxmodx>

public plugin_init()
{
    register_plugin("Auto-Messages", "1.0", "Team")
    
    register_dictionary("addons/amxmodx/configs/messages.ini")
    set_task(7.5, "Hud", _, _, _, "b")
    set_task(15.0, "Chat", _, _, _, "b")
}

public Chat(id, level, cid)
{
    client_print(0, print_chat, "%s", "Messages")
}
public Hud(id, level, cid)
{
    set_hudmessage(random(255), random(255), random(255), -1.0, 0.08, random_num(0, 2), 0.02, 6.0, 0.01, 0.1, 2)
    show_hudmessage(0, "%s", "Messages")
}
I want to do a self-messages, he read what was in messages.ini? How can I, as it did not even know it's never so interested ...
Messages.ini file is in addons / amxmodx / configs /
CsIosefin 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 03:35.


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