GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: N@rbirock - 2011. november 14. - 17:21:38

Cím: obiect minden autora
Írta: N@rbirock - 2011. november 14. - 17:21:38
hogy lehet megcsinálni hogy a szerveren akár lehivot akár mapolt auton
http://imageshack.us/photo/my-images/337/samp014qm.png/
Cím: obiect minden autora
Írta: staubka - 2011. november 14. - 17:24:17
1. Nem nagyon értem mit akarsz
2. Ki verte rá a feltöltött képre? :DxD
Cím: obiect minden autora
Írta: N@rbirock - 2011. november 14. - 17:25:49
AttachObjectToVehicle
de minden auton
Cím: obiect minden autora
Írta: staubka - 2011. november 14. - 17:28:40
Még most sem értem mit akarsz XD
Azt a riasztó \"neont\" akarod az autókra rakni?
public OnVehicleSpawn(vehicleid)
{
AttachObjectToVehicle(...);
return 1;
}
A koordinátákat meg az object id-t nemtom.
Cím: obiect minden autora
Írta: N@rbirock - 2011. november 14. - 17:34:31
de én azt akarom hogy mindeniken az legyen ha lehivok egy autot akkor is
egy szerveren látam hogy minden auton rajta volt
Cím: obiect minden autora
Írta: staubka - 2011. november 14. - 18:07:10
Elõbb írtam le h hogy kell...
Cím: obiect minden autora
Írta: N@rbirock - 2011. november 14. - 18:27:05
akkor kéne gy parancs és hozáadja
Cím: obiect minden autora
Írta: staubka - 2011. november 14. - 19:03:46
Milyen parancs? Mit ad hozzá mihez? Bazzeg veled az a baj srác, hogy mondasz valamit amit te biztos értesz, de ha csak a felét írod le akkor a jóisten se fogja megérteni, hogy mit akarsz. Ha leírod konkrétan, megfogalmazod rendesen a gondod/bajod, akkor tudunk segíteni, és nem fogsz se te, se más hozzád hasonló ember kiakadni hogy milyen hülyék vagyunk, mert nem értjük amit mondtok. TI HIBÁTOK HOGY NEM ÉRTJÜK, nem a mienk. Aki megérti az csak találgat. Vágod amit mondok, vagy feleslegesen pofázok?-.-\'
Cím: obiect minden autora
Írta: N@rbirock - 2011. november 14. - 19:07:37
azt akarom hogy beirom /riaszto és hozáadja az autohoz és még valami mi anak az id-je
Cím: obiect minden autora
Írta: staubka - 2011. november 14. - 19:14:53
Ahhoz az autóhoz amiben éppen ül?
Object id:
 
Idézetet írta: kadaradam date=1321293818\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"13388\" data-ipsquote-contentclass=\"forums_Topic


üdv nekem kellene az a 0.3 c s objectek közül a sziréna de mta -ban az id egy teljesen más cuccot adott be az idre autóra akarom feltenni de nem jó az az id amit mta adott
 
18646
 
[/quote]
Parancs:
[pawn]if(strcmp(cmdtext,\"/riaszto\",true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
AttachObjectToVehicle(18646,GetPlayerVehicleID(playerid),/*koordináták*/);
}
else SendClientMessage(playerid,0xFF0000FF,\"Nem vagy jármûben\");
return 1;
}[/pawn]
A koordinátákkal egészítsd ki (tipp: szedj le egy tuning FS-t amiben van riasztó, majd nézd meg a koordinátákat.)
VAGY:
 

AttachObjectToVehicle(objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ);
hozzá egy creator: http://forum.sa-mp.com/showthread.php?t=215963
 
[/quote]
Cím: obiect minden autora
Írta: N@rbirock - 2011. november 14. - 19:31:25
Idézetet írta: LZLo-No.1 date=1321136253\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"13388\" data-ipsquote-contentclass=\"forums_Topic
AttachObjectToVehicle(objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ);
hozzá egy creator: http://forum.sa-mp.com/showthread.php?t=215963
 
ezt tude nekem csak az az obiecht kell
Cím: obiect minden autora
Írta: halaloszto100 - 2011. november 14. - 20:55:56
Idézetet írta: N@rbirock date=1321295485\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"13388\" data-ipsquote-contentclass=\"forums_Topic


AttachObjectToVehicle(objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ);
hozzá egy creator: http://forum.sa-mp.com/showthread.php?t=215963
 
ezt tude nekem csak az az obiecht kell
 
[/quote]
De ***dmeg akkor azt mondjad hogy az id kell. :@ Nem azt hogy hogy lehet megcsinálni. :mistrust: Mert mindenki azt irja hogy hogy lehet megcsinálni. :mistrust:
Amúgy is szerintem az egy 0.3c object.Szóval tölts le olyan mtat amibe 0.3c object van.
U.I.:Menj el egy orvoshoz és nézesd meg magad mert nem vagy 100.
Cím: obiect minden autora
Írta: staubka - 2011. november 14. - 20:57:58
Idézetet írta: halaloszto100 date=1321300556\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"13388\" data-ipsquote-contentclass=\"forums_Topic
De ***dmeg akkor azt mondjad hogy az id kell. :@ Nem azt hogy hogy lehet megcsinálni. :mistrust: Mert mindenki azt irja hogy hogy lehet megcsinálni. :mistrust:
U.I.:Menj el egy orvoshoz és nézesd meg magad mert nem vagy 100.
 
Hagyjad úgyse fogja fel... Majd ha megnõ akkor talán...
Cím: obiect minden autora
Írta: halaloszto100 - 2011. november 14. - 21:00:16
Idézetet írta: staubka date=1321300678\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"13388\" data-ipsquote-contentclass=\"forums_Topic


De ***dmeg akkor azt mondjad hogy az id kell. :@ Nem azt hogy hogy lehet megcsinálni. :mistrust: Mert mindenki azt irja hogy hogy lehet megcsinálni. :mistrust:
U.I.:Menj el egy orvoshoz és nézesd meg magad mert nem vagy 100.
 
Hagyjad úgyse fogja fel... Majd ha megnõ akkor talán...
 
[/quote]
De érted...Azt se tudja mit akar irni...De azért okoskodik...  :mistrust:
Cím: obiect minden autora
Írta: N@rbirock - 2011. november 14. - 21:06:14
azt akarom hogy 18646 tudjam egy parancsal az auto tetejére teni
Cím: obiect minden autora
Írta: halaloszto100 - 2011. november 14. - 21:11:08
Idézetet írta: N@rbirock date=1321301174\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"13388\" data-ipsquote-contentclass=\"forums_Topic
azt akarom hogy 18646 tudjam egy parancsal az auto tetejére teni
 
Most mi kell object id vagy megoldás?
Cím: obiect minden autora
Írta: N@rbirock - 2011. november 14. - 21:12:54
Idézetet írta: halaloszto100 date=1321301468\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"13388\" data-ipsquote-contentclass=\"forums_Topic


azt akarom hogy 18646 tudjam egy parancsal az auto tetejére teni
 
Most mi kell object id vagy megoldás?
 
[/quote]
megoldas
Cím: obiect minden autora
Írta: staubka - 2011. november 14. - 21:44:07
Minden újabb kommentedben mást akarsz. Nemigaz hogy nemtudsz kinyögni egy értelmes mondatot :@
 
Idézetet írta: N@rbirock date=1321301174\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"13388\" data-ipsquote-contentclass=\"forums_Topic
azt akarom hogy 18646 tudjam egy parancsal az auto tetejére teni
 
Ezt nem értem. A mondat anyanyelvileg és helyesírásilag kritikus. Ráadásul értelmetlen. Olyan vagy mint egy külföldi aki 5 éve tanul magyarul. Azok írnak ilyen mondatokat. Egyébként ebbõl az idézetbõl azt veszem le hogy a parancs kell AMIT LEÍRTAM.
 

ezt tude nekem csak az az obiecht kell
 
[/quote]
Itt az object id-t akarod.
 

azt akarom hogy beirom /riaszto és hozáadja az autohoz és még valami mi anak az id-je
 
[/quote]
Itt mind2 kell
 

akkor kéne gy parancs és hozáadja
 
[/quote]
Itt csak a parancs kell.
Úgyhogy én feladtam aki érti a srácot segítsen neki köszi és egyben sry.
Cím: obiect minden autora
Írta: halaloszto100 - 2011. november 14. - 22:05:15
Idézetet írta: N@rbirock date=1321301574\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"13388\" data-ipsquote-contentclass=\"forums_Topic


 

azt akarom hogy 18646 tudjam egy parancsal az auto tetejére teni
 
Most mi kell object id vagy megoldás?
 
[/quote]
megoldas
 
[/quote]
Ott vannak az elõzõ kommentek.Abba benne van hogy hogy kell megcsinálni.Ha abból se értesz akkor sajnállak.
Cím: obiect minden autora
Írta: N@rbirock - 2011. november 15. - 13:17:57
[pawn]if(strcmp(cmdtext,\"/riaszto\",true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
AttachObjectToVehicle(18646,GetPlayerVehicleID(playerid),/*koordináták*/);
}
else SendClientMessage(playerid,0xFF0000FF,\"Nem vagy jármûben\");
return 1;
}[/pawn]
de mien kordináta kel
Cím: obiect minden autora
Írta: norbee0170 - 2011. november 15. - 13:44:11
ezt már nembírom idegekkel szal nekem is közbe kell szólnom
[pawn]
if(strcmp(cmdtext,\"/riaszto\",true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
AttachObjectToVehicle(18646,GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);//ez a koordináta kell
}
else SendClientMessage(playerid,0xFF0000FF,\"Nem vagy jármûben\");
return 1;
}[/pawn]
 

ha meg azt akarod h minden autón legyen
nem parancsal akkor

[pawn]
public OnVehicleSpawn(vehicleid)//ez alá kell,ha nincs akk hozz létre egyet
{
AttachObjectToVehicle(18646, -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);//ha mindenigaz
return 1;
}
[/pawn]
Cím: obiect minden autora
Írta: N@rbirock - 2011. november 15. - 13:47:07
C:\\Users\\user\\Desktop\\riaszto.pwn(3) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\riaszto.pwn(5) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\riaszto.pwn(9) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\riaszto.pwn(10) : error 010: invalid function or declaration
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
4 Errors.

 
mi lehet a baj?
Cím: obiect minden autora
Írta: norbee0170 - 2011. november 15. - 13:49:05
másold be a hibás sorokat
és melyikre ír hibát? a parancsosra ? vagy a public-osra ?
Cím: obiect minden autora
Írta: N@rbirock - 2011. november 15. - 13:53:50
ez a fs
[pawn]#include <a_samp>
if(strcmp(cmdtext,\"/riaszto\",true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
AttachObjectToVehicle(18646,GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);//ez a koordináta kell
}
else SendClientMessage(playerid,0xFF0000FF,\"Nem vagy jármûben\");
return 1;
}
[/pawn]
Cím: obiect minden autora
Írta: norbee0170 - 2011. november 15. - 13:55:29
omg ez már tényleg fáj....

tedd be a mod-ba .. nemjól csináltad fs-t


tess FS-ben.... és most már elég lesz a hülye kérdéseidbõl...


http://solidfiles.com/d/73e3b772bb/

Cím: obiect minden autora
Írta: N@rbirock - 2011. november 15. - 14:11:34
thx zárok
Cím: obiect minden autora
Írta: N@rbirock - 2011. november 20. - 17:05:41
Idézetet írta: norbee0170 date=1321361729\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"13388\" data-ipsquote-contentclass=\"forums_Topic
omg ez már tényleg fáj....

tedd be a mod-ba .. nemjól csináltad fs-t


tess FS-ben.... és most már elég lesz a hülye kérdéseidbõl...


http://solidfiles.com/d/73e3b772bb/


 
nem jó nincs hatása