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

Show %d in message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 11-27-2013 , 13:19   Show %d in message
Reply With Quote #1

How to show %d in :
PHP Code:
FreeAccess "%d more access available." "You took the last one!"FreeAccess 

PHP Code:
new FreeAccessFreeAccess get_pcvar_numg_Access ) - iAccess;

client_printidprint_chat"%s ^4access success. %s"prefix, ( FreeAccess "%d more access available." "You took the last one!"FreeAccess ) ); 
Debesėlis is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-27-2013 , 13:21   Re: Show %d in message
Reply With Quote #2

You can't. Formatting doesn't work that way
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-27-2013 , 13:21   Re: Show %d in message
Reply With Quote #3

Use formatex()
__________________
alan_el_more is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 11-27-2013 , 13:33   Re: Show %d in message
Reply With Quote #4

Can you give me example ?
Debesėlis is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-27-2013 , 13:41   Re: Show %d in message
Reply With Quote #5

Code:
if( cvar check )
{
    // print one message
}
else
{
    // print other message
}
__________________

Last edited by fysiks; 11-27-2013 at 13:41.
fysiks 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:26.


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