10.12.2014, 08:08
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
but this piece of code will not display the textdraw at all.
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!
for example, this piece of code will display the textdraw fine
pawn Код:
PlayerTextDrawSetString(playerid, weaponAmmo[1][playerid], "TEST");
PlayerTextDrawShow(playerid, weaponAmmo[1][playerid]);
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]);
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!