Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Bandit234 Januar 15, 2022, 15:14:02 posle podne

Naslov: map error
Poruka od: Bandit234 Januar 15, 2022, 15:14:02 posle podne
Problem(error/warning): error 035: argument type mismatch (argument 2)
Deo skripte:
Pawno Code: [Izaberi]
autoskola[0] = CreateDynamicObject(18980, 2049.6582, -1922.2099, 3.2300, 0.0000, 0.0000, 0.0000); //Concrete1mx1mx25m
SetDynamicObjectMaterial(autoskola[0], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[1] = CreateDynamicObject(19447, 2049.6567, -1916.8579, 13.9377, 0.0000, 0.0000, 0.0000); //wall087
SetDynamicObjectMaterial(autoskola[1], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[2] = CreateDynamicObject(18980, 2071.4479, -1922.2099, 3.2300, 0.0000, 0.0000, 0.0000); //Concrete1mx1mx25m
SetDynamicObjectMaterial(autoskola[2], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[3] = CreateDynamicObject(18980, 2071.4479, -1922.2099, 3.2300, 0.0000, 0.0000, 0.0000); //Concrete1mx1mx25m
autoskola[4] = CreateDynamicObject(18980, 2071.4479, -1900.9992, 3.2300, 0.0000, 0.0000, 0.0000); //Concrete1mx1mx25m
SetDynamicObjectMaterial(autoskola[4], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[5] = CreateDynamicObject(970, 2052.2504, -1922.3526, 13.1106, 0.0000, 0.0000, 0.0000); //fencesmallb
SetDynamicObjectMaterial(autoskola[5], 0, -1, "none", "none", 0xFF000000);
autoskola[6] = CreateDynamicObject(970, 2060.6604, -1922.3526, 13.1106, 0.0000, 0.0000, 0.0000); //fencesmallb
SetDynamicObjectMaterial(autoskola[6], 0, -1, "none", "none", 0xFF000000);
autoskola[7] = CreateDynamicObject(970, 2064.8723, -1922.3526, 13.1106, 0.0000, 0.0000, 0.0000); //fencesmallb
SetDynamicObjectMaterial(autoskola[7], 0, -1, "none", "none", 0xFF000000);
autoskola[8] = CreateDynamicObject(970, 2056.4584, -1922.3526, 13.1106, 0.0000, 0.0000, 0.0000); //fencesmallb
SetDynamicObjectMaterial(autoskola[8], 0, -1, "none", "none", 0xFF000000);
autoskola[9] = CreateDynamicObject(970, 2069.0417, -1922.3526, 13.1106, 0.0000, 0.0000, 0.0000); //fencesmallb
SetDynamicObjectMaterial(autoskola[9], 0, -1, "none", "none", 0xFF000000);
autoskola[10] = CreateDynamicObject(970, 2068.9016, -1900.9222, 13.1106, 0.0000, 0.0000, 0.0000); //fencesmallb
SetDynamicObjectMaterial(autoskola[10], 0, -1, "none", "none", 0xFF000000);
autoskola[11] = CreateDynamicObject(970, 2064.7402, -1900.9222, 13.1106, 0.0000, 0.0000, 0.0000); //fencesmallb
SetDynamicObjectMaterial(autoskola[11], 0, -1, "none", "none", 0xFF000000);
autoskola[12] = CreateDynamicObject(970, 2060.5781, -1900.9222, 13.1106, 0.0000, 0.0000, 0.0000); //fencesmallb
SetDynamicObjectMaterial(autoskola[12], 0, -1, "none", "none", 0xFF000000);
autoskola[13] = CreateDynamicObject(970, 2056.4160, -1900.9222, 13.1106, 0.0000, 0.0000, 0.0000); //fencesmallb
SetDynamicObjectMaterial(autoskola[13], 0, -1, "none", "none", 0xFF000000);
autoskola[14] = CreateDynamicObject(970, 2052.2326, -1900.9222, 13.1106, 0.0000, 0.0000, 0.0000); //fencesmallb
SetDynamicObjectMaterial(autoskola[14], 0, -1, "none", "none", 0xFF000000);
autoskola[15] = CreateDynamicObject(18980, 2049.6582, -1900.9997, 3.2300, 0.0000, 0.0000, 0.0000); //Concrete1mx1mx25m
SetDynamicObjectMaterial(autoskola[15], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[16] = CreateDynamicObject(1569, 2049.7978, -1912.4758, 12.5148, 0.6999, 0.0000, 90.3999); //ADAM_V_DOOR
autoskola[17] = CreateDynamicObject(19447, 2049.6567, -1907.3183, 13.9377, 0.0000, 0.0000, 0.0000); //wall087
SetDynamicObjectMaterial(autoskola[17], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[18] = CreateDynamicObject(19447, 2049.6567, -1906.1074, 13.9377, 0.0000, 0.0000, 0.0000); //wall087
SetDynamicObjectMaterial(autoskola[18], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[19] = CreateDynamicObject(19447, 2044.5308, -1922.1448, 13.5902, 0.0000, 0.0000, -90.2000); //wall087
SetDynamicObjectMaterial(autoskola[19], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[20] = CreateDynamicObject(19447, 2044.6035, -1901.0550, 13.5902, 0.0000, 0.0000, -90.2000); //wall087
SetDynamicObjectMaterial(autoskola[20], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[21] = CreateDynamicObject(19447, 2047.9318, -1917.2302, 15.6129, 0.0000, -91.3999, 0.0000); //wall087
SetDynamicObjectMaterial(autoskola[21], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[22] = CreateDynamicObject(19447, 2045.7421, -1917.2302, 15.5594, 0.0000, -91.3999, 0.0000); //wall087
SetDynamicObjectMaterial(autoskola[22], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[23] = CreateDynamicObject(19447, 2045.7421, -1907.9500, 15.5594, 0.0000, -91.3999, 0.0000); //wall087
SetDynamicObjectMaterial(autoskola[23], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[24] = CreateDynamicObject(19447, 2047.9514, -1907.9500, 15.6134, 0.0000, -91.3999, 0.0000); //wall087
SetDynamicObjectMaterial(autoskola[24], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[25] = CreateDynamicObject(19447, 2047.9514, -1905.8183, 15.6134, 0.0000, -91.3999, 0.0000); //wall087
SetDynamicObjectMaterial(autoskola[25], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[26] = CreateDynamicObject(19447, 2045.6422, -1905.8183, 15.5570, 0.0000, -91.3999, 0.0000); //wall087
SetDynamicObjectMaterial(autoskola[26], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[27] = CreateDynamicObject(19447, 2045.0579, -1922.0733, 13.7830, 0.0000, 0.0000, -89.5000); //wall087
SetDynamicObjectMaterial(autoskola[27], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[28] = CreateDynamicObject(19447, 2044.8746, -1901.0550, 13.7830, 0.0000, 0.0000, -89.5000); //wall087
SetDynamicObjectMaterial(autoskola[28], 0, -1, "none", "none", 0xFF00BFFF);
autoskola[29] = CreateDynamicObject(8332, 2048.3459, -1911.3591, 10.9846, 1.0000, 0.0000, 89.0999); //vgsbboardsigns19
SetDynamicObjectMaterialText(autoskola[29], "Auto skola", 0, OBJECT_MATERIAL_SIZE_256x128, "Constantia", 16, 1, 0xFFFFFFFF, 0x00000000, 0);
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Pawno Code: [Izaberi]
//Slika/video ingame problema(obavezno ako je ingame problem): //
Naslov: Odg: map error
Poruka od: V01D Januar 15, 2022, 16:50:33 posle podne
Koja linija tacno baci? Mozda je pogresna verzija streamer-a? Mislim, mapa je radjena za stariju verziju? Probaj CreateDynamicObjectEx
Naslov: Odg: map error
Poruka od: Bandit234 Januar 15, 2022, 16:53:57 posle podne
SetDynamicObjectMaterialText(autoskola[29], "Auto skola", 0, OBJECT_MATERIAL_SIZE_256x128, "Constantia", 16, 1, 0xFFFFFFFF, 0x00000000, 0);
Naslov: Odg: map error
Poruka od: V01D Januar 15, 2022, 16:56:40 posle podne
Pawno Code: [Izaberi]
SetDynamicObjectMaterialText(autoskola[29], 0, "Auto skola", OBJECT_MATERIAL_SIZE_256x128, "Constantia", 16, 1, 0xFFFFFFFF, 0x00000000, 0);
Argumenti :

Pawno Code: [Izaberi]
SetDynamicObjectMaterialText(STREAMER_TAG_OBJECT objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0)
Omasio si mesta index-a i text-a
Naslov: Odg: map error
Poruka od: Bandit234 Januar 15, 2022, 17:01:05 posle podne
Hvala ide lock  :)