Loop doesn't execute properly
#1

pawn Код:
for(new i = 1; i <= MAX_VEHICLES; i++)
    {
        if(IsValidVehicle(i))
        {
            if(IsSellCar(i))
            {
                SetVehicleNumberPlate(i, "___");
                SetVehicleToRespawn(i);
                strcpy(aInfo[i][veh_numplate], "___", 30);
                aInfo[i][nuosava] = 0;
                print("selling cars");
            }
            else if(IsMedCar(i))
            {
                new s[30];
                s = GenerateRandomVehicleNumPlate(i);
                strcpy(aInfo[i][veh_numplate], s, 30);
                aInfo[i][nuosava] = 0;
                print("med cars");
            }
            else if(IsVMCar(i))
            {
                new s[30];
            s = GenerateRandomVehicleNumPlate(i);
                strcpy(aInfo[i][veh_numplate], s, 30);
                aInfo[i][nuosava] = 0;
                print("vm cars");
            }
        }
    }

It stucks after 1st loop.
Reply
#2

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)