Looping and returning multiple values with 1 function
#1

How can I loop files and return each identical value (in 1 string) with 1 function?

Here is my code:
pawn Код:
for(new i; i < MAX_FILES; i++)//Loop my files
{
    if(strcmp(FileInfo[i][Owner], GetName(playerid), true))//if the playerid's name is the files "Owner"
    {
        new biz[50];
        format(biz, sizeof(biz), "%s" FileInfo[i][Name]);
        //Store biz and continue loop to get the rest of the files Names? :S
    }
}
Reply


Messages In This Thread
Looping and returning multiple values with 1 function - by DBan - 16.04.2012, 11:39
Re: Looping and returning multiple values with 1 function - by [HiC]TheKiller - 16.04.2012, 11:50
Re: Looping and returning multiple values with 1 function - by DBan - 16.04.2012, 11:53
Re: Looping and returning multiple values with 1 function - by DaRkM - 16.04.2012, 12:12
Re: Looping and returning multiple values with 1 function - by DBan - 16.04.2012, 12:33

Forum Jump:


Users browsing this thread: 1 Guest(s)