Raised This Month: $ Target: $400
 0% 

I need help with a noob thing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
UberStrike
Junior Member
Join Date: Nov 2007
Old 11-24-2007 , 16:42   I need help with a noob thing
Reply With Quote #1

trying to make a motd pop-up from scratch.. meh..

Code:
public plugin_int()
{
    register_concmd("say test","rules")
}
public rules(id)
{
    new allinfo[1023]
    format(allinfo,1022,"Rules are here but this is example")
    show_motd(id,allinfo,"Test")
}
            }
        }
    }
    return PLUGIN_HANDLED
}
UberStrike is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-24-2007 , 16:58   Re: I need help with a noob thing
Reply With Quote #2

Code:
public plugin_init() // plugin_init, not plugin_int() {     register_plugin("Rules", "0.1", "UberStrike") //register your plugin     register_concmd("say test", "rules") // this is good } public rules(id) {     new len = 1023  // this will allow you to add lines to your motd     new allinfo[1024]     new n = 0       // this is the current lengh of the motd     //current lenght is n=0, so start format at 0 (allinfo[n])     //len - n is what the still avaible lenght     n += formatex(allinfo[n], len - n, "Rules are here but this is example")     //we have just add above sentence lengh to n         //current lenght is now something like n=32     n += formatex(allinfo[n], len - n, "1. Here the first rule")     n += formatex(allinfo[n], len - n, "2. Here the second rule")     show_motd(id, allinfo, "Test")         return PLUGIN_HANDLED }
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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:14.


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