Little help with a loop
#1

So I've got there 4 vehicle slots & I want to put a new modelid to the empty one (if available)
(0 means empty)
Код:
for(new i = 0; i < 4; i++)
{
    if(player[playerid][vModelid][i] == 0)
    {
But, with this code it is gonna put a new vehicle to every single one that equals to 0, not only one.

Any ideas? Thanx
Reply


Messages In This Thread
Little help with a loop - by cdoubleoper - 03.12.2016, 20:44
Re: Little help with a loop - by Alvitr - 03.12.2016, 20:48

Forum Jump:


Users browsing this thread: 2 Guest(s)