PlayerTextDrawSetString not working with 'format'
#2

Use format when you're going to use variable variables.

For example:

format(string, sizeof(string), "Test: %d", variable);

Otherwise just use PlayerTextDrawSetString like you did in the first example

PlayerTextDrawSetString(playerid, weaponAmmo[1][playerid], "TEST");
Reply


Messages In This Thread
PlayerTextDrawSetString not working with 'format' - by PinkFloydLover - 10.12.2014, 08:08
Re: PlayerTextDrawSetString not working with 'format' - by Divergent - 10.12.2014, 08:29
Re: PlayerTextDrawSetString not working with 'format' - by PinkFloydLover - 10.12.2014, 08:32

Forum Jump:


Users browsing this thread: 1 Guest(s)