SA-MP Forums Archive
Help With AddStaticVehicle! - 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 With AddStaticVehicle! (/showthread.php?tid=95560)



Help With AddStaticVehicle! - Alien Runner - 04.09.2009

I have a problem with my script:
Quote:

AddStaticVehicle(522,502.384521 -2056.736572 446.026886,0,0);
AddStaticVehicle(522,499.273346 -2056.767334 446.026886,0,0);
AddStaticVehicle(522,496.112122 -2056.762939 446.026886,0,0);
AddStaticVehicle(522,493.219513 -2057.012939 446.026886,0,0);
AddStaticVehicle(522,490.531769 -2056.635498 446.026886,0,0);
AddStaticVehicle(522,487.348114 -2056.779297 446.026886,0,0);
AddStaticVehicle(522,484.171234 -2056.923096 446.026886,0,0);
AddStaticVehicle(522,480.999878 -2057.141113 446.026886,0,0);

When i want to compile, it give me some errors:
Quote:

F:\chestii gta sa\MyMap\Map.pwn(1 : error 001: expected token: ",", but found "-rational value-"
F:\chestii gta sa\MyMap\Map.pwn(1 : warning 215: expression has no effect
F:\chestii gta sa\MyMap\Map.pwn(1 : warning 215: expression has no effect
F:\chestii gta sa\MyMap\Map.pwn(1 : warning 215: expression has no effect
F:\chestii gta sa\MyMap\Map.pwn(1 : error 001: expected token: ";", but found ")"
F:\chestii gta sa\MyMap\Map.pwn(1 : error 029: invalid expression, assumed zero
F:\chestii gta sa\MyMap\Map.pwn(1 : fatal error 107: too many error messages on one line

How i resolve thats? Sorry for my bad english.


Re: Help With AddStaticVehicle! - ilikepie2221 - 04.09.2009

Um, which one is line 18?


Re: Help With AddStaticVehicle! - Correlli - 04.09.2009

Quote:

AddStaticVehicle(522,502.384521 -2056.736572 446.026886,0,0);

You forgot ,

Quote:

AddStaticVehicle(522,502.384521,-2056.736572,446.026886,0,0);