17.01.2014, 15:53
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:
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".
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.
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;
}
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;
}