[HELP] New vehicles wont spawn!
#1

pawn Код:
new nasaprof[2];
pawn Код:
if(vehicleId == nasaprof[0])
        {
            if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
            {
              if(PlayerInfo[playerid][pRank] == 4)
              {
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, " You are not a Green Lake's Professor!");
                    RemovePlayerFromVehicle(playerid);
                }
            }
        }
pawn Код:
nasaprof[0] = CreateVehicle(500,203.8072,1870.2175,13.2512,270.1880,1,1,0,800);// Professor car 1
    nasaprof[1] = CreateVehicle(500,147.9151,1830.3213,17.7554,89.0163,1,1,0,800);// Professor car 2
Cars just wont simply appear. WHats the problem?
Reply
#2

Quote:
Originally Posted by KeyWay
nasaprof[0] = CreateVehicle(500,203.8072,1870.2175,13.2512,270.1 880,1,1,0,800);// Professor car 1
nasaprof[1] = CreateVehicle(500,147.9151,1830.3213,17.7554,89.01 63,1,1,0,800);// Professor car 2[/pawn]
CreateVehicle (modelid, Float, Float:y,Float:z, Float:angle, color1, color2, respawn_delay);

You're not using CreateVehicle correctly.
Reply
#3

You should be getting errors because the arguments do not match the definitions.
Reply
#4

pawn Код:
nasaprof[0] = CreateVehicle(500,203.8072,1870.2175,13.2512,270.1880,1,1,800);// Professor car 1
nasaprof[1] = CreateVehicle(500,147.9151,1830.3213,17.7554,89.0163,1,1,800);// Professor car 2
Try that. You had a 0 after the color IDs which means the cars would respawn after 0 seconds, therefore never spawning.
Reply
#5

Gappy just pointed it out what I was going to post.

Anyways, yeah, delete the '0' before 800 & it Should be okay.
Reply
#6

Yeah thank you all but i figourad that out rightaway. I dont know why moderators removed few messages, but yeah, i got warnings from them.
I was tired and dint notice it, sorry all !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)