SA-MP Forums Archive
Car spawning - 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: Car spawning (/showthread.php?tid=262590)



Car spawning - Brunok - 18.06.2011

Quote:

if(pickupid == Infernus) return CreateVehicle(411,2942.7227,-3081.2732,115.1415,0,0,0);
if(pickupid == Infernus2) return CreateVehicle(411,2939.0242,-3081.2024,115.1415,0,0,0);
if(pickupid == Infernus3) return CreateVehicle(411,2935.2649,-3081.6433,115.1415,0,0,0);
if(pickupid == Turismo) return CreateVehicle(451,2930.7097,-3081.1228,115.1415,0,0,0);
if(pickupid == Turismo2) return CreateVehicle(451,2926.2119,-3080.9050,115.1415,0,0,0);

Gives me :


Quote:

J:\Spellen\Samp server\gamemodes\Race.pwn(454) : warning 202: number of arguments does not match definition
J:\Spellen\Samp server\gamemodes\Race.pwn(455) : warning 202: number of arguments does not match definition
J:\Spellen\Samp server\gamemodes\Race.pwn(456) : warning 202: number of arguments does not match definition
J:\Spellen\Samp server\gamemodes\Race.pwn(457) : warning 202: number of arguments does not match definition
J:\Spellen\Samp server\gamemodes\Race.pwn(45 : warning 202: number of arguments does not match definition

help?


Re: Car spawning - Wesley221 - 18.06.2011

pawn Код:
if(pickupid == Infernus) return CreateVehicle(411,2942.7227,-3081.2732,115.1415, 0, 0, 15);
if(pickupid == Infernus2) return CreateVehicle(411,2939.0242,-3081.2024,115.1415, 0, 0,15);
if(pickupid == Infernus3) return CreateVehicle(411,2935.2649,-3081.6433,115.1415, 0, 0,15);
if(pickupid == Turismo) return CreateVehicle(451,2930.7097,-3081.1228,115.1415, 0, 0, 15);
if(pickupid == Turismo2) return CreateVehicle(451,2926.2119,-3080.9050,115.1415, 0, 0, 15);
CreateVehicle(vehicleid, x, y, z, angle, color 1, color 2, respawn_delay);
If im right the Respawn_delay can't be 0