Help Me about TextDraw - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Me about TextDraw (
/showthread.php?tid=652196)
Help Me about TextDraw -
RichKiez - 05.04.2018
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
Re: Help Me about TextDraw -
ForCop - 05.04.2018
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;
}
Re: Help Me about TextDraw -
RichKiez - 05.04.2018
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]
Re: Help Me about TextDraw -
MarianImmortalGod - 05.04.2018
Try something like
Код HTML:
for(new i = 0; i <= 9; i++)
Re: Help Me about TextDraw -
RichKiez - 05.04.2018
Quote:
Originally Posted by MarianImmortalGod
Try something like
Код HTML:
for(new i = 0; i <= 9; i++)
|
still
Re: Help Me about TextDraw -
MarianImmortalGod - 05.04.2018
Then rename and have from 1 to 10 instead of 0 to 9 ..
Re: Help Me about TextDraw -
ForCop - 05.04.2018
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.