AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [HELP] Hud Message %s (https://forums.alliedmods.net/showthread.php?t=173532)

NiceGuyx 12-06-2011 16:01

[HELP] Hud Message %s
 
Hello, i have this:

PHP Code:

new g_rank[33][33]

public 
rank(id)
{
       
g_rank[id] = "Member"
}

set_hudmessage(00255, -1.0, -1.021.09.00.010.110)
show_hudmessage(0"Rank: %s"g_rank[id]) 

Why it's not working
I want a hud message who show: Rank: Member (But with the %s)

Thk!

fysiks 12-06-2011 18:47

Re: [HELP] Hud Message %s
 
Show more code.

Also, it's more appropriate to use the copy() function to put strings into string arrays:

Code:

copy(g_rank[id], charsmax(g_rank[]), "Member")


All times are GMT -4. The time now is 20:44.

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