SA-MP Forums Archive
adding staticvehicles to a fs - 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: adding staticvehicles to a fs (/showthread.php?tid=189910)



adding staticvehicles to a fs - Tom1412 - 13.11.2010

C:\Users\tom\Desktop\trucking\gamemodes\public.pwn (44) : error 021: symbol already defined: "AddStaticVehicle"
C:\Users\tom\Desktop\trucking\gamemodes\public.pwn (51) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
i get when i add the vehicles

PHP код:
};
    
AddStaticVehicle(435,1985.8317,-2182.7864,13.5469,0,-1,-1)//trailer
    
AddStaticVehicle(435,1990.6339,-2183.1045,13.5469,0,-1,-1)//trailer
    
AddStaticVehicle(435,1994.5883,-2183.2004,13.5469,0,-1,-1)//trailer
    
AddStaticVehicle(403,2002.1622,-2183.4111,13.5469,0,-1,-1)//linerunner
    
AddStaticVehicle(403,2008.8467,-2183.6104,13.5469,0,-1,-1)//linerunner
    
AddStaticVehicle(403,2014.5659,-2183.7810,13.5469,0,-1,-1)//linerunner
    
    
return 1;




Re: adding staticvehicles to a fs - [MWR]Blood - 13.11.2010

Where that comes from?
pawn Код:
};



Re: adding staticvehicles to a fs - Tom1412 - 13.11.2010

worked thanx


Re: adding staticvehicles to a fs - rs.pect - 13.11.2010

Insert it in a function. I think you should add
pawn Код:
public OnFilterScriptInit()
{
before

pawn Код:
AddStaticVehicle(435,1985.8317,-2182.7864,13.5469,0,-1,-1)//trailer



Re: adding staticvehicles to a fs - Tom1412 - 13.11.2010

worked
thanx


Re: adding staticvehicles to a fs - rs.pect - 13.11.2010

Add ; after every // in this part of code:

pawn Код:
AddStaticVehicle(435,1985.8317,-2182.7864,13.5469,0,-1,-1);//trailer
    AddStaticVehicle(435,1990.6339,-2183.1045,13.5469,0,-1,-1);//trailer
    AddStaticVehicle(435,1994.5883,-2183.2004,13.5469,0,-1,-1);//trailer
    AddStaticVehicle(403,2002.1622,-2183.4111,13.5469,0,-1,-1);//linerunner
    AddStaticVehicle(403,2008.8467,-2183.6104,13.5469,0,-1,-1);//linerunner
    AddStaticVehicle(403,2014.5659,-2183.7810,13.5469,0,-1,-1);//linerunner



Re: adding staticvehicles to a fs - Mean - 13.11.2010

You blind, he said it works, now stop bumping.


Re: adding staticvehicles to a fs - rs.pect - 13.11.2010

Quote:

Last edited by Tom1412; 13/11/2010 at 06:01 PM.

He edited this post. I could've add quote to answer.