[Help] Is this causing Infinite Loop?
#5

I don't know why you're hashing anything in this situation..
First Code:
pawn Код:
new c = 0;
for(new n = 0; n < 20; n++)
{
    if(strcmp(member[n], "Niko", false) == 0)
    {
        //the rest of my code
        return 1;
    }
    else
    {
        c++;
    }
    if(c == 20) return SCM(playerid... //the rest of my code
}
Second Code:
pawn Код:
new org[64], c = 0;
new ime[MAX_PLAYER_NAME];
GetPlayerName(playerid, ime, sizeof(ime));
format(org,64,"Org_%d.ini",PlayerInfo[playerid][pOrg]);
INI_ParseFile(org, "LoadMembers_%s", .bExtra = true, .extra = playerid);
for(new n = 0; n < 20; n++)
{
    if(strcmp(member[n], ime, false) != 0)
    {
        c++;
    }
    if(c == 20)
    {
        //the rest of my code
    }
}
Reply


Messages In This Thread
[Help] Is this causing Infinite Loop? - by David (Sabljak) - 28.11.2013, 19:46
Re: [Help] Is this causing Infinite Loop? - by Loot - 28.11.2013, 19:52
Re: [Help] Is this causing Infinite Loop? - by David (Sabljak) - 28.11.2013, 19:54
Re: [Help] Is this causing Infinite Loop? - by David (Sabljak) - 29.11.2013, 19:51
Re: [Help] Is this causing Infinite Loop? - by Threshold - 29.11.2013, 22:42
Re: [Help] Is this causing Infinite Loop? - by David (Sabljak) - 30.11.2013, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)