[MAX_PLAYERS] must be indexed
#1

hi all
i have another problem.

i need to get the clickedplayerid on OnPlayerClickPlayer to use it later outside of OnPlayerClickPlayer.
so this is what i do

on top of code
Код:
new externalplayerid;
on OnPlayerClickPlayer
Код:
externalplayerid = clickedplayerid;
it work but can only be used once. ( if 2 player use it at same time , only the last one is stored )

i tried this
Код:
new externalplayerid[MAX_PLAYERS];
and
Код:
externalplayerid[WHAT I PUT HERE] = clickedplayerid;
but the problem here is that i cant use [playerid] as they are not in my custom function and give error.
and i think it will create lots of id mix up problem.
i tried
Код:
externalplayerid[externalplayerid] = clickedplayerid;
it say array must be indexed right there and everywhere i need to use it.

any idea ?
Reply


Messages In This Thread
[MAX_PLAYERS] must be indexed - by NvidiaForTheWin - 09.06.2013, 14:51
Re: [MAX_PLAYERS] must be indexed - by Aly - 09.06.2013, 15:07
Re : [MAX_PLAYERS] must be indexed - by NvidiaForTheWin - 09.06.2013, 15:20
Re: [MAX_PLAYERS] must be indexed - by Aly - 09.06.2013, 15:32
Re : [MAX_PLAYERS] must be indexed - by NvidiaForTheWin - 09.06.2013, 15:46
Re: [MAX_PLAYERS] must be indexed - by Aly - 09.06.2013, 15:51
Re : [MAX_PLAYERS] must be indexed - by NvidiaForTheWin - 09.06.2013, 16:00
Re: [MAX_PLAYERS] must be indexed - by Aly - 09.06.2013, 16:11
Re : [MAX_PLAYERS] must be indexed - by NvidiaForTheWin - 09.06.2013, 16:35
Re: [MAX_PLAYERS] must be indexed - by Aly - 09.06.2013, 16:39

Forum Jump:


Users browsing this thread: 4 Guest(s)