Posts: 69
Threads: 34
Joined: Oct 2009
Reputation:
0
Why doesn't appear textdraw?
public OnPlayerConnect(playerid)
{
for(new i; i < 10; i++)
{
TextDrawShowForPlayer(playerid, TextDraws[San_mp][i]);
}
return 1;
}
Posts: 69
Threads: 34
Joined: Oct 2009
Reputation:
0
Here so:
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, TextDraws[San_mp][i]);
return 1;
}
Gives an error:
error 017: undefined symbol "i"
In:
public OnFilterScriptInit()
{
for(new i; i < 10; i++)
{
TextDrawBackgroundColor(TextDraws[San_mp][i], 255);
TextDrawFont(TextDraws[San_mp][i], 0);
TextDrawLetterSize(TextDraws[San_mp][i], 0.639998, 2.699999);
TextDrawColor(TextDraws[San_mp][i], -1);
TextDrawSetOutline(TextDraws[San_mp][i], 1);
TextDrawSetProportional(TextDraws[San_mp][i], 0);
}
Posts: 307
Threads: 36
Joined: Mar 2010
Reputation:
0
[San_mp][i] it means that [i] you need delete that
Posts: 2,593
Threads: 34
Joined: Dec 2007
pawn Код:
public OnFilterScriptInit()
{
TextDraws[San_mp][0] = TextDrawCreate(35.000000, 190.000000, "1");
TextDraws[San_mp][1] = TextDrawCreate(50.000000, 184.000000, "2");
TextDraws[San_mp][2] = TextDrawCreate(58.000000, 180.000000, "3");
TextDraws[San_mp][3] = TextDrawCreate(66.000000, 178.000000, "4");
TextDraws[San_mp][4] = TextDrawCreate(82.000000, 179.000000, "5");
TextDraws[San_mp][5] = TextDrawCreate(90.000000, 179.000000, "6");
TextDraws[San_mp][6] = TextDrawCreate(98.000000, 181.000000, "7");
TextDraws[San_mp][7] = TextDrawCreate(104.000000, 183.000000, "8");
TextDraws[San_mp][8] = TextDrawCreate(111.000000, 185.000000, "9");
TextDraws[San_mp][9] = TextDrawCreate(119.000000, 189.000000, "10");
for(new i; i < 10; i++)
{
TextDrawBackgroundColor(TextDraws[San_mp][i], 255);
TextDrawFont(TextDraws[San_mp][i], 0);
TextDrawLetterSize(TextDraws[San_mp][i], 0.639998, 2.699999);
TextDrawColor(TextDraws[San_mp][i], -1);
TextDrawSetOutline(TextDraws[San_mp][i], 1);
TextDrawSetProportional(TextDraws[San_mp][i], 0);
}
return 1;
}
public OnPlayerConnect(playerid)
{
for(new i; i < 10; i++)
TextDrawShowForPlayer(playerid, TextDraws[San_mp][i]);
return 1;
}