Streamer pickup not working. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Streamer pickup not working. (
/showthread.php?tid=539550)
Streamer pickup not working. -
UserName31 - 28.09.2014
hey i dont know what is going on with the streamer pickup is no longer working for me i dont know if this is rite setup here is the code\setup
PHP код:
new Pickup[MAX_PLAYERS];
OnGamemodeIni()
PHP код:
Pickup[0] = CreateDynamicPickup(1318, 23, 1368.6230, -1279.8400, 13.5469, -1, -1, -1, 50);
callback
PHP код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
if(pickupid == Pickup[0])
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625);
}
return 1;
}
Re: Streamer pickup not working. -
[CG]Milito - 28.09.2014
Quote:
Originally Posted by UserName31
hey i dont know what is going on with the streamer pickup is no longer working for me i dont know if this is rite setup here is the code\setup
PHP код:
new Pickup[MAX_PLAYERS];
OnGamemodeIni()
PHP код:
Pickup[0] = CreateDynamicPickup(1318, 23, 1368.6230, -1279.8400, 13.5469, -1, -1, -1, 50);
callback
PHP код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
if(pickupid == Pickup[0])
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625);
}
return 1;
}
|
Why are you using MAX_PLAYERS?
OnGamemodeIni()
PHP код:
Pickup = CreateDynamicPickup(1318, 23, 1368.6230, -1279.8400, 13.5469, -1, -1, -1, 50);
callback
PHP код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
if(pickupid == Pickup)
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625);
}
return 1;
}
Re: Streamer pickup not working. -
UserName31 - 28.09.2014
Quote:
Originally Posted by [CG]Milito
Why are you using MAX_PLAYERS?
OnGamemodeIni()
PHP код:
Pickup = CreateDynamicPickup(1318, 23, 1368.6230, -1279.8400, 13.5469, -1, -1, -1, 50);
callback
PHP код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
if(pickupid == Pickup)
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625);
}
return 1;
}
|
it doesn't work
Re: Streamer pickup not working. -
AmirRFCNR - 28.09.2014
[CG]Milito's Code right ,and make sure that the interior 1 is a valid interior
Try to see this tuto about streamer pickup
Re: Streamer pickup not working. -
UserName31 - 28.09.2014
Quote:
Originally Posted by AmirRFCNR
[CG]Milito's Code right ,and make sure that the interior 1 is a valid interior
Try to see this tuto about streamer pickup
|
no it has it i checked but nothing i know i script it rite not even the checkpoint are showing
Re: Streamer pickup not working. -
[CG]Milito - 28.09.2014
Change this
PHP код:
Pickup = CreateDynamicPickup(1318, 23, 1368.6230, -1279.8400, 13.5469, -1, -1, -1, 50);
with this
PHP код:
Pickup = CreateDynamicPickup(1318, 1, 1368.6230, -1279.8400, 13.5469, -1, -1, -1, 50);