09.06.2013, 14:51
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
on OnPlayerClickPlayer
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
and
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
it say array must be indexed right there and everywhere i need to use it.
any idea ?
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;
Код:
externalplayerid = clickedplayerid;
i tried this
Код:
new externalplayerid[MAX_PLAYERS];
Код:
externalplayerid[WHAT I PUT HERE] = clickedplayerid;
and i think it will create lots of id mix up problem.
i tried
Код:
externalplayerid[externalplayerid] = clickedplayerid;
any idea ?