What's wrong with this?
#1

Hi!

I'm trying to make a pick up teleport but I got this issue:

Код:
C:\Users\Davve\Desktop\Fire\Server\Fire.pwn(817) : error 029: invalid expression, assu
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Pawno code:

pawn Код:
prisonInt = CreatePickup(,-1411.6375,7.0938,15.4421);
And aslo I can't enter pick up id to create s pick up..

Thanks for help..

I can Pawno pretty much but still a beginner...
Reply
#2

https://sampwiki.blast.hk/wiki/CreatePickup

Check that link out. You are missing the "model" and the "Type" and "virtual world" which should be 0 if it is outside an interior

prisonInt = CreatePickup(model,type,-1411.6375,7.0938,15.4421,virtual world);
Reply
#3

Quote:
Originally Posted by Passout
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/CreatePickup

Check that link out. You are missing the "model" and the "Type" and "virtual world" which should be 0 if it is outside an interior

prisonInt = CreatePickup(model,type,-1411.6375,7.0938,15.4421,virtual world);
Oh ok thanks alot. I give you repution..
Reply
#4

Quote:
Originally Posted by davve95
Посмотреть сообщение
Oh ok thanks alot. I give you repution..
Anytime
Reply
#5

I told you that twice in the old topic you made..
Reply
#6

Quote:
Originally Posted by MP2
Посмотреть сообщение
I told you that twice in the old topic you made..
Oh ok lol sorry. I think I didn't understood what u mean exactily.. And the thread got unbonned so I coulden't ask more...
Reply
#7

What do you mean with "type" U mean model type (Id?) Or u mean some more because u used comma..


Edit: I know now...


Edit2: I can't fix it.. Still get errors...

Code:

pawn Код:
if(pickupid == prisonInt) SetPlayerPos(1318, 1,-1411.6375,7.0938,15.4421, 0);
Error message:

Код:
C:\Users\Davve\Desktop\Fire n flames RPG TDM\Server\Fire.pwn(817) : error 029: invalid expression, assumed zero
C:\Users\Davve\Desktop\Fire n flames RPG TDM\Server\Fire.pwn(974) : warning 202: number of arguments does not match definition
C:\Users\Davve\Desktop\Fire n flames RPG TDM\Server\Fire.pwn(974) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#8

Quote:
Originally Posted by davve95
Посмотреть сообщение
pawn Код:
if(pickupid == prisonInt) SetPlayerPos(1318, 1,-1411.6375,7.0938,15.4421, 0);
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
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)