06.09.2010, 08:36
Hey guys im trying to make a cool tree thingy (dont ask why) but im trying to make a function that returns all current trees, ive made a /createtree and stored all the variables in it,like Tree owner and tree id,but i just cant get this function to work:
it just spams me with that
pawn Код:
stock GetTrees(playerid)
{
new str[128];
SendClientMessage(playerid, ORANGE, "Current Trees:");
for(new j; j<MAX_TREES; j++)
{
format(str,128, "Name: %s(ID:%d), Leader: %s",TreeInfo[playerid][Name],TreeID,TreeInfo[playerid][Leader]);
SendClientMessage(playerid, ORANGE, str);
}
}