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

%d etc?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Watt
Senior Member
Join Date: Jan 2008
Location: Poland :D
Old 01-24-2008 , 08:35   %d etc?
Reply With Quote #1

How to use %d to show nick of player have you got any articles about it? For example how to do "somebody(%d) was slaped"
Watt is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 01-24-2008 , 08:45   Re: %d etc?
Reply With Quote #2

%d is for showing integers, use %s instead, for string, and you must get the name of player
Code:
new Name[32];
get_user_name(index, Name, sizeof Name - 1);
then display it in chat/center/W.E with %s
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Watt
Senior Member
Join Date: Jan 2008
Location: Poland :D
Old 01-24-2008 , 08:56   Re: %d etc?
Reply With Quote #3

Quote:
sizeof Name - 1
What does it mean, and have I build a table?
Quote:
new Name[32];
Watt 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 11:47.


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