08.02.2012, 13:41
Replace this
To
Also, this
To
Last,
To
These are the parameters
So, you make a new variable with MAX_PLAYER_NAME.
On the format messages, you have to use "%s" -> Name.
It will show the name.
pawn Код:
format(str, sizeof(str), "You jailed %s for %d mins.", GetPlayerName(playerid, const name[], len), mins);
pawn Код:
format(str, sizeof(str), "You jailed %s for %d mins.", Name2, mins);
pawn Код:
format(str, sizeof(str), "%s jailed you for %d mins.", GetPlayerName(playerid, const name[], len), mins);
pawn Код:
format(str, sizeof(str), "%s jailed you for %d mins.", Name, mins);
pawn Код:
format(str, sizeof(str), "Administrator %s has jailed %s for %d mins!", GetPlayerName(playerid, const name[], len), GetPlayerName(playerid, const name[], len), mins);
pawn Код:
format(str, sizeof(str), "Administrator %s has jailed %s for %d mins!", Name, Name2, mins);
pawn Код:
GetPlayerName(playerid, const name[], len)
pawn Код:
new
Name[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, Name, sizeof( Name ) ); // We get the Name from the player and we store it to `Name`
It will show the name.