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

Wysłany: 2015-07-06, 09:58


Karollos







Wiek: 27
Na forum: 4129 dni
Posty: 282

Piwa: 89

Respekt: 60

Witam zrobi?em w?asny teleport do /lv ale mam errory ;c
Kod:

C:\Users\Karol1\Desktop\PRS.pwn(4559) : error 020: invalid symbol name ""
C:\Users\Karol1\Desktop\PRS.pwn(4560) : error 010: invalid function or declaration
C:\Users\Karol1\Desktop\PRS.pwn(4563) : error 010: invalid function or declaration
C:\Users\Karol1\Desktop\PRS.pwn(4567) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

A oto ca?y teleport
Kod:

CMD:/lv
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
SetVehiclePos(GetPlayerVehicleID(playerid), 2152.550781, 1016.716247, 10.820312);
SetVehicleZAngle(GetPlayerVehicleID(playerid),);
}else{
SetPlayerFacingAngle(playerid, );
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, /lv);
return 1;
}

A i jeszcze jedno nie wiem gdzie doda?
Kod:

GameTextForPlayer(playerid, "~g~~g~~g~~g~~g~~g~~g~Las Venturas", 4000, 1);

Prosi?bym ?eby kto? mi zrobi? taki teleport bez Error?w i z GameTextForPlayer oczywi?cie za :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-06, 10:10


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

Ani klamer, ani nic.

Kod:


CMD:lv(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid), 2152.550781, 1016.716247, 10.820312);
}
else
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2152.550781, 1016.716247, 10.820312);
}
GameTextForPlayer(playerid, "~g~~g~~g~~g~~g~~g~~g~Las Venturas", 4000, 1);
return 1;
}



SetPlayerPos(playerid, /lv);

W T F

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-06, 11:34


Pavlo856







Wiek: 32
Na forum: 5445 dni
Posty: 75

Piwa: 40

Respekt: 84

ToxiC`, tw?j kod nie jest do ko?ca dobry... dlaczego?
Je?eli gracz b?dzie w interiorze 1,2,3,4,5 (...) i b?dzie si? chcia? teleportowa? na /lv pojazdem to przeniesie go na odpowiedni? pozycj?, ale b?dzie si? znajdowa? w innym interiorze.

Od tego jest: LinkVehicleToInterior

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-06, 12:19


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

Pavlo856, a czytasz ca?y temat? To nie m?j kod, tylko jego. Ja mu tylko poprawi?em errory.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-06, 12:33


Pavlo856







Wiek: 32
Na forum: 5445 dni
Posty: 75

Piwa: 40

Respekt: 84

ToxiC`, czyta?em ca?y temat. Je?eli bierzesz si? za popraw? czego?, to zwracaj uwag? na inne "detale", a nie od razu z b?lem dupy, bo Ci zwr?ci?em uwag?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-06, 13:07


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

?aden b?l, nic nie pisa? o innych detalach. Ale skoro Ty masz taki 'b?l dupy' jak to nazwa?e? to prosz?:

Kod:


CMD:lv(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid), 2152.550781, 1016.716247, 10.820312);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
}
else
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2152.550781, 1016.716247, 10.820312);
}
GameTextForPlayer(playerid, "~g~~g~~g~~g~~g~~g~~g~Las Venturas", 4000, 1);
return 1;
}


Jeszcze mo?esz u?y? rotacji, bo b?dzie Ci si? skin przenosi? tak jak sta?e?, a tak b?dzie odwr?cony zawsze w t? stron?, w kt?r? ustawisz. Nie dodaje do kodu ale masz funkcje

Kod:

SetVehicleZAngle(GetPlayerVehicleID(playerid), 90.0); //Nie wiem w kt?r? strone chcesz. To jest dla pojazdu
SetPlayerFacingAngle(playerid, 90.0); //skin


dodatkowo mo?e Ci si? przyda?. Aktualnie 90.0 czyli west (zach?d)

north (0)
|
(90) west- -east (270) (Good way to remember: Never Eat Shredded Wheat)
|
south (180)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-06, 14:22


Karollos







Wiek: 27
Na forum: 4129 dni
Posty: 282

Piwa: 89

Respekt: 60

Dzi?kuj? Serdecznie :)
Na dworze 31?C w cieniu, pi? si? chce :D
?ap piwko :P

Podpis
:)
Postaw piwo autorowi tego posta
 

 
Tagi: teleport :: pojazdem
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » Teleport z pojazdem 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