SA-MP Forums Archive
loop bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: loop bug (/showthread.php?tid=643213)



loop bug - n00blek - 15.10.2017

i am getting better at scripting but 1 thing keeps f***ing me: loops
i know for some of you its easy for me i dont understand it yet
so i made my vehicles for grove street gang that only grove street members can enter. but theres 1 problem.
noone cant enter
now i dont have saving bugs i fixed them(before even grove street couldnt enter HQ but now they can) so i know thats not it.
i wrote this loop now if anyone is interested to help reply
PHP код:
    for(new 0sizeof(GsfCar); ++)
    {
        if(
vehicleid == GsfCar[o] && PlayerInfo[pInfo][pOrgID] != 1)
        {
            
ClearAnimations(playerid);
            
GameTextForPlayer(playerid,"~r~ GROVE STREET FAMILIES",1250,4);
        }
    }
    return 
1;

do i have to define or create something that loop needs or what? idk


Re: loop bug - n00blek - 15.10.2017

sorry for bump but im in hurry


Re: loop bug - n00blek - 15.10.2017

Anyone?


Re: loop bug - Kyle - 15.10.2017

For the fact that you keep bumping I'm going to refuse to help.


Re: loop bug - Fratello - 15.10.2017

"i am getting better at scripting but 1 thing keeps f***ing me: loops"

This may help you. https://raw.githubusercontent.com/co.../pawn-lang.pdf