Raised This Month: $ Target: $400
 0% 

[SOLVED] Automaticaly removing %'s from chat...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
omghax
Member
Join Date: Dec 2005
Location: eth0
Old 12-20-2006 , 22:20   [SOLVED] Automaticaly removing %'s from chat...
Reply With Quote #1

I was wondering if there was a way to bypass this... or if the way I'm doing it is just wrong.

Everytime someone says something, or if I try to log something to a file with a % in it, it automaticaly removes it.

Is there a way to fix this?


Sorry if this has been asked already, I wasn't sure what to search for... :/


-- Thanks,
__________________
Quote:
George Carlin: Reminds me of something my grandfather used to say. He used to say "I'm going upstairs and fuck your grandmother." Well, he was an honest guy, you know? He wasn't going to lie to a little kid.

Last edited by omghax; 12-21-2006 at 03:45. Reason: Yay, I win. :D!
omghax is offline
Send a message via AIM to omghax Send a message via MSN to omghax Send a message via Yahoo to omghax Send a message via Skype™ to omghax
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-20-2006 , 23:41   Re: Automaticaly removing %'s from chat...
Reply With Quote #2

I think this is within HL1 itself, not amxmodx.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
omghax
Member
Join Date: Dec 2005
Location: eth0
Old 12-20-2006 , 23:45   Re: Automaticaly removing %'s from chat...
Reply With Quote #3

Actually, it logs in the file just fine... I just can't print it through chat. Sorry, I looked over that.
__________________
Quote:
George Carlin: Reminds me of something my grandfather used to say. He used to say "I'm going upstairs and fuck your grandmother." Well, he was an honest guy, you know? He wasn't going to lie to a little kid.
omghax is offline
Send a message via AIM to omghax Send a message via MSN to omghax Send a message via Yahoo to omghax Send a message via Skype™ to omghax
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-20-2006 , 23:48   Re: Automaticaly removing %'s from chat...
Reply With Quote #4

It's part of the HL1 engine, because % is the magical formatting character, it removes it from names and chat text so as not to screw anything up.

P.S. That quote is from George Carlin, not "Skull."
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
omghax
Member
Join Date: Dec 2005
Location: eth0
Old 12-20-2006 , 23:50   Re: Automaticaly removing %'s from chat...
Reply With Quote #5

Then why can I say it while I'm in game, but I can't replicate it in Pawn through client_print?

P.S. Someone said it in IRC, I just copied and pasted it.
__________________
Quote:
George Carlin: Reminds me of something my grandfather used to say. He used to say "I'm going upstairs and fuck your grandmother." Well, he was an honest guy, you know? He wasn't going to lie to a little kid.
omghax is offline
Send a message via AIM to omghax Send a message via MSN to omghax Send a message via Yahoo to omghax Send a message via Skype™ to omghax
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-20-2006 , 23:52   Re: Automaticaly removing %'s from chat...
Reply With Quote #6

Try running your favorite HL1 mod and say "LOOK AT THIS PERCENT: %". Your message will be outputted as "LOOK AT THIS PERCENT: ".

EDIT: Apparently Counter-Strike is the only mod that does this. Go me!
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS

Last edited by XxAvalanchexX; 12-21-2006 at 02:19.
XxAvalanchexX is offline
omghax
Member
Join Date: Dec 2005
Location: eth0
Old 12-20-2006 , 23:59   Re: Automaticaly removing %'s from chat...
Reply With Quote #7

[img]http://img172.**************/img172/8018/untitled1fb6.png[/img]
__________________
Quote:
George Carlin: Reminds me of something my grandfather used to say. He used to say "I'm going upstairs and fuck your grandmother." Well, he was an honest guy, you know? He wasn't going to lie to a little kid.
omghax is offline
Send a message via AIM to omghax Send a message via MSN to omghax Send a message via Yahoo to omghax Send a message via Skype™ to omghax
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-21-2006 , 00:20   Re: Automaticaly removing %'s from chat...
Reply With Quote #8

when doing print chat and menus (and maybe other things) use %%. it will show one %
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
omghax
Member
Join Date: Dec 2005
Location: eth0
Old 12-21-2006 , 00:22   Re: Automaticaly removing %'s from chat...
Reply With Quote #9

Thanks, I was thinking of someway to implement that already.

My problem is, is let's say I'm grabbing what everyone says and client_printing it back through print_chat. Now if I wouldn't of done this, it would display the %'s correctly. But once I add this function, it no longer displays the %'s and just removes them.
__________________
Quote:
George Carlin: Reminds me of something my grandfather used to say. He used to say "I'm going upstairs and fuck your grandmother." Well, he was an honest guy, you know? He wasn't going to lie to a little kid.
omghax is offline
Send a message via AIM to omghax Send a message via MSN to omghax Send a message via Yahoo to omghax Send a message via Skype™ to omghax
stupok
Veteran Member
Join Date: Feb 2006
Old 12-21-2006 , 01:18   Re: Automaticaly removing %'s from chat...
Reply With Quote #10

replace_all ( string[], len, "%", "%%" )
stupok 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 22:26.


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