09.09.2018, 08:14
Guys, I have a little question it's about commands if I made a command like this
It's a kick command, So the question is
* If the var id acts as a global var will it mess? Or Should I put id[MAX_PLAYERS]
I mean if someone type /kick 0 and another one suddenly type /kick 1 , first one is a slow typer and the both command will execute at once
Then what would be declared as id there?
Or all commands works separately for each 1?
Код:
CMD:kick(playerid,params)
{
new id;
if(sscanf(params, "u", id) return scm(playerid, COLOR_USAGE, "USAGE:/kick [id]");
if(id == INVALID_PLAYER_ID) return scm(playerid, COLOR_ERROR, "invalid id");
Kick(id);
return 1;
}
* If the var id acts as a global var will it mess? Or Should I put id[MAX_PLAYERS]
I mean if someone type /kick 0 and another one suddenly type /kick 1 , first one is a slow typer and the both command will execute at once
Then what would be declared as id there?
Or all commands works separately for each 1?


