Looping through all player textdraws
#3

Use the find & replace function of your editor, replace 'Textdraw0[playerid]' ==> 'Textdraw[playerid][0]'

Код:
 new PlayerText:Textdraw[MAX_PLAYERS][MAX_TEXTDRAWS];
Код:
 stock DestroyPlayerTextdraws(playerid)
{
    for(new i=0; i<MAX_TEXTDRAWS; i++)
    {
        DestroyPlayerTextdraw(playerid, Textdraw[playerid][i]);
    }
}

stock CreatePlayerTextdraws(playerid)
{
    for(new i=0; i<MAX_TEXTDRAWS; i++)
    {
        Textdraw[playerid][i] = CreatePlayerTextdraw(...);
    }
}
Reply


Messages In This Thread
Looping through all player textdraws - by Riwerry - 29.12.2015, 10:07
Re: Looping through all player textdraws - by SecretBoss - 29.12.2015, 10:14
Re: Looping through all player textdraws - by Tamy - 29.12.2015, 10:15
Re: Looping through all player textdraws - by Riwerry - 29.12.2015, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)