Hi , help me . I want the name that appears in " RANK " also appears on the head of the player.
#10

Quote:
Originally Posted by FACCOESRIO
View Post
2 Warnings. number of arguments does not match definition

Because you gave error on that line?
Because GetPlayerName has 3 arguments, but the guy typed wrong code
Code:
new tmp[64];
format(tmp, sizeof(tmp), "[RANK %d] %s", rank, GetPlayerName(playerid));
SetPlayerName(playerid, tmp);
to

Code:
new tmp[64], name[24];
GetPlayerName(playerid, name, 24);
format(tmp, sizeof(tmp), "[RANK %d] %s", rank, name);
SetPlayerName(playerid, tmp);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)