Pickup TelePort
#1

Does anyone know why 7/10 times if your using a pickup to change a players position it will crash them? It gives you about 40 warnings then the game crashes?
Reply
#2

Quote:
Originally Posted by Jason_Larson
Does anyone know why 7/10 times if your using a pickup to change a players position it will crash them? It gives you about 40 warnings then the game crashes?
They work fine for me, you must of coded them wrong.
Reply
#3

No... Codes below....

pawn Code:
new pk_fdenter;

pk_fdenter = CreatePickup(1318,23,1207.5006,-1439.0385,13.3828,-1); //ToEnterFDSA

if ( pickupid == pk_fdenter )
{
 SendClientMessage(playerid,COLOR_YELLOW,"(INFO) Welcome to the San Andreas Fire Department Los Santos precinct.");
 SetPlayerInterior(playerid,0)
 SetPlayerVirtualWorld(playerid,23);
 SetPlayerPos(playerid,492.0486,1399.5579,1080.2649);
}
Reply
#4

top of script:

Code:
new pk_fdenter;
ongamemodeinit:

Code:
pk_fdenter = CreatePickup(1318,23,1207.5006,-1439.0385,13.3828,-1); //ToEnterFDSA
onplayerpickuppickup

Code:
if ( pickupid == pk_fdenter )
{
 SendClientMessage(playerid,COLOR_YELLOW,"(INFO) Welcome to the San Andreas Fire Department Los Santos precinct.");
 SetPlayerInterior(playerid,0)
 SetPlayerVirtualWorld(playerid,23);
 SetPlayerPos(playerid,492.0486,1399.5579,1080.2649);
}
make sure you return 1; in each of them callbacks
Reply
#5

That is all as it is set up.
Reply
#6

You have to use OnPlayerPickupPickup. If you don't use it, the server will crash instantly
Reply
#7

Lol he is using OnPlayerPickupPickup...
Reply
#8

Quote:
Originally Posted by mavtias
Lol he is using OnPlayerPickupPickup...
Correcto I am
Reply
#9

Quote:
Originally Posted by mavtias
Lol he is using OnPlayerPickupPickup...
He should post it then..
Reply
#10

What errors/warnings do you get?
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)