playername
#1

Hey guys. When I use a message in a string where my name should be displayed in and there are more players online it's very buggy.
Instead of:

Welcome bartje01 it says welcome artje01

I use it like this:

on top:
pawn Код:
new Name[MAX_PLAYER_NAME]
onplayerconnect
pawn Код:
GetPlayerName(playerid, Name, sizeof(Name));
format(String,sizeof(String),"Welcome to {FF0000}Infinity Roleplay {00FF00}%s",Name[playerid]);
SendClientMessage(playerid,COLOR_GREEN,String);
What is wrong?
Thanks
Reply


Messages In This Thread
playername - by bartje01 - 25.06.2011, 10:43
Re: playername - by ||123|| - 25.06.2011, 10:50
Re: playername - by bartje01 - 25.06.2011, 11:11
Re: playername - by iPLEOMAX - 25.06.2011, 11:15
Re: playername - by bartje01 - 25.06.2011, 11:23

Forum Jump:


Users browsing this thread: 4 Guest(s)