printf don't show up!?
#1




But the code:



pawn Код:
printf("- Se incarca sistemele dinamice pe server..");
    IncarcaStatistica();
    IncarcaBancomatele();
    IncarcaTelefoanele();
    IncarcaGS();
    IncarcaHG();
    IncarcaTeleporturi();
    IncarcaGPS();
    IncarcaSBIZZ();
    IncarcaRents(); <--- [9.]
    printf("\n\n - Toate sistemele au fost incarcate");
    print("Serverul "NUME_SERVER" a fost incarcat cu succes.");
    print("\n\n_________________________________________________");
pawn Код:
stock IncarcaRents()
{
    CreateRent(404, 1, 1, 0, 1225.5182, -1557.5348, 13.2636, 89.4008, 102, 102); // rentcar #1
    printf("[9.] Am incarcat toate vehiculele de rent [%d]",sRents);
}

pawn Код:
stock CreateRent(modelid, type, slot, ownable, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2)
{
    sRents++;
    new RentID = sRents;
    RentInfo[RentID][rType] = type;
    RentInfo[RentID][rSlot] = slot;
    RentInfo[RentID][rOwnable] = ownable;
    new carstring[456];
    format(carstring,sizeof(carstring),"Model vehicul - {00cc33}%s\n\n{FFAF00}Pret inchiriere - {00cc33}%s$\n\n{FFAF00}Intra in vehicul pentru a inchiria.", GetVehicleName(RentInfo[RentID][Vehicle]), FormatMoney(250 * Rata));
    rent[RentID] = Create3DTextLabel(carstring, COLOR_CAR, 0.0, 0.0, 0.0, 15.0, 0);
    RentInfo[RentID][Vehicle] =  AddStaticVehicleEx( modelid, spawn_x, spawn_y, spawn_z, angle, color1, color2, 2500 );
    Attach3DTextLabelToVehicle(rent[RentID], RentInfo[RentID][Vehicle], 0.0, 0.0, 0.0);
}
Why is not coming out ?
Reply
#2

Your rent car... Is it creating that vehicle in game. and if so try put "print("read"); at the bottom of stock createrent. then look in console and see if it says read. if it does then it createrent is not the problem. its something else
Reply
#3

if you access an array out of index which I suspect you are the whole thing will just stop and won't go any futher, it's like using a return there
so make sure that you're not accessing invalid indices by adding print statements in createrent
Reply
#4



Whats this?
Reply
#5

he's showing that that is number 9 and it's not showing up
Reply
#6

UP , any ideas why isn't working..?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)