Array issue.
#3

Quote:
Originally Posted by mastermax7777
Посмотреть сообщение
sizeof(CmdList)
I think this is how you wanted it to do it. The loop will stop at the end element of your array.
pawn Код:
public OnFilterScriptInit()
{
    print("| RHousing Version: 1.0 |");
    for (new i = 0; i >= sizeof(CmdList); i++)
    {
            if (CmdList[i] != 0)
            {
                print("yay");
            }
    }
    return 1;
}
Rep+4 for the attempt to learn.
Reply


Messages In This Thread
Array issue. - by kin - 15.06.2013, 03:25
Re: Array issue. - by mastermax7777 - 15.06.2013, 03:28
Re: Array issue. - by Ballu Miaa - 15.06.2013, 03:32
Re: Array issue. - by kin - 15.06.2013, 03:47
Re: Array issue. - by Niko_boy - 15.06.2013, 06:04
Re: Array issue. - by mastermax7777 - 15.06.2013, 07:11
Re: Array issue. - by KingHual - 15.06.2013, 07:22

Forum Jump:


Users browsing this thread: 1 Guest(s)