TS3 PHP Framework

hi i am trying to edit multiple channels at the same time in ts3 with php but i am getting the error “TS3 error: 513: nickname is already in use (This nickname is already in use)”

the way i am trying is:

$ channel = $ ts3-> channelGetById (‘id’);
$ channel [“channel_name”] = “name”;
$ channel_1 = $ ts3-> channelGetById (‘id’);
$ channel_1 [“channel_name”] = “name1”;
$ channel_2 = $ ts3-> channelGetById (‘id’);
$ channel_2 [“channel_name”] = “name2”;

try also:

$ ids = array (1, 2, 3, 4);

foreach ($ ids as $ id) {
$ channel = $ ts3-> channelGetById ($ id);
$ channel [“channel_name”] = “name”;
$ channel [“channel_name”] = “name1”;
$ channel [“channel_name”] = “name2”;
}

but they are not changed correctly.

If anyone comes up with an idea, I’ll be grateful.

Thanks.

@ScP?

twitch instagram twitter facebook