17.10.2011, 21:27
I see a bit of redundant code:
What's the purpose of the "id" variable? You're creating it and not assigning a value to it, so basically what your if statement says is:
Which is pretty redundant, that variable seems utterly pointless!
pawn Код:
new id;
for(new t=-1; t < MAX_TEXTDRAWS; t ++)
{
if(td_i[t][created])
{
if(id == listitem)
{
td_editing = t;
SendClientMessageEx(playerid, -1, "Selected sprite id {FF0000}%d{FFFFFF}.", td_editing);
break;
}
}
}
pawn Код:
if(0 == listitem)