I could use some help - Printable Version +- Las Venturas Playground (https://forum.sa-mp.nl) +-- Forum: Miscellaneous (https://forum.sa-mp.nl/forum-4.html) +--- Forum: Gaming (https://forum.sa-mp.nl/forum-27.html) +--- Thread: I could use some help (/thread-15873.html) |
I could use some help - Matthias - 01-28-2009 Hi, As I'm a beginning scripter, I just wanted to try to make an object move with a cmd, well I tried to script it, but it keeps giving me errors. And I can't find where I'm wrong. Code: // Credits goto Matthias Van Eeghem aka GTA_Rules It keeps giving me these errors: Code: C:\Users\Matthias\Desktop\ship.pwn(14) : warning 202: number of arguments does not match definition I hope somebody can help me. Thanks bye : w Re: I could use some help - Jay - 01-28-2009 Line 14: Code: Pirateship = CreateObject(8493, 1908.9828, 543.4374, -0.4981,8, 0.0000, 0.0000, 0.0000); CreateObject has 7 parameters. Presuming the 5th parameter, "8" is a mistake, try: Code: Pirateship = CreateObject(8493, 1908.9828, 543.4374, -0.4981, 0.0000, 0.0000, 0.0000); Line 30: MoveObject (Pirateship,1908.9828, 543.4374, -0.4981,8,0.5); Again, with the MoveObject statement, there appears to be an extra param in there, being 8. MoveObject only has 5 params. Presuming its another mistake, remove the 8 and it's fixed Re: I could use some help - Matthias - 01-28-2009 Thanks Jay it worked indeed , ty for your help Re: I could use some help - Philip - 01-29-2009 I would just like to add that if you want to add and see your objects ingame you will need to create a filterscript to add/delete objects from you server. Re: I could use some help - FarePak - 01-30-2009 (01-29-2009, 11:57 PM)Philip link Wrote: I would just like to add that if you want to add and see your objects ingame you will need to create a filterscript to add/delete objects from you server. Why are you stating the obvious? Thats like saying "At night its dark" Re: I could use some help - Matthias - 01-30-2009 (01-29-2009, 11:57 PM)Philip link Wrote: I would just like to add that if you want to add and see your objects ingame you will need to create a filterscript to add/delete objects from you server.Thanks but I knew that xD |