Clicked made textdraw but doesn't click
#3

So i deleted and made on simple test named register with blue box behind it but it doesnt even hover..
PHP код:
        RegisterTD[11] = TextDrawCreate(294.399932281.093322"Register");
        
TextDrawLetterSize(RegisterTD[11], 0.2371960.913066);
        
TextDrawTextSize(RegisterTD[11], 341.0000000.000000);
        
TextDrawAlignment(RegisterTD[11], 1);
        
TextDrawColor(RegisterTD[11], -1);
        
TextDrawUseBox(RegisterTD[11], 1);
        
TextDrawBoxColor(RegisterTD[11], 8388512);
        
TextDrawSetShadow(RegisterTD[11], 0);
        
TextDrawSetOutline(RegisterTD[11], 0);
        
TextDrawBackgroundColor(RegisterTD[11], 255);
        
TextDrawFont(RegisterTD[11], 2);
        
TextDrawSetProportional(RegisterTD[11], 1);
        
TextDrawSetShadow(RegisterTD[11], 0);
        
TextDrawSetSelectable(RegisterTD[11], true); 
my show textdraw function
PHP код:
stock ShowRegisterScreen(playerid)
{
    for(new 
iisizeof(RegisterTD); i++)
    {
        
TextDrawShowForPlayer(playeridRegisterTD[i]);
    }
    
SelectTextDraw(playerid,COLOR_BLACK);
    return 
1;

The function i call it
PHP код:
function OnAccountCheck(playerid)
{
    new 
rowsfields,string[300];
    
cache_get_data(rowsfieldsmysql);
        if(
rows
        {
            
cache_get_field_content(0"Password"pinfo[playerid][Password], mysql129);
           
            
pinfo[playerid][ID] = cache_get_field_content_int(0"ID"); 
            
printf("Pass Hash: %s"pinfo[playerid][Password]); 
               
format(string,sizeof(string),""COL_WHITE"Welcome back "COL_LIGHTBLUE"%s "COL_WHITE" to Chaos "COL_BLUE"Cops "COL_WHITE"N "COL_RED"Robbers"COL_WHITE" Server developed by Unlimited Gaming. \nACCOUNT : "COL_LIGHTBLUE"REGISTERED"COL_WHITE"\nPlease "COL_GREEN"login "COL_WHITE" to continue.",GPN(playerid));
            
ShowPlayerDialog(playeriddloginDIALOG_STYLE_PASSWORD,""COL_WHITE"Login to CCNR",string,"Login","Quit"); 
        }
        else 
        {
                
ShowRegisterScreen(playerid);
                
pinfo[playerid][Banned] = 0;
        }
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)