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

Multilines kick reason


Post New Thread Reply   
 
Thread Tools Display Modes
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-06-2014 , 08:41   Re: Multilines kick reason
Reply With Quote #41

Up
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-11-2014 , 07:07   Re: Multilines kick reason
Reply With Quote #42

You're supposed to put ^n for new line, not \.
__________________
hleV is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-11-2014 , 08:17   Re: Multilines kick reason
Reply With Quote #43

Quote:
Originally Posted by hleV View Post
You're supposed to put ^n for new line, not \.
Same problem not worked
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-11-2014 , 16:27   Re: Multilines kick reason
Reply With Quote #44

PHP Code:
    user_kick(id"Hi,^nYou're Kicked from this server:^n for being AFK"); // i don't fixe english 
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 03-11-2014 at 16:28.
ConnorMcLeod is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-11-2014 , 22:57   Re: Multilines kick reason
Reply With Quote #45

Quote:
Originally Posted by ConnorMcLeod View Post
PHP Code:
    user_kick(id"Hi,^nYou're Kicked from this server:^n for being AFK"); // i don't fixe english 
"Hi,\You're Kicked from this server:\ for being AFK"

I not used this, it is as output from message

Ps. Again I used the both ^n and \n and out put not worked.

__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-12-2014 , 05:36   Re: Multilines kick reason
Reply With Quote #46

Because \ needs to be escaped.

You could try something like : replace_all( szKickMsg, charsmax( szKickMsg ), "\", "\\" ); before calling server_cmd().
__________________
Arkshine is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-14-2014 , 09:06   Re: Multilines kick reason
Reply With Quote #47

Quote:
Originally Posted by Arkshine View Post
Because \ needs to be escaped.

You could try something like : replace_all( szKickMsg, charsmax( szKickMsg ), "\", "\\" ); before calling server_cmd().
I will try
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-14-2014 , 09:35   Re: Multilines kick reason
Reply With Quote #48

You may want to try replacing MSG_ONE with MSG_ONE_UNRELIABLE, as I remember having problems with MSG_ONE and SVC_DISCONNECT in the past.
__________________
hleV is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-14-2014 , 10:33   Re: Multilines kick reason
Reply With Quote #49

Quote:
Originally Posted by hleV View Post
You may want to try replacing MSG_ONE with MSG_ONE_UNRELIABLE, as I remember having problems with MSG_ONE and SVC_DISCONNECT in the past.
I will testing when go to my home, i not have much time to do this..

We need Oprpheu way
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-14-2014 , 11:21   Re: Multilines kick reason
Reply With Quote #50

We don't need an Orpheu way.
__________________
hleV 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 21:23.


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