PHP Code:
new g_rank[33]
public rank(id)
g_rank[id] = "Member"
// Problems then try use this
// formatex(g_rank[id], charsmax(g_rank[id]), "member")
static rankname[32][/COLOR]
formatex(class, charsmax(class), "%s", g_rank[id]")
set_hudmessage(0, 0, 255, -1.0, -1.0, 2, 1.0, 9.0, 0.01, 0.1, 10)
show_hudmessage(0, "Rank: %s", rankname[id])
PS: You dont need 2d array or what ever it call.
If you now still have problem then use ohter way.
PHP Code:
new g_rank[33]
public rank(id)
{
g_rank[id] = 1
}
static rankname[32]
if ( g_rank[id] == 1 )
formatex(class, charsmax(class), "member")
else if ( g_rank[id] == 2 )
formatex(class, charsmax(class), "new rank class")
...
set_hudmessage(0, 0, 255, -1.0, -1.0, 2, 1.0, 9.0, 0.01, 0.1, 10)
show_hudmessage(0, "Rank: %s", rankname[id])
Something like this.
In that where are that if ( g_rank[id] == 1 )
There make all your rank named
and then use g_rank[id] only numbers.
I also have sometimes that problem, i think the word can not be in
new g_rank[33] .