Raised This Month: $ Target: $400
 0% 

Console output error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BigWalnutZ
Junior Member
Join Date: Apr 2005
Old 04-20-2005 , 13:28   Console output error
Reply With Quote #1

Hey all, having a frustrating time with something extremely stupid. My console messages "server_print()" are not coming out right. They are not making a new line so the next command is on the same line as the last output. Easier to see that to type about:

Code:
] amx_whowas tom
[WHOIS] No Results for: 'tom'] amx_whowas mu
[WHOIS] No Results for: 'mu'] amx_whowas amd
[WHOIS] No Results for: 'amd'] amx_whowas tim
[WHOIS] No Results for: 'tim'] amx_whowa
What am I doing wrong or what needs to be changed?
Code:
  new iNumrows = dbi_num_rows(retval)   if (retval == RESULT_FAILED) {     dbi_error(mySql, error, 127)     log_amx("SQL Error: %L", error)     closeDatabase()     return PLUGIN_HANDLED   } else if (retval == RESULT_NONE) {     client_print(id, print_console, "[WHOIS] No Results for: '%s'", search)     closeDatabase()     return PLUGIN_HANDLED   }
I even tried:


Code:
    client_print(id, print_console, "[WHOIS] No Results for: '%s'^n", search)
__________________
I am 77% addicted to Counterstrike. What about you?
BigWalnutZ is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-20-2005 , 13:48  
Reply With Quote #2

If ^n isn't working and you're really desperate, you could try using client_cmd(id," "); which theoretically puts a space into their console and executes it, thus making a new line.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
BigWalnutZ
Junior Member
Join Date: Apr 2005
Old 04-20-2005 , 13:50  
Reply With Quote #3

I have thought of a few different rig jobs like that, but I am more so looking for why is it doing that. All the examples I look at do not have that and they work just fine. I don't know why it is picking on me :-/
__________________
I am 77% addicted to Counterstrike. What about you?
BigWalnutZ is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-20-2005 , 13:54  
Reply With Quote #4

Try adding a few extra ^n's and see if it changes. Add text to your client_print AFTER the ^n's to see how it gets placed.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 10:01.


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