printf don't show up!? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: printf don't show up!? (
/showthread.php?tid=551748)
printf don't show up!? -
Metharon - 20.12.2014
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 ?
Re: printf don't show up!? -
Blademaster680 - 21.12.2014
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
Re: printf don't show up!? -
cessil - 21.12.2014
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
Re: printf don't show up!? -
DanRellex - 21.12.2014
Whats this?
Re: printf don't show up!? -
cessil - 21.12.2014
he's showing that that is number 9 and it's not showing up
Re: printf don't show up!? -
Metharon - 21.12.2014
UP , any ideas why isn't working..?