25.06.2011, 10:43
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:
onplayerconnect
What is wrong?
Thanks
Instead of:
Welcome bartje01 it says welcome artje01
I use it like this:
on top:
pawn Код:
new Name[MAX_PLAYER_NAME]
pawn Код:
GetPlayerName(playerid, Name, sizeof(Name));
format(String,sizeof(String),"Welcome to {FF0000}Infinity Roleplay {00FF00}%s",Name[playerid]);
SendClientMessage(playerid,COLOR_GREEN,String);
Thanks