05/07/2023 14:42
(05/07/2023 11:34)Dr Editor Escreveu:Código:#include <a_samp>
#include <streamer>
#define MAX_TAXIS 6
new Float:posicoes[MAX_TAXIS][4] =
{
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0}
};
new veiculos[MAX_TAXIS];
new objetos[MAX_TAXIS];
main()
{
for(new i = 0; i < MAX_TAXIS; i ++)
{
veiculos[i] = AddStaticVehicleEx(420,posicoes[i][0],posicoes[i][1],posicoes[i][2],posicoes[i][3],6,6,210);//TAXI 1 UNITY STATION
objetos[i] = CreateDynamicObject(19294,-4228.8921,3551.6353,0.6894,0.0,0.0,0.0);
AttachDynamicObjectToVehicle(objetos[i],veiculos[i],0.0,-0.4,0.9,0.0,0.0,0.0);
}
}
Olá,mt obr pela atenção,mas tem algumas parte desse code q eu n entendo tipo:a for(new i = 0; i < MAX_TAXIS; i ++) e praq ela serve
Programador de Samp (ainda iniciante,mas futuramente grande)