[Pedido] Id da casa em textdrawn <<<<<<
#5

Quote:
Originally Posted by Schocc
Посмотреть сообщение
Fiz uma base pra vocк... й sу trocar a variбvel Business_ID para a variбvel que armazena o ID da empresa...
pawn Код:
#define LOJA_DE_ARMAS           ( 0 )
#define MAX_EMPRESAS            ( 50 )
#define LOCAL_PROPRIEDADES      ( "/Pasta/%d.ini" )

#if defined MAX_PLAYERS
    #undef MAX_PLAYERS
#define MAX_PLAYERS             ( 50 )
#endif
   
forward OnBusinessUpdate( playerid );
static
    Business_ID,
    Text:BusinessID[ MAX_PLAYERS ];

public OnPlayerConnect( playerid )
{
    BusinessID[ playerid ]    =    TextDrawCreate( 100, 430, "_" );
    TextDrawFont(               BusinessID[ playerid ], 1 );
    TextDrawColor(              BusinessID[ playerid ], 0xFFFFFFAA );
    TextDrawLetterSize(         BusinessID[ playerid ], 0.499999, 0.899999 );
    TextDrawSetOutline(         BusinessID[ playerid ], 1 );
    TextDrawSetShadow(          BusinessID[ playerid ], 0 );
    TextDrawSetProportional(    BusinessID[ playerid ], 1 );
    TextDrawBackgroundColor(    BusinessID[ playerid ], 0x000000ff );
    return true;
}

public OnBusinessUpdate( playerid )
{
    new string[72];
   
    TextDrawHideForPlayer( playerid, BusinessID[ playerid ] )
    format( string, sizeof( string ), "~p~Empresa ID ~y~%i", Business_ID );
    TextDrawSetString( BusinessID[ playerid ], string );   
    TextDrawShowForPlayer( i, BusinessID[ playerid ] );
    return true;
}


//Como chamar a funзгo:
SetTimerEx( "OnBusinessUpdate", 1000, true, "i", playerid );
//Ou
OnBusinessUpdate( playerid );
Код:
MAX_PROPS ??
Reply


Messages In This Thread
Id da casa em textdrawn <<<<<< - by Smoking_Script - 15.02.2013, 01:49
Re: Id da casa em textdrawn <<<<<< - by Schocc - 15.02.2013, 01:51
Re: Id da casa em textdrawn <<<<<< - by Smoking_Script - 15.02.2013, 02:04
Re: Id da casa em textdrawn <<<<<< - by Schocc - 15.02.2013, 14:33
Re: Id da casa em textdrawn <<<<<< - by Smoking_Script - 15.02.2013, 23:33
Re: Id da casa em textdrawn <<<<<< - by Smoking_Script - 15.02.2013, 23:53
Re: Id da casa em textdrawn <<<<<< - by Schocc - 16.02.2013, 13:24

Forum Jump:


Users browsing this thread: 1 Guest(s)