I don't understand what is wrong here...
#3

A player's name is a string(text), MAX_PLAYER_NAME is '24' which is a number(integer). There's a function to place a player's name onto a variable designated as a string.

pawn Код:
new pname[24];
GetPlayerName(playerid,pname,24);
format(mystring,sizeof(mystring),"PlayerID %d's name is %s",playerid,pname);
Reply


Messages In This Thread
I don't understand what is wrong here... - by Outcast - 08.01.2011, 23:09
Re: I don't understand what is wrong here... - by Doom8890 - 08.01.2011, 23:13
Re: I don't understand what is wrong here... - by Joe Staff - 08.01.2011, 23:14
Re: I don't understand what is wrong here... - by Outcast - 08.01.2011, 23:18
Re: I don't understand what is wrong here... - by Haydz - 08.01.2011, 23:38

Forum Jump:


Users browsing this thread: 1 Guest(s)