SA-MP Forums Archive
AddStaticVehicleEx alredy defined - 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)
+--- Thread: AddStaticVehicleEx alredy defined (/showthread.php?tid=332903)



AddStaticVehicleEx alredy defined - davve95 - 09.04.2012

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 © 1997-2006, ITB CompuPhase


1 Error.
A bit of my script:
pawn Код:
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.


Re: AddStaticVehicleEx alredy defined - TzAkS. - 09.04.2012

Код:
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


Re: AddStaticVehicleEx alredy defined - davve95 - 09.04.2012

Oh yeah, It whas a while I scripted so forgot.. But thanks! .