How can I use a parameter from a callback?
#6

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Do you mean to check in the callback if the variable for that player is 1 or 0? It's indeed possible and pretty much that's what arrays are for.

In a callback with "playerid" parameter you want to check when it's called:
pawn Код:
if (Variable[playerid] == 0)
{
}
OR:
pawn Код:
if (Variable[playerid] == 1)
{
}
Yeah, and how do I set someone's variable using a callback? Keep in mind that I need to use a certain parameter.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)