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

[ANY] Singular and Plural


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 02-19-2017 , 09:15   [ANY] Singular and Plural
Reply With Quote #1

I've seen lots of if statements because of this very problem. Here is an easy solution:


PHP Code:
int coins 10;
PrintToChat(client"You have %i Coin%s"coinscoins==1?"":"s"); 
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...

Last edited by Totenfluch; 02-19-2017 at 09:15.
Totenfluch is offline
 



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 04:27.


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