Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2013-02-06, 21:34


ArCie







Wiek: 32
Na forum: 5318 dni
Posty: 32
Nick w MP: Arek



Respekt: 50

Witam, zrobi?em sobie baze pomocy drogowej na serwer samp. Chcia?bym t? baze skonwertowa? do sampa i doda? na podno?nik komendy na podnoszenie i opuszczanie >> http://zapodaj.net/34b593fcaa9e8.jpg.html
Na brame otwieranie i zamykanie >> http://zapodaj.net/6022a535a1d0f.jpg.html

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-06, 21:39


KatieM







Wiek: 32
Na forum: 4868 dni
Posty: 82
Nick w MP: _DMCy

Piwa: 293

Respekt: 85

Ostrzeżeń: 20%
Wszystko co potrzebujesz jest na http://wiki.sa-mp.com/wiki/MoveObject
je?eli nie rozumiesz angielskiego skorzystaj z translatora albo napisz koordy bramy a na pewno kto? szybszy ode mnie odpisze :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-06, 21:45


ArCie







Wiek: 32
Na forum: 5318 dni
Posty: 32
Nick w MP: Arek



Respekt: 50

A jak to przerobi? ? BO na jednej stronie konwerterem przerobi?em i otrzyma?em takie co?

Kod:

CreateObject(8251, 1049.09961, 1318.5, 13.7, 0, 0, 0);
CreateObject(10282, 1041.90002, 1310.09998, 10.8, 0, 0, 90);
CreateObject(11393, 1040.59998, 1313.90002, 11.3, 0, 0, 178);
CreateObject(975, 1041.59998, 1327.40002, 9.9, 89.75, 0, 0.5);
CreateObject(9131, 1045.69995, 1325.40002, 10.9, 0, 0, 0);
CreateObject(9131, 1045.69995, 1329.30005, 10.9, 0, 0, 0);
CreateObject(9131, 1037.5, 1325.30005, 10.9, 0, 0, 0);
CreateObject(9131, 1037.5, 1329.19995, 10.9, 0, 0, 0);
CreateObject(3749, 1067.59961, 1365.2998, 15.6, 0, 0, 0);
CreateObject(18284, 1093.80005, 1325.19995, 12.8, 0, 0, 0);
CreateObject(18284, 1093.80005, 1308.69995, 12.8, 0, 0, 0);
CreateObject(18284, 1093.80005, 1292.19995, 12.8, 0, 0, 0);
CreateObject(18284, 1093.80005, 1275.69995, 12.8, 0, 0, 0);
CreateObject(8406, 1073.80005, 1224, 15.4, 0, 0, 0);
CreateObject(983, 1088.09998, 1227.09998, 10.5, 0, 0, 0);
CreateObject(983, 1088.09998, 1233.5, 10.5, 0, 0, 0);
CreateObject(983, 1088.09998, 1239.80005, 10.5, 0, 0, 0);
CreateObject(983, 1085, 1243, 10.5, 0, 0, 90);
CreateObject(983, 1064.69995, 1227.19995, 10.5, 0, 0, 0);
CreateObject(983, 1064.69995, 1233.59998, 10.5, 0, 0, 0);
CreateObject(983, 1064.69995, 1240, 10.5, 0, 0, 0);
CreateObject(983, 1067.90002, 1243.19995, 10.5, 0, 0, 90);
CreateObject(987, 1086, 1223.30005, 15.3, 0, 0, 0);
CreateObject(987, 1074.09998, 1223.30005, 15.3, 0, 0, 0);
CreateObject(987, 1062.19995, 1223.30005, 15.3, 0, 0, 0);
CreateObject(987, 1098, 1223.19995, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1235.19995, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1247.09998, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1259, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1270.90002, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1282.80005, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1294.69995, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1306.69995, 15.4, 0, 0, 90);
CreateObject(987, 1097.90002, 1318.59998, 15.4, 0, 0, 90);
CreateObject(987, 1097.90002, 1330.5, 15.4, 0, 0, 90);
CreateObject(987, 1097.90002, 1342.40002, 15.3, 0, 0, 90);
CreateObject(975, 1041.59998, 1327.40002, 12, 89.747, 0, 0.5);
CreateObject(987, 1097.80005, 1351.19995, 15.3, 0, 0, 90);
CreateObject(987, 1097.89941, 1363.19922, 15.3, 0, 0, 179.995);
CreateObject(987, 1050.30005, 1223.30005, 15.3, 0, 0, 0);
CreateObject(987, 1038.39941, 1223.2998, 15.3, 0, 0, 0);
CreateObject(3558, 1045.5, 1344.30005, 12.7, 0, 0, 268);
CreateObject(987, 1026.5, 1223.19995, 15.3, 0, 0, 0);
CreateObject(987, 1017.5, 1223.30005, 15.3, 0, 0, 0);
CreateObject(987, 1017.59998, 1235.19995, 15.3, 0, 0, 270);
CreateObject(987, 1017.59998, 1247.09998, 15.3, 0, 0, 270);
CreateObject(987, 1017.59998, 1259, 15.3, 0, 0, 270);
CreateObject(987, 1017.59998, 1270.90002, 15.3, 0, 0, 270);
CreateObject(987, 1017.59998, 1282.80005, 15.3, 0, 0, 270);
CreateObject(987, 1017.59998, 1294.69995, 15.3, 0, 0, 270);
CreateObject(987, 1017.5, 1303.30005, 15.3, 0, 0, 270);
CreateObject(987, 1086, 1363.19995, 15.3, 0, 0, 179.995);
CreateObject(987, 1059.59998, 1363.09998, 15.3, 0, 0, 179.995);
CreateObject(987, 1049.5, 1363.09998, 15.3, 0, 0, 179.995);
CreateObject(987, 1024.5, 1312.80005, 15.3, 0, 0, 234);
CreateObject(987, 1030.80005, 1322.90002, 15.3, 0, 0, 237.998);
CreateObject(987, 1035.69995, 1333.80005, 15.3, 0, 0, 245.997);
CreateObject(987, 1038.09998, 1345.5, 15.2, 0, 0, 257.995);
CreateObject(987, 1037.40002, 1363.09998, 15.4, 0, 0, 269.995);
CreateObject(987, 1038.19995, 1357.40002, 15.2, 0, 0, 269.989);
CreateObject(980, 1067.59998, 1367.19995, 12.4, 0, 0, 0);


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-06, 22:54


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

"ArCie" napisał/a:

A jak to przerobi? ? BO na jednej stronie konwerterem przerobi?em i otrzyma?em takie co?

Kod:

CreateObject(8251, 1049.09961, 1318.5, 13.7, 0, 0, 0);
CreateObject(10282, 1041.90002, 1310.09998, 10.8, 0, 0, 90);
CreateObject(11393, 1040.59998, 1313.90002, 11.3, 0, 0, 178);
CreateObject(975, 1041.59998, 1327.40002, 9.9, 89.75, 0, 0.5);
CreateObject(9131, 1045.69995, 1325.40002, 10.9, 0, 0, 0);
CreateObject(9131, 1045.69995, 1329.30005, 10.9, 0, 0, 0);
CreateObject(9131, 1037.5, 1325.30005, 10.9, 0, 0, 0);
CreateObject(9131, 1037.5, 1329.19995, 10.9, 0, 0, 0);
CreateObject(3749, 1067.59961, 1365.2998, 15.6, 0, 0, 0);
CreateObject(18284, 1093.80005, 1325.19995, 12.8, 0, 0, 0);
CreateObject(18284, 1093.80005, 1308.69995, 12.8, 0, 0, 0);
CreateObject(18284, 1093.80005, 1292.19995, 12.8, 0, 0, 0);
CreateObject(18284, 1093.80005, 1275.69995, 12.8, 0, 0, 0);
CreateObject(8406, 1073.80005, 1224, 15.4, 0, 0, 0);
CreateObject(983, 1088.09998, 1227.09998, 10.5, 0, 0, 0);
CreateObject(983, 1088.09998, 1233.5, 10.5, 0, 0, 0);
CreateObject(983, 1088.09998, 1239.80005, 10.5, 0, 0, 0);
CreateObject(983, 1085, 1243, 10.5, 0, 0, 90);
CreateObject(983, 1064.69995, 1227.19995, 10.5, 0, 0, 0);
CreateObject(983, 1064.69995, 1233.59998, 10.5, 0, 0, 0);
CreateObject(983, 1064.69995, 1240, 10.5, 0, 0, 0);
CreateObject(983, 1067.90002, 1243.19995, 10.5, 0, 0, 90);
CreateObject(987, 1086, 1223.30005, 15.3, 0, 0, 0);
CreateObject(987, 1074.09998, 1223.30005, 15.3, 0, 0, 0);
CreateObject(987, 1062.19995, 1223.30005, 15.3, 0, 0, 0);
CreateObject(987, 1098, 1223.19995, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1235.19995, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1247.09998, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1259, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1270.90002, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1282.80005, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1294.69995, 15.3, 0, 0, 90);
CreateObject(987, 1097.90002, 1306.69995, 15.4, 0, 0, 90);
CreateObject(987, 1097.90002, 1318.59998, 15.4, 0, 0, 90);
CreateObject(987, 1097.90002, 1330.5, 15.4, 0, 0, 90);
CreateObject(987, 1097.90002, 1342.40002, 15.3, 0, 0, 90);
CreateObject(975, 1041.59998, 1327.40002, 12, 89.747, 0, 0.5);
CreateObject(987, 1097.80005, 1351.19995, 15.3, 0, 0, 90);
CreateObject(987, 1097.89941, 1363.19922, 15.3, 0, 0, 179.995);
CreateObject(987, 1050.30005, 1223.30005, 15.3, 0, 0, 0);
CreateObject(987, 1038.39941, 1223.2998, 15.3, 0, 0, 0);
CreateObject(3558, 1045.5, 1344.30005, 12.7, 0, 0, 268);
CreateObject(987, 1026.5, 1223.19995, 15.3, 0, 0, 0);
CreateObject(987, 1017.5, 1223.30005, 15.3, 0, 0, 0);
CreateObject(987, 1017.59998, 1235.19995, 15.3, 0, 0, 270);
CreateObject(987, 1017.59998, 1247.09998, 15.3, 0, 0, 270);
CreateObject(987, 1017.59998, 1259, 15.3, 0, 0, 270);
CreateObject(987, 1017.59998, 1270.90002, 15.3, 0, 0, 270);
CreateObject(987, 1017.59998, 1282.80005, 15.3, 0, 0, 270);
CreateObject(987, 1017.59998, 1294.69995, 15.3, 0, 0, 270);
CreateObject(987, 1017.5, 1303.30005, 15.3, 0, 0, 270);
CreateObject(987, 1086, 1363.19995, 15.3, 0, 0, 179.995);
CreateObject(987, 1059.59998, 1363.09998, 15.3, 0, 0, 179.995);
CreateObject(987, 1049.5, 1363.09998, 15.3, 0, 0, 179.995);
CreateObject(987, 1024.5, 1312.80005, 15.3, 0, 0, 234);
CreateObject(987, 1030.80005, 1322.90002, 15.3, 0, 0, 237.998);
CreateObject(987, 1035.69995, 1333.80005, 15.3, 0, 0, 245.997);
CreateObject(987, 1038.09998, 1345.5, 15.2, 0, 0, 257.995);
CreateObject(987, 1037.40002, 1363.09998, 15.4, 0, 0, 269.995);
CreateObject(987, 1038.19995, 1357.40002, 15.2, 0, 0, 269.989);
CreateObject(980, 1067.59998, 1367.19995, 12.4, 0, 0, 0);


To co poda?e? to s? same obiekty. Podam Ci poradnik, dotycz?cy tworzenia bram,podno?nik?w:
http://gtao.pl/tutorialja...highlight=brama

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-06, 23:06


ArCie







Wiek: 32
Na forum: 5318 dni
Posty: 32
Nick w MP: Arek



Respekt: 50

Nie rozumiem nadal tego. M?g?by kto? to przerobi? wszystko ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-06, 23:53


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

Masz pozycj? i rotacj? obiektu jako podno?nik, czyli na g?rze i na dole ? Tak samo do bramy. Podaj tutaj a dalej powiemy co robi? ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-07, 00:03


ArCie







Wiek: 32
Na forum: 5318 dni
Posty: 32
Nick w MP: Arek



Respekt: 50

Cytat:

CreateObject(980,1067.5999800,1367.1999500,7.0000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (1) - zamkni?ta brama

CreateObject(980,1067.5999800,1367.3000500,12.6000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (1) - otwarta brama
Kod:


z podno?nikiem nie ogarniam. Mam tylko jedno columbiagate a powinno by? dwa razy czyli na dole i u g?ry


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-07, 00:08


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

To jest na bram?:
Pawn
#include <a_samp>

#define COLOR_GREEN 0x33AA33AA
new brama;

public OnGameModeInit(){
brama CreateObject(980,1067.5999800,1367.1999500,7.0000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (1) - zamkni?ta
return 1;
}

public OnPlayerCommandText(playeridcmdtext[])
{
if(strcmp(cmdtext"/brama.open"true) == 0)
{
MoveObject(brama1067.5999800,1367.3000500,12.60000002); // te ostatnie 2 to szybko?? z jak? brama si? otwiera
SendClientMessage(playeridCOLOR_GREEN"Otwieranie bramy");
return 1;
}

if(strcmp(cmdtext"/brama.close"true) == 0)
{
MoveObject(brama1067.5999800,1367.1999500,7.00000002); // te ostatnie 2 to szybko?? z jak? brama si? zamyka
SendClientMessage(playeridCOLOR_GREEN"Zamykanie bramy");
return 1;
}
return 0;
}


[ Dodano: 2013-02-07, 00:08 ]
EDIT:Dok?adnie to samo podaj do podno?nika :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-07, 00:11


ArCie







Wiek: 32
Na forum: 5318 dni
Posty: 32
Nick w MP: Arek



Respekt: 50

To wklei? do tego pliku pwn gdzie obiekty i pojazdy czy otworzy? czyste pawn ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-07, 00:12


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

Mo?esz to wklei? do swojego skryptu, lub obiekty doda? to tego co ja Ci poda?em, ale jak b?dziesz dodawa? do swojego to pamietaj aby poumieszcza? funkcje w odpowiednich callbackach ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-07, 00:20


ArCie







Wiek: 32
Na forum: 5318 dni
Posty: 32
Nick w MP: Arek



Respekt: 50

No i warningi :X

Kod:

E:\Gry\GTA San Andreas\Serv\filterscripts\Baza.pwn(89) : error 029: invalid expression, assumed zero
E:\Gry\GTA San Andreas\Serv\filterscripts\Baza.pwn(89) : error 017: undefined symbol "span"
E:\Gry\GTA San Andreas\Serv\filterscripts\Baza.pwn(89) : error 017: undefined symbol "class"
E:\Gry\GTA San Andreas\Serv\filterscripts\Baza.pwn(89) : fatal error 107: too many error messages on one line


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-07, 00:24


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

"ArCie" napisał/a:

No i warningi :X

Kod:

E:\Gry\GTA San Andreas\Serv\filterscripts\Baza.pwn(89) : error 029: invalid expression, assumed zero
E:\Gry\GTA San Andreas\Serv\filterscripts\Baza.pwn(89) : error 017: undefined symbol "span"
E:\Gry\GTA San Andreas\Serv\filterscripts\Baza.pwn(89) : error 017: undefined symbol "class"
E:\Gry\GTA San Andreas\Serv\filterscripts\Baza.pwn(89) : fatal error 107: too many error messages on one line


Usu? ze skryptu takie co?:
Kod:

<span class="comments">//object(airportgate) (1) - zamkni?ta</span>


Poniewa? jest to b??d znacznika ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-07, 13:12


ArCie







Wiek: 32
Na forum: 5318 dni
Posty: 32
Nick w MP: Arek



Respekt: 50

W troche innej bazie ma?y problem

Kod:

E:\bazapd.pwn(95) : error 001: expected token: "#endif", but found "-end of file-"

podnosnik = CreateObject(975,1079.5000000,1758.1999500,12.0000000,89.7470000,0.0000000,0.0000000);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/pu", true) == 0)
{
MoveObject(brama, 1079.5000000,1758.1999500,12.0000000, 2); // te ostatnie 2 to szybko?? z jak? brama si? otwiera
SendClientMessage(playerid, COLOR_GREEN, "podnosnik jedzie do gory");
return 1;
}

if(strcmp(cmdtext, "/pd", true) == 0)
{
MoveObject(brama, 1079.5996100,1758.1992200,9.9000000, 2); // te ostatnie 2 to szybko?? z jak? brama si? zamyka
SendClientMessage(playerid, COLOR_GREEN, "podnosnik jedzie na dol");
return 1;
}
return 0;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-07, 13:35


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

Kt?ra to dok?adnie linijka ? :)

[ Dodano: 2013-02-07, 13:36 ]
//EDIT: Poprawi?em i zobacz teraz :

Kod:

#include <a_samp>

#define COLOR_GREEN 0x33AA33AA
new podnosnik;

public OnGameModeInit(){
podnosnik = CreateObject(975,1079.5000000,1758.1999500,12.0000000,89.7470000,0.0000000,0.0000000);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/pu", true) == 0)
{
MoveObject(podnosnik, 1079.5000000,1758.1999500,12.0000000, 2); // te ostatnie 2 to szybko?? z jak? brama si? otwiera
SendClientMessage(playerid, COLOR_GREEN, "podnosnik jedzie do gory");
return 1;
}

if(strcmp(cmdtext, "/pd", true) == 0)
{
MoveObject(podnosnik, 1079.5996100,1758.1992200,9.9000000, 2); // te ostatnie 2 to szybko?? z jak? brama si? zamyka
SendClientMessage(playerid, COLOR_GREEN, "podnosnik jedzie na dol");
return 1;
}
return 0;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-07, 15:36


okoospokoo







Wiek: 29
Na forum: 5089 dni
Posty: 102
Nick w MP: Shake/LeStunters

Piwa: 273

Respekt: 50

Masz tutaj optymalniej to :

Kod:

#include <a_samp>
#include <zcmd>

#define COLOR_GREEN 0x33AA33AA
new podnosnik;

public OnGameModeInit(){
podnosnik = CreateObject(975,1079.5000000,1758.1999500,12.0000000,89.7470000,0.0000000,0.0000000);
return 1;
}

CMD:pu(playerid, params[])
{
MoveObject(podnosnik, 1079.5000000,1758.1999500,12.0000000, 2); // te ostatnie 2 to szybko?? z jak? brama si? otwiera
SendClientMessage(playerid, COLOR_GREEN, "podnosnik jedzie do gory");
return 1;
}

CMD:pd(playerid, params[])
{
MoveObject(podnosnik, 1079.5996100,1758.1992200,9.9000000, 2); // te ostatnie 2 to szybko?? z jak? brama si? zamyka
SendClientMessage(playerid, COLOR_GREEN, "podnosnik jedzie na dol");
return 1;
}


Postaw piwo autorowi tego posta
 

 
Tagi: dodanie :: komend :: bazy
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku