[Ajuda] erros e warnings na criaзгo das textdraw
#3

Quote:
Originally Posted by HaRdiiZin
Посмотреть сообщение
PHP код:
#include <a_samp> 
new tmp =0;
new 
PlayerText:FotoCarro
      
public 
OnPlayerConnect(playerid

    
FotoCarro CreatePlayerTextDraw(playerid320.0310.0"_"); 
    
PlayerTextDrawFont(playeridFotoCarroTEXT_DRAW_FONT_MODEL_PREVIEW); 
    
PlayerTextDrawBackgroundColor(playeridFotoCarro0x00000000); 
    
PlayerTextDrawBoxColor(playeridFotoCarro0xFFFFFFFF); 
    
PlayerTextDrawTextSize(playeridFotoCarro100.0100.0); 
    
PlayerTextDrawSetPreviewVehCol(playeridFotoCarro00); 
    
PlayerTextDrawSetPreviewModel(playeridFotoCarro411); 
    
PlayerTextDrawSetPreviewRot(playeridFotoCarro, -20.00.0float(tmp), 1.0); 
    return 
true

public 
OnPlayerDisconnect(playeridreason

    
PlayerTextDrawHide(playeridFotoCarro); 
    return 
1

public 
OnPlayerStateChange(playeridnewstateoldstate

    new 
vid GetPlayerVehicleID(playerid); 
    if(
newstate == PLAYER_STATE_DRIVER
    { 
        
PlayerTextDrawSetPreviewModel(playeridFotoCarroGetVehicleModel(vid)); 
        
PlayerTextDrawShow(playeridFotoCarro); 
    } 
    else 
    { 
        
PlayerTextDrawHide(playeridFotoCarro); 
    } 
    return 
1

Faltou o parвmetro "playerid".
Muito obrigado eu nгo tinha visto acho que foi o sono que me atrapalho,+REP para ti
Reply


Messages In This Thread
erros e warnings na criaзгo das textdraw - by DarthVeider - 06.02.2016, 14:20
Re: erros e warnings na criaзгo das textdraw - by HaRdiiZin - 06.02.2016, 16:28
Re: erros e warnings na criaзгo das textdraw - by DarthVeider - 06.02.2016, 18:37

Forum Jump:


Users browsing this thread: 3 Guest(s)