Problem login/register on TextDraw
#1

PHP код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid){//Login
    
new string[256];
    if(
playertextid == LoginExitTD){
        if(
InLogin[playerid] == 1){
            
Kick(playerid);
        }
        return 
1;
    }
    return 
1;
}
    
LoginExitTD = CreatePlayerTextDraw(playerid, 403.382171, 180.083251, "X");
    
PlayerTextDrawLetterSize(playerid, LoginExitTD, 0.326442, 1.127498);
    
PlayerTextDrawTextSize(playerid, LoginExitTD, -5.000000, 0.000000);
    
PlayerTextDrawAlignment(playerid, LoginExitTD, 1);
    
PlayerTextDrawColor(playerid, LoginExitTD, -1);
    
PlayerTextDrawSetShadow(playerid, LoginExitTD, 0);
    
PlayerTextDrawSetOutline(playerid, LoginExitTD, -1);
    
PlayerTextDrawBackgroundColor(playerid, LoginExitTD, 255);
    
PlayerTextDrawFont(playerid, LoginExitTD, 1);
    
PlayerTextDrawSetProportional(playerid, LoginExitTD, 1);
    
PlayerTextDrawSetSelectable(playerid, LoginExitTD, true);
        
PlayerTextDrawShow(playerid, LoginExitTD);
        
SelectTextDraw(playerid, 0xFF4040AA); 
It does NOT work when I click on the textdraw.
Reply
#2

pawn Код:
new PlayerText:LoginExitTD[MAX_PLAYERS];
pawn Код:
LoginExitTD[playerid] = CreatePlayerTextDraw(...);
Read more here.

Every LoginExitTD becomes LoginExitTD[playerid].
Reply
#3

Not Working
Reply
#4

Quote:
Originally Posted by MariusikRO
Посмотреть сообщение
Not Working
Your problem is with the following:
PHP код:
PlayerTextDrawTextSize(playerid, LoginExitTD, -5.000000, 0.000000); 
Try changing this to:
PHP код:
PlayerTextDrawTextSize(playerid, LoginExitTD, 403.382171, 20.000000); 
You have to play a little with these settings to get the correct one.
Reply
#5

thx!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)