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

Solved Need help in Motd i think convert to Formatex


Post New Thread Reply   
 
Thread Tools Display Modes
JusTGo
Veteran Member
Join Date: Mar 2013
Old 03-23-2017 , 05:55   Re: Need help in Motd i think convert to Formatex
Reply With Quote #11

Quote:
Originally Posted by shehzad1234 View Post
lol bro your code have error

Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// gt_test.sma
// D:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\gt_test.
sma(22) : error 017: undefined symbol "fmt"
//
// 1 Error.
// Could not locate output file D:\Steam\steamapps\common\Half-Life\cstrike\addo
ns\amxmodx\scripting\compiled\gt_test.amx (compile failed).
//
// Compilation Time: 0.94 sec
// ----------------------------------------

Press enter to exit ...
use that code only if you have amx 1.8.3
__________________
JusTGo is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 03-23-2017 , 06:19   Re: Need help in Motd i think convert to Formatex
Reply With Quote #12

Quote:
Originally Posted by JusTGo View Post
use that code only if you have amx 1.8.3
bro i m test this on amx 1.8.3 but giveing same error :p
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
JusTGo
Veteran Member
Join Date: Mar 2013
Old 03-23-2017 , 06:33   Re: Need help in Motd i think convert to Formatex
Reply With Quote #13

Quote:
Originally Posted by shehzad1234 View Post
bro i m test this on amx 1.8.3 but giveing same error :p
check you compiler version, mayby you are compiling with amx 1.8.2 compiler. if not make sure you use the latest amx 1.8.3 or at least the version that included the fmt native.
__________________

Last edited by JusTGo; 03-23-2017 at 06:34.
JusTGo is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 03-23-2017 , 06:36   Re: Need help in Motd i think convert to Formatex
Reply With Quote #14

Quote:
Originally Posted by JusTGo View Post
check you compiler version, mayby you are compiling with amx 1.8.2 compiler. if not make sure you use the latest amx 1.8.3 or at least the version that included the fmt native.
check bro

Code:
AMX Mod X Compiler 1.8.3-dev+4739
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Error: Undefined symbol "fmt" on line 22

1 Error.
Could not locate output file C:\Users\shehzad\Desktop\my plugin\gt_test.amx (compile failed).
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
JusTGo
Veteran Member
Join Date: Mar 2013
Old 03-23-2017 , 06:58   Re: Need help in Motd i think convert to Formatex
Reply With Quote #15

Quote:
Originally Posted by shehzad1234 View Post
check bro

Code:
AMX Mod X Compiler 1.8.3-dev+4739
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Error: Undefined symbol "fmt" on line 22

1 Error.
Could not locate output file C:\Users\shehzad\Desktop\my plugin\gt_test.amx (compile failed).
thats not the lastest version, update from here http://www.amxmodx.org/snapshots.php
__________________
JusTGo is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 03-23-2017 , 08:12   Re: Need help in Motd i think convert to Formatex
Reply With Quote #16

Quote:
Originally Posted by JusTGo View Post
thats not the lastest version, update from here http://www.amxmodx.org/snapshots.php
oh thanks bro its not working #solved
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-23-2017 , 08:31   Re: Need help in Motd i think convert to Formatex
Reply With Quote #17

i know you said #solved, but if it is not then try this code :
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)
{
    new 
Temp[64];
    
formatex(Tempcharsmax(Temp), "http://www.gametracker.com/server_info/%s"g_Ip)
    
show_motd(idTemp"GameTracker")

__________________
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-23-2017 at 08:59.
yas17sin is offline
Send a message via ICQ to yas17sin
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-23-2017 , 08:39   Re: Need help in Motd i think convert to Formatex
Reply With Quote #18

PHP Code:
new Temp[32
Does it look like that "http://www.gametracker.com/server_info/%s" has only 32 characters?
__________________

Last edited by OciXCrom; 03-23-2017 at 08:39.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 03-23-2017 , 08:41   Re: Need help in Motd i think convert to Formatex
Reply With Quote #19

Quote:
Originally Posted by OciXCrom View Post
PHP Code:
new Temp[32
Does it look like that "http://www.gametracker.com/server_info/%s" has only 32 characters?
so if i count it it's 41 characters, the %s count too.
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality
yas17sin is offline
Send a message via ICQ to yas17sin
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-23-2017 , 08:56   Re: Need help in Motd i think convert to Formatex
Reply With Quote #20

Raw text = 39 (+1 if https)
%s = ip = 21 max

39 + 1 + 21 = 61 + 1 = 62

... Just make it 64 and don't worry about it.
__________________

Last edited by OciXCrom; 03-23-2017 at 09:04.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 07:45.


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