[BUG] GameTextForPlayer
#1

I've found a bug on 0.3z's GameTextForPlayer function that it doesn't show up the value '1' within some color formats. If you want to test it for yourself, try this code:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/gtext")) return GameTextForPlayer(playerid, "~G~OBJECT DAMAGED!~N~~Y~OBJECT ID ~W~: ~R~1~N~~Y~HP LEFT ~W~: ~R~100", 1800, 3);
    return 0;
}
It won't be showing like "OBJECT ID : 1". Instead of that, it'll be displaying "OBJECT ID : ". It works fine if I'm doing it as "01" instead of "1".
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/gtext")) return GameTextForPlayer(playerid, "~G~OBJECT DAMAGED!~N~~Y~OBJECT ID ~W~: ~R~01~N~~Y~HP LEFT ~W~: ~R~100", 1800, 3);
    return 0;
}
I've tested if this bug was there on 0.3x and it don't seem to be. It's definitely the problem of 0.3z in my view. It can be fixed through coding but however it's much better if fixed on the further RC releases.
Reply


Messages In This Thread
[BUG] GameTextForPlayer - by Lordzy - 17.01.2014, 15:53
Re: [BUG] GameTextForPlayer - by MP2 - 17.01.2014, 16:08
Re: [BUG] GameTextForPlayer - by Lordzy - 17.01.2014, 16:22
Re: [BUG] GameTextForPlayer - by Mauzen - 18.01.2014, 00:53
Re: [BUG] GameTextForPlayer - by Meta - 18.01.2014, 01:02
Re: [BUG] GameTextForPlayer - by Basssiiie - 18.01.2014, 13:56

Forum Jump:


Users browsing this thread: 1 Guest(s)