Raised This Month: $ Target: $400
 0% 

Motd help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 06-24-2012 , 09:59   Re: Motd help
Reply With Quote #4

Quote:
Originally Posted by Artifact View Post
How to put something in motd when I write this in plugin_init?
sorry for english, here is example
PHP Code:
plugin_init()
{
register_clcmd("test""wow")
new 
Someeeething[][] {
"something1",
"something2",
"something3"
}
}

public 
wow(id)
{
show_motd(id,.....)

And I dont know how to include this 3 something in motd when someone type test
I'm not sure about this, as I never tried the motd....
anyway I will give it a shot:
Code:
new Someeeething[][] = { "something1", "something2", "something3" } public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say test", "wow") } public wow(id) {     new xD[128]     format(xD, charsmax(xD), "%s %s %s", Someeeething[0], Someeeething[1], Someeeething[2])      // Fixed thanks to <Veco>     show_motd(id, xD, "TEST") }
EDIT: I's not working, it only shows two characters.
EDIT2: Fixed, thanks to <Veco>!
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.

Last edited by pokemonmaster; 06-24-2012 at 10:27.
pokemonmaster 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 06:07.


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