What's wrong with this? -
davve95 - 01.05.2012
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...
Re: What's wrong with this? -
Passout - 01.05.2012
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);
Re: What's wrong with this? -
davve95 - 02.05.2012
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..
Re: What's wrong with this? -
Passout - 02.05.2012
Quote:
Originally Posted by davve95
Oh ok thanks alot. I give you repution..
|
Anytime
Re: What's wrong with this? -
MP2 - 02.05.2012
I told you that twice in the old topic you made..
Re: What's wrong with this? -
davve95 - 02.05.2012
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...
Re: What's wrong with this? -
davve95 - 02.05.2012
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.
Re: What's wrong with this? -
FalconX - 02.05.2012
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
Re: What's wrong with this? -
davve95 - 03.05.2012
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.