[HELP] New vehicles wont spawn! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] New vehicles wont spawn! (
/showthread.php?tid=81157)
[HELP] New vehicles wont spawn! -
KeyWay - 08.06.2009
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?
Re: [HELP] New vehicles wont spawn! -
Correlli - 08.06.2009
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.
Re: [HELP] New vehicles wont spawn! -
[HiC]TheKiller - 09.06.2009
You should be getting errors because the arguments do not match the definitions.
Re: [HELP] New vehicles wont spawn! -
Gappy - 09.06.2009
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.
Re: [HELP] New vehicles wont spawn! -
Abernethy - 09.06.2009
Gappy just pointed it out what I was going to post.
Anyways, yeah, delete the '
0' before
800 & it
Should be okay.
Re: [HELP] New vehicles wont spawn! -
KeyWay - 09.06.2009
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 !