textdraw error
#2

Simply make it new Text:textdraw1; instead of new Text:textdraw1[MAX_PLAYERS]; (also make changes under OnGameModeInit if it was a gamemode or under OnFilterScriptInit)

and when player CONNECT write the final line under

OnPlayerConnect(playerid)

so it should be looking like this:

PHP код:
public OnPlayerConnect(playerid)
{
     
TextDrawShowForPlayer(playeridtextdraw1);
     return 
1;

The whole code:

PHP код:
new Text:textdraw1;
public 
OnFilterScriptInit()
{
    
textdraw1 CreatePlayerTextDraw(playerid, -28.000000348.812500"");  
    
PlayerTextDrawLetterSize(playeridtextdraw10.0000000.000000);  
    
PlayerTextDrawTextSize(playeridtextdraw190.00000090.000000);  
    
PlayerTextDrawAlignment(playeridtextdraw11);  
    
PlayerTextDrawColor(playeridtextdraw1, -1);  
    
PlayerTextDrawSetShadow(playeridtextdraw10);  
    
PlayerTextDrawSetOutline(playeridtextdraw10);  
    
PlayerTextDrawBackgroundColor(playeridtextdraw10);  
    
PlayerTextDrawFont(playeridtextdraw15);  
    
PlayerTextDrawSetProportional(playeridtextdraw10);  
    
PlayerTextDrawSetShadow(playeridtextdraw10);  
    
PlayerTextDrawSetPreviewModel(playeridtextdraw10);  
    
PlayerTextDrawSetPreviewRot(playeridtextdraw10.0000000.00000015.0000001.000000);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
   
TextDrawShowPlayer(playeridtextdraw1);
   return 
1;

Reply


Messages In This Thread
textdraw error - by Calinut200 - 24.03.2018, 23:23
Re: textdraw error - by RxErT - 24.03.2018, 23:28

Forum Jump:


Users browsing this thread: 1 Guest(s)