Wierd Problem
#1

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

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

I need vehicles...
Reply
#4

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

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;
}
Reply
#6

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

Show the whole script, so.
Reply
#8

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

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);
}
Reply
#10

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)