adding staticvehicles to a fs
#1

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;

Reply
#2

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

worked thanx
Reply
#4

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
Reply
#5

worked
thanx
Reply
#6

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
Reply
#7

You blind, he said it works, now stop bumping.
Reply
#8

Quote:

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)