Loop question/problem
#6

Tried it like this but its not working

pawn Код:
new id = 0;
                for(new i = 0; i < sizeof(Teleport); i++)
                {
                    if(Teleport[i][Kategorija] == 2)
                    {
                        id ++;
                    }
                   
                    if(listitem == id)
                    {

                        SetPlayerVehPos(playerid, Teleport[id][PozX],Teleport[id][PozY],Teleport[id][PozZ]);

                        new str[127];
                        format(str, sizeof(str), "Teleportovani ste do %s.", Teleport[id][tpIme]);
                        SCM(playerid, -1, str);
                    }
                }

Database if of any help

Reply


Messages In This Thread
Loop question/problem - by ShoortyFl - 11.07.2016, 22:02
Re: Loop question/problem - by Konstantinos - 11.07.2016, 22:10
Re: Loop question/problem - by ShoortyFl - 11.07.2016, 22:13
Re: Loop question/problem - by Konstantinos - 11.07.2016, 22:22
Re: Loop question/problem - by ShoortyFl - 11.07.2016, 22:29
Re: Loop question/problem - by ShoortyFl - 11.07.2016, 23:07
Re: Loop question/problem - by ShoortyFl - 12.07.2016, 09:16
Re: Loop question/problem - by Konstantinos - 12.07.2016, 10:04
Re: Loop question/problem - by ShoortyFl - 12.07.2016, 10:14
Re: Loop question/problem - by Konstantinos - 12.07.2016, 10:18

Forum Jump:


Users browsing this thread: 2 Guest(s)