Raised This Month: $ Target: $400
 0% 

[Help] Client_print Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 06-29-2009 , 03:19   [Help] Client_print Problem
Reply With Quote #1

anyone know why i can't add ^n like this:

PHP Code:
#include <amxmodx>
 
#define TIME_DELAY 100.0
#define TEXT_SAY "[AMX] Version 1.8.1, Zombie Plague Version 4.3. ^n Enjoy Your Stay."
 
public plugin_init() 
{
        
register_plugin("Information","1.0","Mr.Noobie")
        
set_task(TIME_DELAY"Information"0__"b")
}
 
public 
Information()
{
        
client_print(0print_chatTEXT_SAY)

In the gameplay the TEXT_SAY show this :

Code:
[AMX] Version 1.8.1, Zombie Plague Version 4.3.  Enjoy Your Stay.
I want it like this :

Code:
[AMX] Version 1.8.1, Zombie Plague Version 4.3. 
Enjoy Your Stay.
Mr.Noobie is offline
usabrad86
Junior Member
Join Date: Jun 2009
Location: Florida
Old 06-29-2009 , 03:23   Re: [Help] Client_print Problem
Reply With Quote #2

try this
PHP Code:

        client_print
(0print_chat,"%s",TEXT_SAY
usabrad86 is offline
Send a message via AIM to usabrad86
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 06-29-2009 , 03:29   Re: [Help] Client_print Problem
Reply With Quote #3

Quote:
Originally Posted by usabrad86 View Post
try this
PHP Code:
 
        client_print
(0print_chat,"%s",TEXT_SAY
I try
PHP Code:
client_print(0print_chat"%s"TEXT_SAY
Didn't work still same.
Mr.Noobie is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-29-2009 , 03:31   Re: [Help] Client_print Problem
Reply With Quote #4

Use 2 client_print()
__________________
Arkshine is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 06-29-2009 , 03:35   Re: [Help] Client_print Problem
Reply With Quote #5

Quote:
Originally Posted by arkshine View Post
Use 2 client_print()
what you mean ?

Like this ?

PHP Code:
#include <amxmodx>
 
#define TIME_DELAY 100.0
 
#define TEXT_SAY "[AMX] Version 1.8.1, Zombie Plague Version 4.3." 
#define TEXT_SAY2 "Enjoy Your Stay."
 
public plugin_init() 
{
        
register_plugin("Information","1.0","Mr.noobie")
        
set_task(TIME_DELAY"Information"0__"b")
}
 
public 
Information()
{
        
client_print(0print_chatTEXT_SAY)
        
client_print(0print_chatTEXT_SAY2)

For this it work

Is there any way to prevent for using 2 client_print ?

Last edited by Mr.Noobie; 06-29-2009 at 03:45.
Mr.Noobie is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-29-2009 , 03:50   Re: [Help] Client_print Problem
Reply With Quote #6

You want to put on 2 lines... So I don't see where is the problem. Oo
__________________
Arkshine is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-29-2009 , 03:54   Re: [Help] Client_print Problem
Reply With Quote #7

Don't \n work for that too?
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-29-2009 , 03:57   Re: [Help] Client_print Problem
Reply With Quote #8

\ is not the control char by default. It's ^. It can't work in client_print() but for hud message, it does.
__________________
Arkshine 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 15:27.


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