You've made the SetPlayerPos parameters wrong. Use like this:-
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == prisonInt) // if you have different prisonInt then change it.
{
// your other functions like set position
SetPlayerPos(playerid, X, Y, Z); // change x, y and z of your own.
}
return 1;
}
I think you have no idea about the functions which are like SetPlayerPos. Don't worry I'll explain you the parameters.
pawn Код:
SetPlayerPos(playerid,Float:x,Float:y,Float:z); // the playerid is clearly understandable. Float:x is the X-coordinate to set the player at and the Float:y and Float:z are the same as Float:x (i mean they work same as x but different coordinations)
In the above function there are 4 parameters including the "playerid". And in your function you've made very strange parameters.
Original Link:
https://sampwiki.blast.hk/wiki/SetPlayerPos
-FalconX