textdraw update
#1

i have that
PHP код:
    format(newtext3sizeof(newtext3), "Points:%d"GermanyPoints[playerid]);
    
TextDrawSetString(Textdraw6newtext3);
    
TextDrawShowForAll(Textdraw6);
    
format(newtext2sizeof(newtext2), "Points:%d"RussianPoints[playerid]);
    
TextDrawSetString(Textdraw7newtext2);
    
TextDrawShowForAll(Textdraw7); 
and i want to update the text draw when i use GermanyPoints[playerid] --; or GermanyPoints[playerid]);

how can i do that??
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerUpdate
Reply
#3

what i need to put info this public?
Reply
#4

pawn Код:
public OnPlayerUpdate( playerid )
{
    TextDrawHideForPlayer( playerid, Textdraw6 );
    TextDrawHideForPlayer( playerid, Textdraw7 );
    format( newtext3, sizeof ( newtext3 ), "Points:%d", GermanyPoints[ playerid ] );
    TextDrawSetString( Textdraw6, newtext3 );
    TextDrawShowForPlayer( playerid, Textdraw6 );
    format( newtext2, sizeof ( newtext2 ), "Points:%d", RussianPoints[ playerid ] );
    TextDrawSetString( Textdraw7, newtext2 );
    TextDrawShowForPlayer( playerid, Textdraw7 );
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)