Textdraw not showing up?
#2

Top:
pawn Код:
# define SKIN_1 (0)
# define SKIN_2 (1)

new
    Text:RequestSpawn[ MAX_PLAYERS ]
;
After OnGameModeInit:
pawn Код:
for(new playerid = 0; playerid <MAX_PLAYERS; playerid++)
    {
        RequestSpawn[ playerid ] = TextDrawCreate( 300.000000,250.000000," " );
        TextDrawFont    ( RequestSpawn[ playerid ] , 3 );
        TextDrawTextSize( RequestSpawn[ playerid ], 3, 3 );
        TextDrawColor   ( RequestSpawn[ playerid ] , 0x33AA33AA );
    }
pawn Код:
public OnPlayerRequestClass( playerid, classid )
{
    SetPlayerClass( playerid, classid );
    gPlayerClass[ playerid ] = classid;
    switch ( classid )
    {
        case SKIN_1:
        {
            TextDrawSetString( RequestSpawn[ playerid] ,"~w~Class: 1" );

        }
        case SKIN_2:
        {
            TextDrawSetString( RequestSpawn[ playerid ],"~w~Class: 2" ) ;

        }
    }
 
    TextDrawShowForPlayer( playerid, RequestSpawn[ playerid ] );
    return true;
}
Reply


Messages In This Thread
Textdraw not showing up? - by Naxix - 15.10.2010, 20:04
Re: Textdraw not showing up? - by RenisiL - 17.10.2010, 11:51

Forum Jump:


Users browsing this thread: 2 Guest(s)