Help with error
#1

Here is error information - https://prnt.sc/lvhdal
Here is pawn - https://pastebin.com/4SaKfmig
Код:
public OnGameModeInit()
{
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 270.1425, 0, 0, 0, 0, -1, -1);
    // -- //
    m4object = (356, 1704.51941, -1650.10596, 20.14760);
    // -- //
    ShowPlayerMarkers(0); ShowNameTags(1);
    ManualVehicleEngineAndLights();
    AllowInteriorWeapons(1); ShowPlayerMarkers(2);
    LimitPlayerMarkerRadius(30.0); DisableInteriorEnterExits();
    EnableStuntBonusForAll(0); SetNameTagDrawDistance(30.0);
    // -- //
    SendRconCommand("weburl https://www.********.com/test/");
    SetGameModeText("test v2 | Build: "GM_BUILD"");
    SendRconCommand("mapname San Andreas");
    SendRconCommand("language Ex. Yu.");
    // -- //
    Timer[0] = SetTimer("GlobalTimer_Sekundni", 1000, true);
    Timer[1] = SetTimer("GlobalTimer_Minutni", 60*1000, true);
    // -- //
    IgracaUDMZoni_MeatFactory = 0, IgracaUDMZoni_LVPD = 0,
    IgracaUDMZoni_LibertyCity = 0, IgracaUDMZoni_RCBattlefield = 0,
    IgracaUDMZoni_GhostTown = 0, IgracaUDMZoni_GangHouse = 0;
    CountTimer = 0;
    // -- //
    duel2 = 0;
    duel1 = 0;
    tijek = 0;
    tipduela = 0;
    Ulog = 0;
    CreateObject(13657, 3541.7075,1721.0681,280.9664, 0.0000000,0.0000000,0.0000000, 1000); //trenutno mjesto duela
    DisableInteriorEnterExits();
    SetGameModeText("LLDM v.0002b");
    AddPlayerClass(23, 1710.433715,-1669.379272,20.225049,0, 0, 0, 0, 0, 0, 0);
    // -- //
    CreateGlobalTextDraws();
    // -- //
    LoadMaps(); // THIS IS 262
    LoadLabels();
    LoadFiles();
    return 1;
}
Reply
#2

place Value in this
LoadMaps(); // THIS IS 262
LoadLabels();
LoadFiles();
Reply
#3

I'm assuming the issue is with this line:
PHP код:
m4object = (3561704.51941, -1650.1059620.14760); 
This doesn't make sense to me. What are you trying to achieve with this line?
Reply
#4

Oh yes i forgot to delete that, but i still have erorrs look
> http://prntscr.com/lvlwp7
Reply
#5

The code compiles fine for me after I remove:
PHP код:
m4object = (3561704.51941, -1650.1059620.14760); 
The error must lie above this code if anything.
Reply
#6

I removed that and still have errors..
> https://prnt.sc/lvlwp7
Код:
public OnGameModeInit()
{
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 270.1425, 0, 0, 0, 0, -1, -1);
    // -- //
    ShowPlayerMarkers(0); ShowNameTags(1);
    ManualVehicleEngineAndLights();
    AllowInteriorWeapons(1); ShowPlayerMarkers(2);
    LimitPlayerMarkerRadius(30.0); DisableInteriorEnterExits();
    EnableStuntBonusForAll(0); SetNameTagDrawDistance(30.0);
    // -- //
    SendRconCommand("weburl https://www.********.com/test/");
    SetGameModeText("test v2 | Build: "GM_BUILD"");
    SendRconCommand("mapname San Andreas");
    SendRconCommand("language Ex. Yu.");
    // -- //
    Timer[0] = SetTimer("GlobalTimer_Sekundni", 1000, true);
    Timer[1] = SetTimer("GlobalTimer_Minutni", 60*1000, true);
    // -- //
    IgracaUDMZoni_MeatFactory = 0, IgracaUDMZoni_LVPD = 0,
    IgracaUDMZoni_LibertyCity = 0, IgracaUDMZoni_RCBattlefield = 0,
    IgracaUDMZoni_GhostTown = 0, IgracaUDMZoni_GangHouse = 0;
    CountTimer = 0;
    // -- //
    duel2 = 0;
    duel1 = 0;
    tijek = 0;
    tipduela = 0;
    Ulog = 0;
    CreateObject(13657, 3541.7075,1721.0681,280.9664, 0.0000000,0.0000000,0.0000000, 1000); //trenutno mjesto duela
    DisableInteriorEnterExits();
    SetGameModeText("LLDM v.0002b");
    AddPlayerClass(23, 1710.433715,-1669.379272,20.225049,0, 0, 0, 0, 0, 0, 0);
    // -- //
    CreateGlobalTextDraws();
    // -- //
    LoadMaps(); // THIS IS 259
    LoadLabels();
    LoadFiles();
    return 1;
}
Reply
#7

Can we see where you declare LoadMaps, LoadLabels, CreateGlobalTextDraws, etc.?
Reply
#8

I have this for Maps,Labels and Files
Код:
// -- //
#define LoadLabels
#define LoadMaps
#define LoadFiles
// -- //
FUNCTION: LoadMaps()
{
	// -- SPAWN -- //
    CreateDynamicObject(19076, 1721.54028, -1655.39258, 19.19640,   0.00000, 0.00000, 359.69696);
	CreateDynamicObject(19122, 1722.55591, -1654.32825, 19.50241,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1722.95020, -1656.56909, 19.50241,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1721.05786, -1654.32703, 19.50241,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1720.67603, -1656.53687, 19.50241,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1729.89258, -1662.68323, 19.80241,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1722.65759, -1669.77197, 19.80241,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1724.36829, -1642.39233, 19.70662,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1723.05957, -1642.33606, 19.70662,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1728.97131, -1642.22729, 19.70662,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1730.47241, -1642.25208, 19.70662,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1721.03735, -1642.18835, 19.70662,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1717.88110, -1642.20056, 19.70662,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19054, 1724.12476, -1658.24902, 19.50215,   0.00000, 0.00000, 44.03995);
	CreateDynamicObject(19054, 1719.44751, -1658.21399, 19.61642,   0.00000, 0.00000, 47.58000);
	CreateDynamicObject(19054, 1719.38989, -1653.01392, 19.50215,   0.00000, 0.00000, 137.33990);
	CreateDynamicObject(19054, 1724.13892, -1653.01343, 19.50215,   0.00000, 0.00000, 133.86014);
	CreateDynamicObject(2785, 1700.77197, -1660.16211, 20.04270,   0.00000, 0.00000, 90.00000);
	return 1;
}
// -- //
FUNCTION: LoadLabels()
{
    C3D(""BLUE"{1A94E6}• LaLinea DeathMatch •\n• Since 2017, -1, 1721.54028, -1655.39258, 20.19640, 30);
	C3D(""BLUE"Komande: {FFFFFF}/help", -1, 1713.7937,-1663.4124,20.2280, 30);
	C3D(""BLUE"• /bet •, 0,1702.0183,-1660.1338,20.2196,90.3232);
	C3D(""BLUE"• /duel •, 0,1704.51941, -1650.10596, 20.14760);
	return 1;
}
// -- //
// -- //
FUNCTION: CreateGlobalTextDraws()
{
    InGame_TD[0] = TextDrawCreate(595.199584, 418.366912, "LaLinea");
	TextDrawLetterSize(InGame_TD[0], 0.370500, 1.495000);
	TextDrawAlignment(InGame_TD[0], 2);
	TextDrawColor(InGame_TD[0], 445966079);
	TextDrawSetShadow(InGame_TD[0], 0);
	TextDrawSetOutline(InGame_TD[0], 1);
	TextDrawBackgroundColor(InGame_TD[0], 255);
	TextDrawFont(InGame_TD[0], 3);
	TextDrawSetProportional(InGame_TD[0], 1);
	TextDrawSetShadow(InGame_TD[0], 0);

	InGame_TD[1] = TextDrawCreate(595.000122, 428.566864, "deathmatch");
	TextDrawLetterSize(InGame_TD[1], 0.370500, 1.495000);
	TextDrawAlignment(InGame_TD[1], 2);
	TextDrawColor(InGame_TD[1], -1);
	TextDrawSetShadow(InGame_TD[1], 0);
	TextDrawSetOutline(InGame_TD[1], 1);
	TextDrawBackgroundColor(InGame_TD[1], 255);
	TextDrawFont(InGame_TD[1], 3);
	TextDrawSetProportional(InGame_TD[1], 1);
	TextDrawSetShadow(InGame_TD[1], 0);

	InGame_TD[3] = TextDrawCreate(610.769409, 405.250000, "");
	TextDrawLetterSize(InGame_TD[3], 0.000000, 0.000000);
	TextDrawTextSize(InGame_TD[3], 28.000000, 35.000000);
	TextDrawAlignment(InGame_TD[3], 1);
	TextDrawColor(InGame_TD[3], -1);
	TextDrawSetShadow(InGame_TD[3], 0);
	TextDrawSetOutline(InGame_TD[3], 0);
	TextDrawBackgroundColor(InGame_TD[3], 0);
	TextDrawFont(InGame_TD[3], 5);
	TextDrawSetProportional(InGame_TD[3], 0);
	TextDrawSetShadow(InGame_TD[3], 0);
	TextDrawSetPreviewModel(InGame_TD[3], 19065);
	TextDrawSetPreviewRot(InGame_TD[3], 0.000000, 0.000000, 0.000000, 1.000000);

	// -- //
    DMGPlus[0] = TextDrawCreate( 360.625000, 208.666656, "-48");
    TextDrawLetterSize( DMGPlus[0], 0.315622, 1.185832);
    TextDrawAlignment(DMGPlus[0], 1);
    TextDrawColor(DMGPlus[0], 8388863);
    TextDrawSetShadow(DMGPlus[0], 0);
    TextDrawSetOutline(DMGPlus[0], 1);
    TextDrawBackgroundColor(DMGPlus[0], 255);
    TextDrawFont(DMGPlus[0], 1);
    TextDrawSetProportional(DMGPlus[0], 1);
    TextDrawSetShadow(DMGPlus[0], 0);

    DMGMinus[0] = TextDrawCreate( 308.125000, 208.666610, "-48");
    TextDrawLetterSize( DMGMinus[0], 0.315622, 1.185832);
    TextDrawAlignment(DMGMinus[0], 1);
    TextDrawColor(DMGMinus[0], -16776961);
    TextDrawSetShadow(DMGMinus[0], 0);
    TextDrawSetOutline(DMGMinus[0], 1);
    TextDrawBackgroundColor(DMGMinus[0], 255);
    TextDrawFont(DMGMinus[0], 1);
    TextDrawSetProportional(DMGMinus[0], 1);
    TextDrawSetShadow(DMGMinus[0], 0);

	return 1;
}
// -- //
Reply
#9

There is no need for LoadLabels, LoadMaps and LoadFiles to be defined.

Try this code instead.

Код:
LoadMaps()
{
	// -- SPAWN -- //
        CreateDynamicObject(19076, 1721.54028, -1655.39258, 19.19640,   0.00000, 0.00000, 359.69696);
	CreateDynamicObject(19122, 1722.55591, -1654.32825, 19.50241,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1722.95020, -1656.56909, 19.50241,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1721.05786, -1654.32703, 19.50241,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1720.67603, -1656.53687, 19.50241,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1729.89258, -1662.68323, 19.80241,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1722.65759, -1669.77197, 19.80241,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1724.36829, -1642.39233, 19.70662,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1723.05957, -1642.33606, 19.70662,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1728.97131, -1642.22729, 19.70662,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1730.47241, -1642.25208, 19.70662,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1721.03735, -1642.18835, 19.70662,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19122, 1717.88110, -1642.20056, 19.70662,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19054, 1724.12476, -1658.24902, 19.50215,   0.00000, 0.00000, 44.03995);
	CreateDynamicObject(19054, 1719.44751, -1658.21399, 19.61642,   0.00000, 0.00000, 47.58000);
	CreateDynamicObject(19054, 1719.38989, -1653.01392, 19.50215,   0.00000, 0.00000, 137.33990);
	CreateDynamicObject(19054, 1724.13892, -1653.01343, 19.50215,   0.00000, 0.00000, 133.86014);
	CreateDynamicObject(2785, 1700.77197, -1660.16211, 20.04270,   0.00000, 0.00000, 90.00000);
	return 1;
}
// -- //
LoadLabels()
{
        C3D(""BLUE"{1A94E6}• LaLinea DeathMatch •\n• Since 2017, -1, 1721.54028, -1655.39258, 20.19640, 30);
	C3D(""BLUE"Komande: {FFFFFF}/help", -1, 1713.7937,-1663.4124,20.2280, 30);
	C3D(""BLUE"• /bet •, 0,1702.0183,-1660.1338,20.2196,90.3232);
	C3D(""BLUE"• /duel •, 0,1704.51941, -1650.10596, 20.14760);
	return 1;
}
// -- //
// -- //
CreateGlobalTextDraws()
{
        InGame_TD[0] = TextDrawCreate(595.199584, 418.366912, "LaLinea");
	TextDrawLetterSize(InGame_TD[0], 0.370500, 1.495000);
	TextDrawAlignment(InGame_TD[0], 2);
	TextDrawColor(InGame_TD[0], 445966079);
	TextDrawSetShadow(InGame_TD[0], 0);
	TextDrawSetOutline(InGame_TD[0], 1);
	TextDrawBackgroundColor(InGame_TD[0], 255);
	TextDrawFont(InGame_TD[0], 3);
	TextDrawSetProportional(InGame_TD[0], 1);
	TextDrawSetShadow(InGame_TD[0], 0);

	InGame_TD[1] = TextDrawCreate(595.000122, 428.566864, "deathmatch");
	TextDrawLetterSize(InGame_TD[1], 0.370500, 1.495000);
	TextDrawAlignment(InGame_TD[1], 2);
	TextDrawColor(InGame_TD[1], -1);
	TextDrawSetShadow(InGame_TD[1], 0);
	TextDrawSetOutline(InGame_TD[1], 1);
	TextDrawBackgroundColor(InGame_TD[1], 255);
	TextDrawFont(InGame_TD[1], 3);
	TextDrawSetProportional(InGame_TD[1], 1);
	TextDrawSetShadow(InGame_TD[1], 0);

	InGame_TD[3] = TextDrawCreate(610.769409, 405.250000, "");
	TextDrawLetterSize(InGame_TD[3], 0.000000, 0.000000);
	TextDrawTextSize(InGame_TD[3], 28.000000, 35.000000);
	TextDrawAlignment(InGame_TD[3], 1);
	TextDrawColor(InGame_TD[3], -1);
	TextDrawSetShadow(InGame_TD[3], 0);
	TextDrawSetOutline(InGame_TD[3], 0);
	TextDrawBackgroundColor(InGame_TD[3], 0);
	TextDrawFont(InGame_TD[3], 5);
	TextDrawSetProportional(InGame_TD[3], 0);
	TextDrawSetShadow(InGame_TD[3], 0);
	TextDrawSetPreviewModel(InGame_TD[3], 19065);
	TextDrawSetPreviewRot(InGame_TD[3], 0.000000, 0.000000, 0.000000, 1.000000);

	// -- //
        DMGPlus[0] = TextDrawCreate( 360.625000, 208.666656, "-48");
        TextDrawLetterSize( DMGPlus[0], 0.315622, 1.185832);
        TextDrawAlignment(DMGPlus[0], 1);
        TextDrawColor(DMGPlus[0], 8388863);
        TextDrawSetShadow(DMGPlus[0], 0);
        TextDrawSetOutline(DMGPlus[0], 1);
        TextDrawBackgroundColor(DMGPlus[0], 255);
        TextDrawFont(DMGPlus[0], 1);
        TextDrawSetProportional(DMGPlus[0], 1);
        TextDrawSetShadow(DMGPlus[0], 0);

        DMGMinus[0] = TextDrawCreate( 308.125000, 208.666610, "-48");
        TextDrawLetterSize( DMGMinus[0], 0.315622, 1.185832);
        TextDrawAlignment(DMGMinus[0], 1);
        TextDrawColor(DMGMinus[0], -16776961);
        TextDrawSetShadow(DMGMinus[0], 0);
        TextDrawSetOutline(DMGMinus[0], 1);
        TextDrawBackgroundColor(DMGMinus[0], 255);
        TextDrawFont(DMGMinus[0], 1);
        TextDrawSetProportional(DMGMinus[0], 1);
        TextDrawSetShadow(DMGMinus[0], 0);

	return 1;
}
// -- //
This compiles for me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)