Help Me about TextDraw
#1

I'm having trouble sorting the TextDraw.
I added TextDraw to my script as "new PlayerText: DrawLicense [9] [MAX_PLAYERS]
And I put in the "public OnPlayerConnect":
Quote:

public OnPlayerConnect(playerid)
{
for(new i; i < 9; i++)
{
PlayerTextDrawShow(playerid, DrawLicense[i][playerid]);
}
return 1;
}

But when it came to the game it only appeared from DrawLicense [1] to DrawLicense [8], it did not show DrawLicense [0], I encountered this bug and got bug, I need helpers to fix this problem. , thank you.
My English is Bad
Reply
#2

Quote:
Originally Posted by RichKiez
Посмотреть сообщение
I'm having trouble sorting the TextDraw.
I added TextDraw to my script as "new PlayerText: DrawLicense [9] [MAX_PLAYERS]
And I put in the "public OnPlayerConnect":

But when it came to the game it only appeared from DrawLicense [1] to DrawLicense [8], it did not show DrawLicense [0], I encountered this bug and got bug, I need helpers to fix this problem. , thank you.
My English is Bad
Код:
new PlayerText: DrawLicense[MAX_PLAYERS][9];

public OnPlayerConnect(playerid)
{
  create you texdraw here:
  DrawLicense[playerid][0] = CreatePlayerTextDraw(playerid,...
  DrawLicense[playerid][1] = CreatePlayerTextDraw(playerid,...
  etc..

   for(new i = 0; i < 9; i++)
   {
    PlayerTextDrawShow(playerid, DrawLicense[playerid][i]);
    }
    return true;
}
Reply
#3

Quote:
Originally Posted by ForCop
Посмотреть сообщение
Код:
new PlayerText: DrawLicense[MAX_PLAYERS][9];

public OnPlayerConnect(playerid)
{
  create you texdraw here:
  DrawLicense[playerid][0] = CreatePlayerTextDraw(playerid,...
  DrawLicense[playerid][1] = CreatePlayerTextDraw(playerid,...
  etc..

   for(new i = 0; i < 9; i++)
   {
    PlayerTextDrawShow(playerid, DrawLicense[playerid][i]);
    }
    return true;
}
it still does, still does not show DrawLicense[0][playerid]
Reply
#4

Try something like

Код HTML:
for(new i = 0; i <= 9; i++)
Reply
#5

Quote:
Originally Posted by MarianImmortalGod
Посмотреть сообщение
Try something like

Код HTML:
for(new i = 0; i <= 9; i++)
still
Reply
#6

Then rename and have from 1 to 10 instead of 0 to 9 ..
Reply
#7

Quote:
Originally Posted by RichKiez
Посмотреть сообщение
it still does, still does not show DrawLicense[0][playerid]
change if you do not like it,I do not see any problems.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)