Help with textdraws.
#5

well, look at your "CreateTextDraw" function.
you use it like...
PHP код:
Textdraw[playerid][1] = CreateTextDraw(1,........... 
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
PHP код:
PlayerText:CreateTextDraw(textdrawidplayeridFloat:xFloat:ytext[])
{
    
CreatePlayerTextDraw(playeridxytext);
    
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

Reply


Messages In This Thread
Help with textdraws. - by Whillyrez - 04.01.2017, 03:00
Respuesta: Help with textdraws. - by Whillyrez - 04.01.2017, 18:13
Re: Help with textdraws. - by Pearson - 04.01.2017, 18:15
Respuesta: Help with textdraws. - by Whillyrez - 04.01.2017, 18:18
Re: Help with textdraws. - by CutX - 04.01.2017, 18:22
Respuesta: Help with textdraws. - by Whillyrez - 04.01.2017, 18:27
Re: Respuesta: Help with textdraws. - by CutX - 04.01.2017, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)