GetPlayerCheckPoint -
DragonBlaster50 - 28.07.2010
I know their is one, could someone give it to me?
I mean in the way of:
CheckPoint122 = SetPlayerCheckPoint(bla,bla,bla,bla,bla,bla,bla
So i can do getPlayerCheckpoint(CheckPoint122)
or, if(GetPlayerCheckpoint = CheckPoint122
Thank you.
Re: GetPlayerCheckPoint -
Mauzen - 28.07.2010
By default, you only can have one Checkpoint at a time. If you want to have more, you need to use a streamer FS/plugin
Re: GetPlayerCheckPoint -
[HUN]Jaki - 28.07.2010
You can keep checkpoint ids in an array, but there is no GetPlayerCheckPoint.
pawn Код:
new CheckPointId[MAX_PLAYERS];
pawn Код:
CheckPointId[playerid] = SetPlayerCheckPoint(bla,bla,bla,bla,bla,bla,bla
CheckPoint122 =CheckPoint[playerid]
Re: GetPlayerCheckPoint -
Vince - 28.07.2010
Like I said yesterday in another topic, this will have NO effect as SetPlayerCheckpoint does NOT return an id, unlike CreatePickup for example.
Re: GetPlayerCheckPoint -
DragonBlaster50 - 28.07.2010
thats why i Gave Information, since it IS possible to do: CheckPoint1 = SetPlayerCheckpoint...
And yes, i know i can only do one at a time.
Re: GetPlayerCheckPoint -
Carlton - 28.07.2010
- Nevermind, I remembered SetPlayerCheckpoint doesn't return a value. Anyway, it doesn't matter, you can't use multicheckpoints so it doesn't matter.
Re: GetPlayerCheckPoint -
DragonBlaster50 - 28.07.2010
Again, i was never talking about "Multicheckpoints" i am talking about only ONE. witch is an 1.
Re: GetPlayerCheckPoint -
Carlton - 28.07.2010
Quote:
Originally Posted by DragonBlaster50
Again, i was never talking about "Multicheckpoints" i am talking about only ONE. witch is an 1.
|
Then there's no point of getting it when there is only one checkpoint.
Re: GetPlayerCheckPoint -
DragonBlaster50 - 28.07.2010
Their is, Let me show you my OnPlayerEnterCheckpoint,
http://leelad.pastebin.com/sGH44JRD
I need a function like GetPlayerCHeckPoint so i can continue, or you know a way to Define another Checkpoint?
Re: GetPlayerCheckPoint -
ikey07 - 28.07.2010
use ++; thing, let I show you what I mean
on top
new PlayerCP[MAX_PLAYERS];
somewhere
SetPlayerCheck....
PlayerCP[playerid] = 1;
on player enter cp
if PlayerCP[playerid] >= 1)
{
PlayerCP[playerid]++;
SetPlayerCheckp
}
got it?