Posts: 280
Threads: 45
Joined: Jun 2008
Reputation:
0
I'm using a 'new' function so where when someone types a CMD it sets the new function to 1. How do I define the user who is using it's playerid with this function?
Posts: 6,129
Threads: 36
Joined: Jan 2009
Could you be a bit more specific? Are you trying to change a variable when a player uses a specific command? If so, what's the name of the variable?
Posts: 280
Threads: 45
Joined: Jun 2008
Reputation:
0
Ok so when a person types a CMD, by default the function is set to 0. Then when he types this CMD it's set to 1. How can I define that person's playerid? I'm thinking something like
new function =1[definedid] ?
I don't like to give out a lot of my script ideas. :S
Posts: 6,129
Threads: 36
Joined: Jan 2009
At the top of your script:
pawn Код:
new functionUsage[MAX_PLAYERS];
To set the value (in the command or whatever):
pawn Код:
functionUsage[playerid] = 1;
Posts: 280
Threads: 45
Joined: Jun 2008
Reputation:
0
Says playerid is not defined.