What's wrong with this?
#9

Quote:
Originally Posted by FalconX
Посмотреть сообщение
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
Thanks very much! . + repution.
Reply


Messages In This Thread
What's wrong with this? - by davve95 - 01.05.2012, 19:08
Re: What's wrong with this? - by Passout - 01.05.2012, 19:10
Re: What's wrong with this? - by davve95 - 02.05.2012, 05:24
Re: What's wrong with this? - by Passout - 02.05.2012, 05:38
Re: What's wrong with this? - by MP2 - 02.05.2012, 07:39
Re: What's wrong with this? - by davve95 - 02.05.2012, 14:46
Re: What's wrong with this? - by davve95 - 02.05.2012, 16:27
Re: What's wrong with this? - by FalconX - 02.05.2012, 17:24
Re: What's wrong with this? - by davve95 - 03.05.2012, 07:32

Forum Jump:


Users browsing this thread: 2 Guest(s)