Raised This Month: $51 Target: $400
 12% 

Need help with motd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 06-27-2015 , 10:07   Need help with motd
Reply With Quote #1

Hi guys i have a question is it possible 4 example i make my motd.txt like this

PHP Code:
<html>
    <
body>
        <
form>
            <
input type="text" maxlength="30" /> //text input
            
<input type="submit" value="OK" />
        </
form>
    </
body>
</
html
i mean can i save the typed text from input to an array in amxx
PHP Code:
new array[50]; 
i dont know how to explain it better my english is terrible so if someone can understand me what i need help me
__________________

Last edited by Balck; 06-27-2015 at 10:08.
Balck is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-27-2015 , 10:24   Re: Need help with motd
Reply With Quote #2

No, you cannot directly access information in an MOTD from a plugin.
__________________
fysiks is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-27-2015 , 10:58   Re: Need help with motd
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
No, you cannot directly access information in an MOTD from a plugin.
You can if you parse the file.
__________________
HamletEagle is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-27-2015 , 12:07   Re: Need help with motd
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
You can if you parse the file.
Did you even read the question? He is trying to submit information via a form.
__________________
fysiks is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-27-2015 , 13:23   Re: Need help with motd
Reply With Quote #5

I read, but undestood that for some reasons he wans to get the content of a motd.
__________________
HamletEagle is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 06-30-2015 , 10:23   Re: Need help with motd
Reply With Quote #6

Is there another way to get the string that i typed in html i just want to get the string, its ok if it doesn't work with form but i will know is there any way to do this ?

Is it possible to save the string in a doc file .txt or somthing like that and than to open the file from amxx and put th string in an array ?
Sry for my bad english
__________________
Balck is offline
Kz1.0
Senior Member
Join Date: Jan 2013
Location: Vietnam
Old 06-30-2015 , 10:43   Re: Need help with motd
Reply With Quote #7

Quote:
Originally Posted by Balck View Post
Is there another way to get the string that i typed in html i just want to get the string, its ok if it doesn't work with form but i will know is there any way to do this ?

Is it possible to save the string in a doc file .txt or somthing like that and than to open the file from amxx and put th string in an array ?
Sry for my bad english
We can type in motd ?
I thought it just a static webpage
Kz1.0 is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 06-30-2015 , 10:52   Re: Need help with motd
Reply With Quote #8

Quote:
Originally Posted by Kz1.0 View Post
We can type in motd ?
I thought it just a static webpage
if i say we can type in motd u must know that i mean input or textarea but if u can't think it is not my problem
__________________
Balck is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-30-2015 , 21:11   Re: Need help with motd
Reply With Quote #9

You would be required to use a webserver hosted webpage for your MOTD. That would allow your webserver to process the form data. Then, you would have to get it into AMX Mod X in some manner (using the webserver via PHP Rcon or using AMX Mod X using sockets). Neither method will be trivial for someone who is not familiar with PHP or AMX Mod X fairly well.
__________________
fysiks is offline
Reply



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 10:23.


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