21.08.2010, 08:36
Hi guys I am making car spawn codes in dialog . I NEED help to making it in short way .
Now guys it's an exaple t code but its only two car in is codes but I ave to make all cars for this I have to add "createvehicle()" in every item IS there any way to make like this .
if(listitem == 0)
{
model = 400
else if(listitem == 1)
{
model = 401
{
.................... Now what to d please help .
Код:
if(dialogid == 21212)
{
if(response)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
{
model = 402
CreateVehicle(model, X+1,Y+5,Z+1, 0.0, 1, 1, 60000);
else if(listitem == 1)
{
model = 402
CreateVehicle(model, X+1,Y+5,Z+1, 0.0, 1, 1, 60000);
}
}
if(listitem == 0)
{
model = 400
else if(listitem == 1)
{
model = 401
{
.................... Now what to d please help .

