DeLeTeCZ 17 Odesláno: 13. Červenec, 2014 Share Odesláno: 13. Červenec, 2014 Zdravím, mám problém s pickupem, vytvoří se asi na půl sekundy a pak zmizí.. Kód: v OnFilterScriptInit pickup[0] = CreatePickup(1240,2,1600.8307,1818.5260,10.8203,0); Předem díky za odpovědi. Link to comment Share on other sites More sharing options...
0 Uživatel 0 Odesláno: 13. Červenec, 2014 Share Odesláno: 13. Červenec, 2014 Protože, jsi nastavil typ pickupu, že po 30 vteřinách zmizí:http://wiki.sa-mp.com/wiki/PickupTypes pickup[0] = CreatePickup(1240,1,1600.8307,1818.5260,10.8203,0); Link to comment Share on other sites More sharing options...
0 DeLeTeCZ 17 Odesláno: 13. Červenec, 2014 Author Share Odesláno: 13. Červenec, 2014 Protože, jsi nastavil typ pickupu, že po 30 vteřinách zmizí: http://wiki.sa-mp.com/wiki/PickupTypes pickup[0] = CreatePickup(1240,1,1600.8307,1818.5260,10.8203,0); ale on zmizí hned jak se vytvoří Link to comment Share on other sites More sharing options...
0 INSANE_25_ICON 0 Odesláno: 13. Červenec, 2014 Share Odesláno: 13. Červenec, 2014 public OnPlayerPickUpPickup(playerid, pickupid) Nemáš tam nejaku chybu ? Link to comment Share on other sites More sharing options...
0 DeLeTeCZ 17 Odesláno: 13. Červenec, 2014 Author Share Odesláno: 13. Červenec, 2014 public OnPlayerPickUpPickup(playerid, pickupid) Nemáš tam nejaku chybu ? v OnPlayerPickUpPickup nic nemám je to pickup srdce (života) Link to comment Share on other sites More sharing options...
0 INSANE_25_ICON 0 Odesláno: 13. Červenec, 2014 Share Odesláno: 13. Červenec, 2014 OnPlayerFilterScriptInit() { pickup[0] = CreatePickup(1240,2,1600.8307,1818.5260,10.8203,0); return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == pickup[0]) { SetPlayerHealth(playerid,100); SendClientMessage(playerid,0x33ccffaa,"Dostal si život"); return 1; } Potrebuješ tam to pre život nie či ti to máš urobené cez MTA ? Link to comment Share on other sites More sharing options...
0 DeLeTeCZ 17 Odesláno: 13. Červenec, 2014 Author Share Odesláno: 13. Červenec, 2014 OnPlayerFilterScriptInit() { pickup[0] = CreatePickup(1240,2,1600.8307,1818.5260,10.8203,0); return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == pickup[0]) { SetPlayerHealth(playerid,100); SendClientMessage(playerid,0x33ccffaa,"Dostal si život"); return 1; } return 0; } Potrebuješ tam to pre život nie či ti to máš urobené cez MTA ? Není to přes mta a takto to není potřeba myslím ale i tak to nefunguje už nevím co s tím Link to comment Share on other sites More sharing options...
0 Uživatel 0 Odesláno: 13. Červenec, 2014 Share Odesláno: 13. Červenec, 2014 return 0; } .. return 0... Ten nemá return 0. Ten má jen OnPlayerCommandText, OnPlayerText, a OnDialogResponse. Upřímně, už nikomu nedať. Jinak, autorovi. Pošli to celé, jak to máš . Link to comment Share on other sites More sharing options...
0 INSANE_25_ICON 0 Odesláno: 13. Červenec, 2014 Share Odesláno: 13. Červenec, 2014 .. return 0... Ten nemá return 0. Ten má jen OnPlayerCommandText, OnPlayerText, a OnDialogResponse. Upřímně, už nikomu nedať. Jinak, autorovi. Pošli to celé, jak to máš . Tiež niesom dokolaný pawno sa učím tiež robím chyby. Link to comment Share on other sites More sharing options...
0 Deleted User 295 Odesláno: 13. Červenec, 2014 Share Odesláno: 13. Červenec, 2014 Protože, jsi nastavil typ pickupu, že po 30 vteřinách zmizí: http://wiki.sa-mp.com/wiki/PickupTypes pickup[0] = CreatePickup(1240,1,1600.8307,1818.5260,10.8203,0); 2 - Disappears after pickup, respawns after 30 seconds if the player is at a distance of at least 15 meters. Zmizne po zobrati, respawne sa po 30 sec ak je hrac v oblasti 15 metrov... Staci sa naucit citat... Ak chces staticky pickup na health tak http://wiki.sa-mp.com/wiki/AddStaticPickup PS: Stale som sa este nenaucil telepaticky citat kod niekoho ineho, tak by bolo dobre ak by si ho hodil na pastebin .. return 0... Ten nemá return 0. Ten má jen OnPlayerCommandText, OnPlayerText, a OnDialogResponse. Upřímně, už nikomu nedať. Jinak, autorovi. Pošli to celé, jak to máš . v pawne moze mat kazda fce navratovu hodnotu, akurad pri niektorych fcych bude zahodena... Link to comment Share on other sites More sharing options...
Dotaz
DeLeTeCZ 17
Zdravím, mám problém s pickupem, vytvoří se asi na půl sekundy a pak zmizí..
Kód:
v OnFilterScriptInit
Předem díky za odpovědi.
Link to comment
Share on other sites
9 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now