Loop question/problem
#8

Don't forget that listitem starts from 0 and you increase to 1 when it starts:
PHP код:
new id = -1;
for (new 
0sizeof(Teleport); i++)
{
    if (
Teleport[i][Kategorija] == && ++id == listitem)
    {
        
SetPlayerVehPos(playeridTeleport[i][PozX], Teleport[i][PozY], Teleport[i][PozZ]);
        new 
str[127];
        
format(strsizeof(str), "Teleportovani ste do %s."Teleport[i][tpIme]);
        
SCM(playerid, -1str);
        break;
    }

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)