i have got players index it's 1-32. but userid is different. so i need to do something with player after typing
amx_action 1 in servers console.
i tried this so far:
PHP Code:
public amxaction(id) {
new target[128];
read_args(target, 127);
new players[32], inum;
get_players(players, inum);
new player = players[target];
but it doesn't seem to work. it throws
error 033: array must be indexed (variable "target")
it's because i need to manipulate with players from rcon. my php script got playerx index number and i need to activate command on him. i could use amx_action playerx but i think it could be buggy if others have similar nickname.