10.05.2013, 14:20
Hello.
I created a command /createlable which created a 3DTextLable at the players position. The command works but it only shows the first letter. For example I type /createlable Hi All, it would just show "h". Here is the code:
I created a command /createlable which created a 3DTextLable at the players position. The command works but it only shows the first letter. For example I type /createlable Hi All, it would just show "h". Here is the code:
pawn Code:
CMD:createlable(playerid,params[])
{
new Float:x,Float:y,Float:z,texttoput,str[128];
if(sscanf(params,"s",texttoput)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /createlable <Lable Text>");
GetPlayerPos(playerid,x,y,z);
format(str,sizeof(str),"%s",texttoput);
Create3DTextLabel(str,COLOR_WHITE,x,y,z,40,0,0);
return 1;
}