SA-MP Forums Archive
Wierd Problem - 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: Wierd Problem (/showthread.php?tid=201528)



Wierd Problem - propilot - 21.12.2010

Hey, for some wierd problem I am keep getting this error

Код:
C:\Users\Alex - Webhost\Desktop\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\gamemodes\sfp.pwn(32) : error 021: symbol already defined: "AddStaticVehicle"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
and my line is

pawn Код:
public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Server For Pilots");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

    AddStaticVehicle(415,-2089.7454,-85.3183,34.9356,0.0900,36,1);
}
Thanks for your time, and help,


Re: Wierd Problem - blackwave - 21.12.2010

Remove that:
pawn Код:
AddStaticVehicle(415,-2089.7454,-85.3183,34.9356,0.0900,36,1);
}
Also check if you did add:
pawn Код:
#include <a_samp> // If you didn't, then do add



Re: Wierd Problem - propilot - 21.12.2010

I need vehicles...


Re: Wierd Problem - iggy1 - 21.12.2010

pawn Код:
public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Server For Pilots");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

    AddStaticVehicle(415,-2089.7454,-85.3183,34.9356,0.0900,36,1);//delete me
}//and me
The "delete me" line need to be inside a callback or function.


Re: Wierd Problem - blackwave - 21.12.2010

The error was on gamemode folder, which means it's a gamemode. So, would be like this:
pawn Код:
public OnGameModeInit()
{
   
    SetGameModeText("Server For Pilots");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
     AddStaticVehicle(415,-2089.7454,-85.3183,34.9356,0.0900,36,1);
    return 1;
}



Re: Wierd Problem - propilot - 21.12.2010

Quote:
Originally Posted by iggy1
Посмотреть сообщение
pawn Код:
public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Server For Pilots");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

    AddStaticVehicle(415,-2089.7454,-85.3183,34.9356,0.0900,36,1);//delete me
}//and me
The "delete me" line need to be inside a callback or function.
I want to add vehicles to my gamemode. I made a gamemode once I never got those errors.
For some reason I got it.
:/ I am making a flying server and I made already around 905 vehicles with in 3 days lol.
So I need to add all of them but kept getting errors.


Re: Wierd Problem - blackwave - 21.12.2010

Show the whole script, so.


Re: Wierd Problem - propilot - 21.12.2010

Quote:
Originally Posted by blackwave
Посмотреть сообщение
Show the whole script, so.
Can't it wont be released....


Re: Wierd Problem - Nero_3D - 21.12.2010

Quote:
Originally Posted by propilot
Посмотреть сообщение
I want to add vehicles to my gamemode. I made a gamemode once I never got those errors.
For some reason I got it.
:/ I am making a flying server and I made already around 905 vehicles with in 3 days lol.
So I need to add all of them but kept getting errors.
Did you already tried that ?

pawn Код:
public OnGameModeInit()
{    
    SetGameModeText("Server For Pilots");

    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);

    AddStaticVehicle(415,-2089.7454,-85.3183,34.9356,0.0900,36,1);
}



Re: Wierd Problem - WillyP - 21.12.2010

Quote:
Originally Posted by blackwave
Посмотреть сообщение
Show the whole script, so.
Why would he want to give away his GM?

pawn Код:
public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Server For Pilots");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddStaticVehicle(415,-2089.7454,-85.3183,34.9356,0.0900,36,1);
    return 1;
}