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

Quote:
Originally Posted by TheProfessional
Посмотреть сообщение
Are you sure? But if I just do that which parameter will work? playerid or killerid?
Variable[playerid] = value;

it's playerid ofc. cuz that's what's inside the square brackets

Quote:
Originally Posted by TheProfessional
Посмотреть сообщение
Yeah, and how do I set someone's variable using a callback? Keep in mind that I need to use a certain parameter.
Variable[killerid] = somevalue;

that's how you set it in a callback where killerid exists, OnPlayerDeath for ex.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)