Free World Don't Work
#8

pawn Код:
stock WorldLibero(worldid)
{
    if(worldid==0)return false;
    for(new i = 0; i < MAX_PLAYERS; i++) // Here you start a loop, but where does it start and where does it end?
    //  {
    if(GetPlayerVirtualWorld(i) == worldid) /* break removed */ return false;
    //  }
    return true;
}
The same with the while-loop in your second code snippet.

https://sampwiki.blast.hk/wiki/Loops

If it's at all possible to run a loop without start/end tag you should write it all in one row, I think.
Reply


Messages In This Thread
Free World Don't Work - by SamyRomafia - 03.02.2011, 20:09
AW: Free World Don't Work - by !Phoenix! - 03.02.2011, 20:34
Re: Free World Don't Work - by SamyRomafia - 03.02.2011, 21:22
Re: Free World Don't Work - by SamyRomafia - 04.02.2011, 05:39
Re: Free World Don't Work - by exDDDD - 04.02.2011, 07:18
Re: Free World Don't Work - by hadzx - 04.02.2011, 09:09
Re: Free World Don't Work - by AlExAlExAlEx - 04.02.2011, 09:22
AW: Free World Don't Work - by !Phoenix! - 04.02.2011, 14:34
Re: Free World Don't Work - by MadeMan - 04.02.2011, 14:39
AW: Free World Don't Work - by !Phoenix! - 04.02.2011, 14:49

Forum Jump:


Users browsing this thread: 3 Guest(s)