If i add cars to a new gm i started from scratch it gives errors!
#1

Hello..

I just started new gamemode, witch has LuxAdmin system inside, and nothing more, i tried to add some cars with /car and used /save to get coords, added the coords to the gamemode, like this:

//Rekkad
AddStaticVehicle(403,41.4704,-223.8021,2.3749,266.1766,32,52); //
AddStaticVehicle(515,41.6779,-229.3573,2.7772,266.1888,3,122); //
AddStaticVehicle(403,44.5465,-237.7068,2.2809,265.0684,24,26); //
AddStaticVehicle(514,44.6559,-248.0411,2.2573,265.9933,23,35); //
AddStaticVehicle(515,45.1594,-243.0104,2.6854,266.5273,112,96); //
AddStaticVehicle(403,47.5718,-251.9598,2.2497,266.8644,124,53); //
AddStaticVehicle(514,49.0706,-256.9178,2.2422,265.9139,39,103); //
//Treilerid
AddStaticVehicle(435,65.0494,-281.7348,1.3052,358.5661,10,10); //
AddStaticVehicle(435,50.9561,-281.5721,1.4560,0.8553,10,10); //
AddStaticVehicle(591,39.3386,-279.9971,1.7424,358.6024,10,10); //
AddStaticVehicle(591,25.4505,-281.1606,2.0899,324.8264,10,10); //
AddStaticVehicle(450,89.8403,-301.1762,1.3052,359.0294,10,10); //
AddStaticVehicle(450,103.3911,-283.1452,1.3051,359.3055,10,10); //
AddStaticVehicle(584,107.4087,-230.2679,1.3052,87.7529,10,10); //

And it gives this error:

C:\Documents and Settings\Microsoft.MICROSOF-95F15B\Desktop\SAMP\Deserve do die!\gamemodes\GMTS.pwn(31) : error 021: symbol already defined: "AddStaticVehicle"
C:\Documents and Settings\Microsoft.MICROSOF-95F15B\Desktop\SAMP\Deserve do die!\gamemodes\GMTS.pwn(39) : error 021: symbol already defined: "AddStaticVehicle"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


I would appreciate FAST help!


//
Btw, its under GameModeInit. That might be the problem to.
Reply
#2

Did you define AddStaticVehicle? It seems like you tried defining it.
Reply
#3

Are you sure it looks something like this?
pawn Код:
public OnGameModeInit()
{ //<---- Essential!

    //Rekkad
    AddStaticVehicle(403,41.4704,-223.8021,2.3749,266.1766,32,52); //
    AddStaticVehicle(515,41.6779,-229.3573,2.7772,266.1888,3,122); //
    AddStaticVehicle(403,44.5465,-237.7068,2.2809,265.0684,24,26); //
    AddStaticVehicle(514,44.6559,-248.0411,2.2573,265.9933,23,35); //
    AddStaticVehicle(515,45.1594,-243.0104,2.6854,266.5273,112,96); //
    AddStaticVehicle(403,47.5718,-251.9598,2.2497,266.8644,124,53); //
    AddStaticVehicle(514,49.0706,-256.9178,2.2422,265.9139,39,103); //
    //Treilerid
    AddStaticVehicle(435,65.0494,-281.7348,1.3052,358.5661,10,10); //
    AddStaticVehicle(435,50.9561,-281.5721,1.4560,0.8553,10,10); //
    AddStaticVehicle(591,39.3386,-279.9971,1.7424,358.6024,10,10); //
    AddStaticVehicle(591,25.4505,-281.1606,2.0899,324.8264,10,10); //
    AddStaticVehicle(450,89.8403,-301.1762,1.3052,359.0294,10,10); //
    AddStaticVehicle(450,103.3911,-283.1452,1.3051,359.3055,10,10); //
    AddStaticVehicle(584,107.4087,-230.2679,1.3052,87.7529,10,10); //

    return 1;
} //<---- This too!
else you must have defined it as he said above.

It's better if you show us..
Reply
#4

pawn Код:
public OnGameModeInit()
{
    // add your cars

    return 1;
}
So yea, that is the problem.
Reply
#5

No, i didnt. The define list is:
Quote:

/*
Galamonkey Trucking
Made by Sensitive.
Mapper MasterDisasterr
*/

//Includes
#include <a_samp>
#include <dutils>
//Defines
#include <a_samp>
#define GELTONA 0xFFFF00FF
#define BALTA 0xFFFFFFFF
#define COLOR_GREY 0xAFAFAFAA
#pragma tabsize 0

This forum requires that you wait 120 seconds between posts. Please try again in 72 seconds.
Bit*h
Reply
#6

Please, if someone can, come into scripter in my server, i dont even know how to make classes -.-
You will get credits and everything in GM and so on.

//+ Server is hosted on host, not homehost.!
Reply
#7

Helpp!!
Reply
#8

add this at the top of your script:

Код:
#define MAX_STREAM_OBJECTS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)