Wysłany: 2009-01-30, 16:23
maciek12345
Wiek: 36 Na forum: 6453 dni Posty: 16
C:\DOCUME~1\***\Pulpit\NOWABA~1.MAP(18) : error 021: symbol already defined: "CreateObject"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Co? z kt?rym? Createobjectem nie wkleje object?w poniwa? ma to ponad 100 linijek. Wi?c oco chodzi ?
Wysłany: 2009-01-30, 16:32
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6603 dni Posty: 265
Piwa : 3264
maciek12345 , CreateObject wklejasz pod public OnGameModeInit()
Wysłany: 2009-01-30, 16:56
maciek12345
Wiek: 36 Na forum: 6453 dni Posty: 16
kubba11111 ,
Dam piwko je?eli pomo?esz jeszcze z tym XD
C:\DOCUME~1\***\Pulpit\NOWABA~1.MAP(115) : warning 202: number of arguments does not match definition
C:\DOCUME~1\***\Pulpit\NOWABA~1.MAP(115) : warning 202: number of arguments does not match definition
C:\DOCUME~1\***\Pulpit\NOWABA~1.MAP(115) : warning 202: number of arguments does not match definition
C:\DOCUME~1\***\Pulpit\NOWABA~1.MAP(123) : warning 202: number of arguments does not match definition
C:\DOCUME~1\***\Pulpit\NOWABA~1.MAP(123) : warning 202: number of arguments does not match definition
C:\DOCUME~1\***\Pulpit\NOWABA~1.MAP(123) : warning 202: number of arguments does not match definition
C:\DOCUME~1\***\Pulpit\NOWABA~1.MAP(128) : error 030: compound statement not closed at the end of file (started at line 114)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Wysłany: 2009-01-30, 16:59
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6603 dni Posty: 265
Piwa : 3264
maciek12345 , liczba argument?w nie odpowiada definicji funkcji, czego? za ma?o albo za du?o, poka? linijki...
(i nie domkni?ta klamra)
Wysłany: 2009-01-30, 17:04
Mayke512
Wiek: 32 Na forum: 6602 dni Posty: 48
Piwa : 3022
Czasem nie z?y temat?
Mam takie pytanko: jak mam nazwa? ten kod poni?ej (czym s? liczby w nawiasach itd.):
Kod: new tmpp[256];
new str[128];
tmpp = strtok(cmdtext, idx);
new cmd[200], idx;
cmd = strtok(cmdtext, idx);
Pisz? tut-ka i nie wiem jak to s?ownie nazwa? ; opisa?...
Wysłany: 2009-01-30, 17:09
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6603 dni Posty: 265
Piwa : 3264
Mayke512 , to jest rozmiar tablicy wyra?any w bitach
maciek12345 , mia?e? mi pokaza? linijki z b??dami a nie ca?y skrypt xD
Ostatnio zmieniony przez Jimmy J 2009-01-30, 17:14, w całości zmieniany 3 razy
Wysłany: 2009-01-30, 17:09
maciek12345
Wiek: 36 Na forum: 6453 dni Posty: 16
nie przytomny jestem XD
CreateObject(987, 2354.2688, 2249.1462, 26.542, 0, 0, 180);
MoveObject(brama,987, 2354.1953, 2249.0771, 26.592, 0, 0, 180);
MoveObject(brama,987, 2363.377, 2249.2266, 26.592, 0, 0, 180);
if (strcmp(cmdtext, "/brama-o", true)== 0 && IsPlayerAdmin(playerid)) {
Przepraszkam XD
Ostatnio zmieniony przez maciek12345 2009-01-30, 17:13, w całości zmieniany 1 raz
Wysłany: 2009-01-30, 17:11
Mayke512
Wiek: 32 Na forum: 6602 dni Posty: 48
Piwa : 3022
Tu masz obiekty zaraz ci zrobie brame:
Kod: #include <a_samp>
#define COLOR_RED 0xAA3333AA
// new brama;
public OnFilterScriptInit() {
// Bramy
// CreateObject(987, 2363.377, 2249.2266, 26.592, 0, 0, 180);
// obiekty
CreateObject(987, 2354.2688, 2249.1462, 26.542, 0, 0, 180);
CreateObject(987, 2342.3132, 2249.2598, 26.542, 0, 0, 90);
CreateObject(987, 2342.4126, 2261.2273, 26.542, 0, 0, 90);
CreateObject(987, 2342.4666, 2273.1677, 26.542, 0, 0, 90);
CreateObject(987, 2342.5916, 2285.0598, 26.567, 0, 0, 90);
CreateObject(987, 2342.5955, 2296.9211, 26.542, 0, 0, 90);
CreateObject(987, 2342.5552, 2300.0242, 26.542, 0, 0, 90);
CreateObject(987, 2342.5327, 2312.1702, 26.542, 0, 0, 0);
CreateObject(987, 2354.7568, 2312.0242, 26.542, 0, 0, 0);
CreateObject(987, 2366.6167, 2312.0508, 26.542, 0, 0, 0);
CreateObject(987, 2378.6089, 2312.0962, 26.542, 0, 0, 0);
CreateObject(987, 2390.5308, 2312.0952, 26.542, 0, 0, 0);
CreateObject(987, 2396.5164, 2312.123, 26.542, 0, 0, 0);
CreateObject(987, 2408.5605, 2311.967, 26.542, 0, 0, 270);
CreateObject(987, 2408.4792, 2300.0198, 26.542, 0, 0, 270);
CreateObject(987, 2408.385, 2287.9473, 26.542, 0, 0, 270);
CreateObject(987, 2408.3306, 2275.9658, 26.542, 0, 0, 270);
CreateObject(987, 2408.5076, 2264.1548, 26.542, 0, 0, 270);
CreateObject(987, 2408.5547, 2261.1238, 26.542, 0, 0, 270);
CreateObject(987, 2408.384, 2249.2485, 26.542, 0, 0, 180);
CreateObject(987, 2396.5007, 2249.2017, 26.542, 0, 0, 180);
CreateObject(987, 2384.4905, 2249.1938, 26.542, 0, 0, 180);
CreateObject(987, 2372.5166, 2249.1438, 26.542, 0, 0, 180);
CreateObject(1503, 2357.6323, 2252.2688, 26.9362, 0, 0, 180);
CreateObject(11490, 2373.6655, 2303.9875, 26.5377, 0, 0, 0);
CreateObject(936, 2377.4985, 2299.7937, 28.5203, 0, 0, 270);
CreateObject(937, 2377.4763, 2301.6821, 28.5203, 0, 0, 270);
CreateObject(941, 2377.4663, 2304.0588, 28.5203, 0, 0, 270);
CreateObject(1646, 2404.3655, 2276.3579, 26.8795, 0, 0, 0);
CreateObject(1646, 2402.9807, 2276.3662, 26.8795, 0, 0, 0);
CreateObject(1646, 2401.6487, 2276.4172, 26.8795, 0, 0, 0);
CreateObject(1518, 2377.5642, 2303.8853, 29.2759, 0, 0, 270);
CreateObject(1754, 2369.5488, 2304.54, 28.0405, 0, 0, 90);
CreateObject(1754, 2369.7056, 2305.7104, 28.0789, 0, 0, 90);
CreateObject(1455, 2377.4131, 2302.1682, 29.0675, 0, 0, 0);
CreateObject(1736, 2373.7266, 2296.7551, 30.3448, 0, 0, 180);
CreateObject(1828, 2373.353, 2300.6379, 28.0183, 0, 0, 0);
CreateObject(1829, 2377.3147, 2307.7646, 28.5101, 0, 0, 270);
CreateObject(2101, 2369.4924, 2301.0603, 28.0487, 0, 0, 90);
CreateObject(2147, 2369.5044, 2302.0679, 28.0401, 0, 0, 90);
CreateObject(643, 2398.1614, 2304.4431, 27.0125, 0, 0, 0);
CreateObject(1670, 2398.1306, 2304.4355, 27.4231, 0, 0, 0);
CreateObject(625, 2405.6926, 2308.5759, 27.3728, 0, 0, 0);
CreateObject(625, 2408.1509, 2305.8691, 27.3228, 0, 0, 0);
CreateObject(625, 2408.6848, 2294.5193, 27.5978, 0, 0, 0);
CreateObject(627, 2397.8569, 2251.0398, 28.3874, 0, 0, 0);
CreateObject(627, 2405.2161, 2261.2686, 28.3874, 0, 0, 0);
CreateObject(627, 2406.0576, 2272.1873, 28.3874, 0, 0, 0);
CreateObject(807, 2406.1279, 2281.5383, 26.783, 0, 0, 0);
CreateObject(633, 2406.1892, 2287.8066, 27.536, 0, 0, 0);
CreateObject(633, 2364.4124, 2254.0139, 27.536, 0, 0, 0);
return 1;
}
Daj mi wsp??rz?dne bramy zamkni?tej i otwartej..
Wysłany: 2009-01-30, 17:14
maciek12345
Wiek: 36 Na forum: 6453 dni Posty: 16
brama,987, 2354.1953, 2249.0771, 26.592, 0, 0, 180); otwarta
brama,987, 2363.377, 2249.2266, 26.592, 0, 0, 180) zamknieta
Wysłany: 2009-01-30, 17:16
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6603 dni Posty: 265
Piwa : 3264
maciek12345 ,
Kod: MoveObject(brama, tutaj wsp??rz?dne do kt?rych brama ma si? poruszy?, pr?dko?? poruszania si? bramy);
MoveObject(brama,tutaj wsp??rz?dne do kt?rych brama ma si? poruszy?, pr?dko?? poruszania si? bramy);
przyk?ad:
Kod: MoveObject(obiekt, 1053.3464, 1272.0116, 112.6392, 2);
Wysłany: 2009-01-30, 17:19
Mayke512
Wiek: 32 Na forum: 6602 dni Posty: 48
Piwa : 3022
Kod: #include <a_samp>
#define COLOR_RED 0xAA3333AA
new brama;
public OnFilterScriptInit()
{
brama = CreateObject(987, 2363.377, 2249.2266, 26.592, 0, 0, 180); //brama zamkni?ta
// OBIEKTY
CreateObject(987, 2354.2688, 2249.1462, 26.542, 0, 0, 180);
CreateObject(987, 2342.3132, 2249.2598, 26.542, 0, 0, 90);
CreateObject(987, 2342.4126, 2261.2273, 26.542, 0, 0, 90);
CreateObject(987, 2342.4666, 2273.1677, 26.542, 0, 0, 90);
CreateObject(987, 2342.5916, 2285.0598, 26.567, 0, 0, 90);
CreateObject(987, 2342.5955, 2296.9211, 26.542, 0, 0, 90);
CreateObject(987, 2342.5552, 2300.0242, 26.542, 0, 0, 90);
CreateObject(987, 2342.5327, 2312.1702, 26.542, 0, 0, 0);
CreateObject(987, 2354.7568, 2312.0242, 26.542, 0, 0, 0);
CreateObject(987, 2366.6167, 2312.0508, 26.542, 0, 0, 0);
CreateObject(987, 2378.6089, 2312.0962, 26.542, 0, 0, 0);
CreateObject(987, 2390.5308, 2312.0952, 26.542, 0, 0, 0);
CreateObject(987, 2396.5164, 2312.123, 26.542, 0, 0, 0);
CreateObject(987, 2408.5605, 2311.967, 26.542, 0, 0, 270);
CreateObject(987, 2408.4792, 2300.0198, 26.542, 0, 0, 270);
CreateObject(987, 2408.385, 2287.9473, 26.542, 0, 0, 270);
CreateObject(987, 2408.3306, 2275.9658, 26.542, 0, 0, 270);
CreateObject(987, 2408.5076, 2264.1548, 26.542, 0, 0, 270);
CreateObject(987, 2408.5547, 2261.1238, 26.542, 0, 0, 270);
CreateObject(987, 2408.384, 2249.2485, 26.542, 0, 0, 180);
CreateObject(987, 2396.5007, 2249.2017, 26.542, 0, 0, 180);
CreateObject(987, 2384.4905, 2249.1938, 26.542, 0, 0, 180);
CreateObject(987, 2372.5166, 2249.1438, 26.542, 0, 0, 180);
CreateObject(1503, 2357.6323, 2252.2688, 26.9362, 0, 0, 180);
CreateObject(11490, 2373.6655, 2303.9875, 26.5377, 0, 0, 0);
CreateObject(936, 2377.4985, 2299.7937, 28.5203, 0, 0, 270);
CreateObject(937, 2377.4763, 2301.6821, 28.5203, 0, 0, 270);
CreateObject(941, 2377.4663, 2304.0588, 28.5203, 0, 0, 270);
CreateObject(1646, 2404.3655, 2276.3579, 26.8795, 0, 0, 0);
CreateObject(1646, 2402.9807, 2276.3662, 26.8795, 0, 0, 0);
CreateObject(1646, 2401.6487, 2276.4172, 26.8795, 0, 0, 0);
CreateObject(1518, 2377.5642, 2303.8853, 29.2759, 0, 0, 270);
CreateObject(1754, 2369.5488, 2304.54, 28.0405, 0, 0, 90);
CreateObject(1754, 2369.7056, 2305.7104, 28.0789, 0, 0, 90);
CreateObject(1455, 2377.4131, 2302.1682, 29.0675, 0, 0, 0);
CreateObject(1736, 2373.7266, 2296.7551, 30.3448, 0, 0, 180);
CreateObject(1828, 2373.353, 2300.6379, 28.0183, 0, 0, 0);
CreateObject(1829, 2377.3147, 2307.7646, 28.5101, 0, 0, 270);
CreateObject(2101, 2369.4924, 2301.0603, 28.0487, 0, 0, 90);
CreateObject(2147, 2369.5044, 2302.0679, 28.0401, 0, 0, 90);
CreateObject(643, 2398.1614, 2304.4431, 27.0125, 0, 0, 0);
CreateObject(1670, 2398.1306, 2304.4355, 27.4231, 0, 0, 0);
CreateObject(625, 2405.6926, 2308.5759, 27.3728, 0, 0, 0);
CreateObject(625, 2408.1509, 2305.8691, 27.3228, 0, 0, 0);
CreateObject(625, 2408.6848, 2294.5193, 27.5978, 0, 0, 0);
CreateObject(627, 2397.8569, 2251.0398, 28.3874, 0, 0, 0);
CreateObject(627, 2405.2161, 2261.2686, 28.3874, 0, 0, 0);
CreateObject(627, 2406.0576, 2272.1873, 28.3874, 0, 0, 0);
CreateObject(807, 2406.1279, 2281.5383, 26.783, 0, 0, 0);
CreateObject(633, 2406.1892, 2287.8066, 27.536, 0, 0, 0);
CreateObject(633, 2364.4124, 2254.0139, 27.536, 0, 0, 0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/otworz", cmdtext, true, 10) == 0)
{
MoveObject(brama,2354.1953, 2249.0771, 26.592,2); // 2 to predkosc otwierania bramy
GameTextForPlayer(playerid, "~g~Otworzyles brame", 3000, 1); // tekst w rogu ekranu
return 1;
}
if (strcmp("/zamknij", cmdtext, true, 10) == 0)
{
MoveObject(brama,2363.377, 2249.2266, 26.592, 2); // 2 to predkosc otwierania bramy
GameTextForPlayer(playerid, "~g~Zamknoles brame", 3000, 1);
return 1;
}
return 0;
}
Wysłany: 2009-02-10, 15:47
pinezka
Wiek: 33 Na forum: 6636 dni Posty: 5
Piwa : 186
D?em dobry:D
Musze tu napisac.... Bo... Mam problem z tym glupim programem do robienia kolorow... Nie wiem czemy ale nie dziala. Kod: http://img223.imageshack.us/my.php?image=28858615qe3.jpg
No i nic nie da kopiowanie programu do katalogu z gra czy cos.... Czy wiecie o co tutaj lata?
No a myslisz ze gdzie to mam? U babki w piecu?
Podpis
•¤•Polski Crazy Roam Serwer [CR] 24/7•¤•
91.204.163.220:7913
Crazy Roam Modd d(o.O)b
--->
www.crazyserver.lua.pl <---
Ostatnio zmieniony przez pinezka 2009-02-10, 18:57, w całości zmieniany 2 razy
Wysłany: 2009-02-10, 16:56
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6603 dni Posty: 265
Piwa : 3264
Wysłany: 2009-02-14, 20:24
maciek12345
Wiek: 36 Na forum: 6453 dni Posty: 16
oto by??:P
czy o te
Kod wyci??em wrazie podebrania mi go na inne forum Z g?rnym tak samo.
ten drugi kod to mam z?y ;/
Ostatnio zmieniony przez maciek12345 2009-02-14, 20:43, w całości zmieniany 1 raz
Wysłany: 2009-02-14, 20:33
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6603 dni Posty: 265
Piwa : 3264
wklej ten drugi kod pod OnPlayerSpawn, bo pewnie masz go pod OnGameModeInit...
Tagi: małe :: pytania :: odnośnie :: pawn
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: