28.09.2010, 21:17
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);
}
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);
}