Problem login/register on TextDraw
#1

PHP код:
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid){//Login
    
new string[256];
    if(
playertextid == LoginExitTD){
        if(
InLogin[playerid] == 1){
            
Kick(playerid);
        }
        return 
1;
    }
    return 
1;
}
    
LoginExitTD CreatePlayerTextDraw(playerid403.382171180.083251"X");
    
PlayerTextDrawLetterSize(playeridLoginExitTD0.3264421.127498);
    
PlayerTextDrawTextSize(playeridLoginExitTD, -5.0000000.000000);
    
PlayerTextDrawAlignment(playeridLoginExitTD1);
    
PlayerTextDrawColor(playeridLoginExitTD, -1);
    
PlayerTextDrawSetShadow(playeridLoginExitTD0);
    
PlayerTextDrawSetOutline(playeridLoginExitTD, -1);
    
PlayerTextDrawBackgroundColor(playeridLoginExitTD255);
    
PlayerTextDrawFont(playeridLoginExitTD1);
    
PlayerTextDrawSetProportional(playeridLoginExitTD1);
    
PlayerTextDrawSetSelectable(playeridLoginExitTDtrue);
        
PlayerTextDrawShow(playeridLoginExitTD);
        
SelectTextDraw(playerid0xFF4040AA); 
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(playeridLoginExitTD, -5.0000000.000000); 
Try changing this to:
PHP код:
PlayerTextDrawTextSize(playeridLoginExitTD403.38217120.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)