PDA

View Full Version : AddStaticVehicleEx alredy defined


davve95
09/04/2012, 06:34 PM
Hi!


When I scripted a bit, I got this error:


C:\Users\Davve\Desktop\Fire n flames RPG DM\Server\Fire.pwn(40) : error 021: symbol already defined: "AddStaticVehicleEx"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



A bit of my script:

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
AddStaticVehicleEx(428,-2644.09960938,1351.29980469,7.40000010,91.99951172 ,-1,-1,15); //Securicar


And I tryd with delete the line there the error whas but I got still get error on another
AddStaticVehicleEx...


Thanks alot.

TzAkS.
09/04/2012, 06:41 PM
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddStaticVehicleEx(428,-2644.09960938,1351.29980469,7.40000010,91.99951172 ,-1,-1,15); //Securicar
return 1;
}
It must be inside to OnGameModeInit

davve95
09/04/2012, 07:54 PM
Oh yeah, It whas a while I scripted so forgot.. But thanks! :D.