AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   %d etc? (https://forums.alliedmods.net/showthread.php?t=66132)

Watt 01-24-2008 08:35

%d etc?
 
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"

Alka 01-24-2008 08:45

Re: %d etc?
 
%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

Watt 01-24-2008 08:56

Re: %d etc?
 
Quote:

sizeof Name - 1
What does it mean, and have I build a table?
Quote:

new Name[32];


All times are GMT -4. The time now is 03:07.

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