PlayerTextDraw - not hiding
#1

Hello,

I got a problem with PlayerTextDraw.

I am creating TextDraws from database. No problem, they create.
But when I do not wanna show him (and I won't), it's still there... Any idea why ?

PHP код:
forward OnPlayerTextDrawGroup(playeridtxd_group[], name[], except_1except_2);//OnPlayerLogin
public OnPlayerTextDrawGroup(playeridtxd_group[], name[], except_1except_2){
    new 
rowscache_get_row_count(rows);
    new 
str[10]; format(strsizeof(str), "ROWS: %d"rows);
    
SendClientMessage(playerid, -1str);
    if(
rows != 0){
        for(new 
i=0;i<rows;i++){ // tid starts on '1'
            
if(!= except_1 && != except_2) {
                if(
Txds[i][playerid]) { PlayerTextDrawDestroy(playeridTxds[i][playerid]); printf("TEXTDRAW %d EXISTS ALREADY, DESTROYING!"i); }
                new
                    
Float:XFloat:Y,
                    
text[30],
                    
Float:LSXFloat:LSY,
                    
Float:TSXFloat:TSY,
                    
align,
                    
color,
                    
useboxboxcolor,
                    
setshadow,
                    
outlinebackgroundcolor,
                    
font,
                    
proportional,
                    
selectable;
                
cache_get_value_float(      i,      "posX",                 X);
                
cache_get_value_float(      i,      "posY",                 Y);
                
cache_get_value_float(      i,      "LetterSizeX",             LSX);
                
cache_get_value_float(      i,      "LetterSizeY",             LSY);
                
cache_get_value_float(      i,      "TextSizeX",             TSX);
                
cache_get_value_float(      i,      "TextSizeY",             TSY);
                
cache_get_value(    i,      "text",     textsizeof(text));
                
cache_get_value_int(    i,      "alignment",                align);
                
cache_get_value_int(    i,      "color",                    color);
                
cache_get_value_int(    i,      "usebox",                    usebox);
                
cache_get_value_int(    i,      "boxcolor",                    boxcolor);
                
cache_get_value_int(    i,      "setshadow",                setshadow);
                
cache_get_value_int(    i,      "outline",                    outline);
                
cache_get_value_int(    i,      "backgroundcolor",            backgroundcolor);
                
cache_get_value_int(    i,      "font",                        font);
                
cache_get_value_int(    i,      "proportional",                proportional);
                
cache_get_value_int(    i,      "selectable",                selectable);
                  if(
== CHAR_TXD_NAME) {
                      if(
strcmp(name""))Txds[i][playerid] = CreatePlayerTextDraw(playeridXYtext);
                      else 
Txds[i][playerid] = CreatePlayerTextDraw(playeridXYname);
                }else 
Txds[i][playerid] = CreatePlayerTextDraw(playeridXYtext);
                
PlayerTextDrawLetterSize(playeridTxds[i][playerid], LSXLSY);
                
PlayerTextDrawTextSize(playeridTxds[i][playerid], TSXTSY);
                
PlayerTextDrawAlignment(playeridTxds[i][playerid], align);
                
PlayerTextDrawColor(playeridTxds[i][playerid], color);
                
PlayerTextDrawUseBox(playeridTxds[i][playerid], usebox);
                
PlayerTextDrawBoxColor(playeridTxds[i][playerid], boxcolor);
                
PlayerTextDrawSetShadow(playeridTxds[i][playerid], setshadow);
                
PlayerTextDrawSetOutline(playeridTxds[i][playerid], outline);
                
PlayerTextDrawBackgroundColor(playeridTxds[i][playerid], backgroundcolor);
                
PlayerTextDrawFont(playeridTxds[i][playerid], font);
                
PlayerTextDrawSetProportional(playeridTxds[i][playerid], proportional);
                
PlayerTextDrawSetSelectable(playeridTxds[i][playerid], selectable);
                
PlayerTextDrawShow(playeridTxds[i][playerid]);
                
printf("TEXTDRAW %d CREATED"i);
            }
        }
    }else 
printf("TEXTDRAW GROUP %s DOESN'T EXIST !"txd_group);
    return 
1;

and when it shows, I can't click on that. I don't wanna see it.
Reply
#2

I deleted an "MAX_PLAYERS" array in "Txds"... still same. (just saying)
Reply
#3

aright, I am just an asshole... np
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)