Create3DTextLabel help
#1

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:

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;
}
Reply


Messages In This Thread
Create3DTextLabel help - by [DX]Aru12345 - 10.05.2013, 14:20
Re: Create3DTextLabel help - by [DOG]irinel1996 - 10.05.2013, 14:23
Re: Create3DTextLabel help - by ryanhawk31 - 10.05.2013, 14:33
Re: Create3DTextLabel help - by [DX]Aru12345 - 10.05.2013, 14:48

Forum Jump:


Users browsing this thread: 5 Guest(s)