(Newbie) Error fix needed!
#2

You probably have no idea what you're exactly doing. You need Incognito's streamer plugin for using CreateDynamicObject. You cannot define like that and you also have to include the includes in the script in order to compile properly.

pawn Код:
#include <a_samp>
#include <streamer>

public OnFilterScriptInit() {
    //New Objects
    CreateDynamicObject(19340, -2061.02075, 416.84100, 29.80970,   1.00000, 0.00000, 180.00000);
    CreateDynamicObject(19340, -2092.90918, 416.85651, 29.81910,   1.00000, 0.00000, 180.00000);
    CreateDynamicObject(8656, -2122.12256, 330.51520, 36.06490,   0.00000, -1.00000, -90.00000);
    CreateDynamicObject(8656, -2136.88403, 367.81030, 35.40390,   -1.00000, 0.00000, 0.00000);
    CreateDynamicObject(8656, -2136.89355, 345.38669, 35.80490,   -1.00000, 0.00000, 0.00000);
    CreateDynamicObject(8656, -2031.89868, 395.94910, 35.26490,   0.00000, -1.00000, -90.00000);
    CreateDynamicObject(8656, -2120.36279, 403.74799, 35.22490,   0.00000, -1.00000, -90.00000);
    CreateDynamicObject(8656, -2093.88647, 330.49829, 36.06490,   0.00000, -1.00000, -90.00000);
    CreateDynamicObject(8656, -2114.54028, 397.47433, 34.94390,   -1.00000, 0.00000, 0.00000);
    CreateDynamicObject(8656, -2017.04688, 345.25430, 35.80490,   -1.00000, 0.00000, 0.00000);
    CreateDynamicObject(8656, -2063.34766, 330.49841, 36.06490,   0.00000, -1.00000, -90.00000);
    CreateDynamicObject(8656, -2063.51343, 382.47009, 35.22490,   0.00000, -1.00000, -90.00000);
    CreateDynamicObject(8656, -2082.89648, 382.48141, 35.22490,   0.00000, -1.00000, -90.00000);
    CreateDynamicObject(8656, -2017.05908, 366.65860, 35.40389,   -1.00000, 0.00000, 0.00000);
    CreateDynamicObject(8656, -2058.36304, 397.59650, 34.94390,   -1.00000, 0.00000, 0.00000);
    CreateDynamicObject(8656, -2102.04663, 382.47000, 35.22490,   0.00000, -1.00000, -90.00000);
    CreateDynamicObject(8656, -2032.80579, 330.49991, 36.06490,   0.00000, -1.00000, -90.00000);
    CreateDynamicObject(8656, -2042.91479, 395.94809, 35.26490,   0.00000, -1.00000, -90.00000);
    CreateDynamicObject(8496, -2081.91748, 376.68359, 40.87480,   0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1536, -2083.03076, 357.64981, 34.58430,   0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1536, -2080.02222, 357.68979, 34.58430,   0.00000, 0.00000, 180.00000);  
    return true;
}

public OnPlayerConnect(playerid) {
    //Removals
    RemoveBuildingForPlayer(playerid, 10946, -2076.6563, 354.3672, 35.7891, 0.25);
    RemoveBuildingForPlayer(playerid, 11024, -2076.2734, 359.3203, 44.5938, 0.25);
    RemoveBuildingForPlayer(playerid, 11403, -2076.6563, 354.3672, 35.7891, 0.25);
    RemoveBuildingForPlayer(playerid, 3868, -2120.7656, 336.8672, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3868, -2103.3281, 336.8672, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3868, -2032.2891, 336.8672, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3868, -2022.0859, 347.1328, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3868, -2022.0859, 364.5781, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3868, -2032.2969, 380.7422, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3868, -2131.1797, 347.2813, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3868, -2131.1797, 364.7266, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3868, -2049.7344, 336.8672, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3867, -2131.1797, 347.2813, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3867, -2120.7656, 336.8672, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3867, -2103.3281, 336.8672, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3867, -2049.7344, 336.8672, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3867, -2032.2891, 336.8672, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3867, -2022.0859, 347.1328, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3867, -2131.1797, 364.7266, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 10949, -2076.2734, 359.3203, 44.5938, 0.25);
    RemoveBuildingForPlayer(playerid, 3867, -2032.2969, 380.7422, 49.1563, 0.25);
    RemoveBuildingForPlayer(playerid, 3867, -2022.0859, 364.5781, 49.1563, 0.25);
    return true;
}
EDIT: Grr, I forgot to put RemoveBuilding codes in OnPlayerConnect.
Reply


Messages In This Thread
(Newbie) Error fix needed! - by weedxd - 13.05.2014, 11:54
Re: (Newbie) Error fix needed! - by iZN - 13.05.2014, 11:57
Re: (Newbie) Error fix needed! - by Konstantinos - 13.05.2014, 11:59
Re: (Newbie) Error fix needed! - by weedxd - 13.05.2014, 12:01
Re: (Newbie) Error fix needed! - by iZN - 13.05.2014, 12:02
Re: (Newbie) Error fix needed! - by weedxd - 13.05.2014, 12:06

Forum Jump:


Users browsing this thread: 1 Guest(s)