PlayerTextDrawSetString not working with 'format'
#1

I don't usually ask for help, but for some reason this very simple piece of code has got my head spun upside down for last hour,

for example, this piece of code will display the textdraw fine
pawn Код:
PlayerTextDrawSetString(playerid, weaponAmmo[1][playerid], "TEST");
PlayerTextDrawShow(playerid, weaponAmmo[1][playerid]);
but this piece of code will not display the textdraw at all.
pawn Код:
new
    str[8];
format(str, 8, "TEST");
SendClientMessage(playerid, -1, str); //Message appears in chat fine

PlayerTextDrawSetString(playerid, weaponAmmo[1][playerid], str);
PlayerTextDrawShow(playerid, weaponAmmo[1][playerid]);
This is absolutely driving me insane.

I'm running the code under OnPlayerSpawn, I have tried other areas and it doesn't work anywhere, I've tried running the same code from the default 'grandlarc' game mode, and it didn't work there either.

I have no idea why this isn't working as I've done it like this in the past and it works fine.

Anyone have ANY idea why this is happening?
try it yourself, just in the grandlarc game mode under OnPlayerSpawn, it's not working!
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)