04.01.2017, 18:22
well, look at your "CreateTextDraw" function.
you use it like...
so, obviously, you expect it to return something
but you don't return anything, it'll always be "0"
in Textdraw[playerid][0] and Textdraw[playerid][1]
this is your function
you use it like...
PHP код:
Textdraw[playerid][1] = CreateTextDraw(1,...........
but you don't return anything, it'll always be "0"
in Textdraw[playerid][0] and Textdraw[playerid][1]
this is your function
PHP код:
PlayerText:CreateTextDraw(textdrawid, playerid, Float:x, Float:y, text[])
{
CreatePlayerTextDraw(playerid, x, y, text);
infoT[playerid][textdrawid][xTP] = x;
infoT[playerid][textdrawid][yTP] = y;
printf("%f %f %i",x,y,textdrawid);
return;//you should return something here... textdrawid? you have to know its your function
}