Raised This Month: $115 Target: $400
 28% 

AMXX Chat Relay [Discord <=> Ingame]


Post New Thread Reply   
 
Thread Tools Display Modes
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 09-10-2019 , 12:05   Re: AMXX Chat Relay [Discord <=> Ingame]
Reply With Quote #11

Code:
Format specifier
Specifier 	Description
%b 	Binary digits in the value
%n 	Requires a client index. Expands to a string containing the player's name.
If the client index is 0, the string will be: Console
%N 	Requires a client index. Expands to 1<2><3><4> where 1 is the player's name, 2 is the player's userid, 3 is the player's SteamID, and 4 the player's team name.
If the client index is 0, the string will be: Console<0><Console><Console>
%l 	Translates a phrase from a key. Similar to %L with the difference it will use the client's index set internally by the function.
This is only allowed in functions which act directly on one or more clients.
Note:To complement this, a new ⇅ SetGlobalTransTarget native to set the current index has been added.
This is useful to be used before with natives which are not player-oriented", like a bunch of formatex.
PHP Code:
formatex(sMessageMAX_COMMAND_LENGTH"\*\*\* %n killed %n with a headshot from %s \*\*\*"killervictimsWpnName);
}
else
{
formatex(sMessageMAX_COMMAND_LENGTH"%n killed %n with %s"killervictimsWpnName); 
__________________
iceeedr is offline
Send a message via Skype™ to iceeedr
endnch
Junior Member
Join Date: Sep 2019
Old 09-10-2019 , 12:08   Re: AMXX Chat Relay [Discord <=> Ingame]
Reply With Quote #12

Yeah I was just looking into that, will try to use the %n specifier.

Edit: Done.

Last edited by endnch; 09-10-2019 at 12:58.
endnch is offline
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Some Where On Earth
Old 09-11-2019 , 15:45   Re: AMXX Chat Relay [Discord <=> Ingame]
Reply With Quote #13

1.10 is to ahead, 1.90 would had been appreciated, even the latest [5249] will also be considered great.
__________________
Alber9091 is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 09-11-2019 , 15:53   Re: AMXX Chat Relay [Discord <=> Ingame]
Reply With Quote #14

MAX_NAME_LENGTH is already set by default in amx 1.9+
__________________
iceeedr is offline
Send a message via Skype™ to iceeedr
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Some Where On Earth
Old 09-11-2019 , 16:31   Re: AMXX Chat Relay [Discord <=> Ingame]
Reply With Quote #15

Quote:
Originally Posted by iceeedr View Post
MAX_NAME_LENGTH is already set by default in amx 1.9+
I haven't seen plugin, but Aurthor in post mentioned Requirement AMXX 1.10
__________________
Alber9091 is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 09-11-2019 , 16:52   Re: AMXX Chat Relay [Discord <=> Ingame]
Reply With Quote #16

And that is why I warned the author that it is not necessary to define "max_name_lenght" in the plugin, since the definition already exists by default in amxx 1.9 +
__________________
iceeedr is offline
Send a message via Skype™ to iceeedr
endnch
Junior Member
Join Date: Sep 2019
Old 09-12-2019 , 10:21   Re: AMXX Chat Relay [Discord <=> Ingame]
Reply With Quote #17

Quote:
Originally Posted by iceeedr View Post
MAX_NAME_LENGTH is already set by default in amx 1.9+
Fixed.
endnch 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 14:22.


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