Raised This Month: $ Target: $400
 0% 

Solved Need help in Motd i think convert to Formatex


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 03-22-2017 , 07:03   Need help in Motd i think convert to Formatex
Reply With Quote #1

Hey Friends

i need your help i want i transfer same file in other server then gametracker open hi server ip example 1st time this file on this ip 1.1.10.11.1:111 then show like http://www.gametracker.com/server_info/1.1.10.11.1:111
and i transfer this file in other server same server copy current sv ip i think need Formatex


Sorry For My bad English

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Test plugin by shehzad"
#define VERSION "1.0"
#define AUTHOR "Muhammad shehzad"

new IP[19

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd"say /test""TestMotd");
    
    
// Add your code here...
}
public 
TestMotd(id)
{
    
get_user_ip(0IPcharsmax(IP)) 
    
show_motd(id"http://www.gametracker.com/server_info/%s""GameTracker"ip)

Errors :-

HTML Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Number of arguments does not match definition on line 21

1 Error.
Could not locate output file C:\Users\shehzad\Desktop\my plugin\Untitled.amx (compile failed).

Last edited by shehzad1234; 03-23-2017 at 08:12. Reason: Solved Prefix :)
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 03-22-2017 , 07:27   Re: Need help in Motd i think convert to Formatex
Reply With Quote #2

this ? :
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Test plugin by shehzad"
#define VERSION "1.0"
#define AUTHOR "Muhammad shehzad"

new g_Ip[25];

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd"say /test""TestMotd");
    
    
get_user_ip(0g_Ipcharsmax(g_Ip));
    
    
// Add your code here...
}
public 
TestMotd(id)
{
    
show_motd(id"http://www.gametracker.com/server_info/%s"g_Ip)

__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality

Last edited by yas17sin; 03-22-2017 at 07:29.
yas17sin is offline
Send a message via ICQ to yas17sin
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 03-22-2017 , 07:34   Re: Need help in Motd i think convert to Formatex
Reply With Quote #3

Quote:
Originally Posted by yas17sin View Post
this ? :
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Test plugin by shehzad"
#define VERSION "1.0"
#define AUTHOR "Muhammad shehzad"

new g_Ip[25];

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd"say /test""TestMotd");
    
    
get_user_ip(0g_Ipcharsmax(g_Ip));
    
    
// Add your code here...
}
public 
TestMotd(id)
{
    
show_motd(id"http://www.gametracker.com/server_info/%s"g_Ip)

no bro i need motd title and g_IP Motd Titile is GameTracker and g_Ip for Server Ip
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 03-22-2017 , 07:35   Re: Need help in Motd i think convert to Formatex
Reply With Quote #4

like change this show_motd to formatex
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 03-22-2017 , 08:17   Re: Need help in Motd i think convert to Formatex
Reply With Quote #5

here see this and take exapmle : https://forums.alliedmods.net/showpo...71&postcount=1

just search.
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality

Last edited by yas17sin; 03-22-2017 at 08:18.
yas17sin is offline
Send a message via ICQ to yas17sin
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 03-22-2017 , 11:55   Re: Need help in Motd i think convert to Formatex
Reply With Quote #6

can u add on my code pleasE?
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 03-22-2017 , 12:10   Re: Need help in Motd i think convert to Formatex
Reply With Quote #7

PHP Code:
new link[128];
formatex(linkcharsmax(link), "http://www.gametracker.com/server_info/%s"ip);
show_motd(idlink"GameTracker"
KiLLeR. is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 03-22-2017 , 14:22   Re: Need help in Motd i think convert to Formatex
Reply With Quote #8

Quote:
Originally Posted by KiLLeR. View Post
PHP Code:
new link[128];
formatex(linkcharsmax(link), "http://www.gametracker.com/server_info/%s"ip);
show_motd(idlink"GameTracker"
thanks! bro its 100% working
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
Old 03-22-2017, 12:16
yas17sin
This message has been deleted by yas17sin. Reason: nvm, i am too slow.
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 03-22-2017 , 17:47   Re: Need help in Motd i think convert to Formatex
Reply With Quote #10

PHP Code:
show_motd(idfmt("http://www.gametracker.com/server_info/%s"ip), "GameTracker"
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
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 17:54.


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