Doesn't show the name.
#1

I made a script, that when you do /name it will show you the name of the ID.
but It doesn't show the Name
Here is half of it:
pawn Код:
new GivenName[MAX_PLAYER_NAME];
format(string, sizeof(string), "Name: %s.", GivenName);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
Everything is defined, but It doesn't show the name, In addition I don't have any warnings.
Reply
#2

Did you use

GetPlayerName(playerid, GivenName, sizeof(GivenName));
Reply
#3

pawn Код:
new GivenName[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, GivenName, sizeof(GivenName));
format(string, sizeof(string), "Name: %s.", GivenName);
SendClientMessage(playerid, COLOR_WHITE, string);
Reply
#4

Yeah, my bad I forgot that.
I have some thing else.
I tired to add text to a certain command that allows to show how many users are in a certain faction.
So I made that script, the problem it I want to change the color of the Valid and Invalid, to another but I can't, It gives me the same color of the User: %s
pawn Код:
if(PlayerInfo[playerid][pFaction1]) { text4 = "Valid"; } else { text4 = "Invalid";
}
    format(string, sizeof(string), "User: %s.", text4);
                        SendClientMessage(giveplayerid, COLOR_WHITE, string);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)