14.07.2018, 14:47
You can directly store it into the array:
Furthermore the strcat line at the end is not quite correct.
You append to the pDialog array, however pass the size of the format1 array (pDialog is 2100 cells, format1 is 40 so the strcat only writes to the 40th index of pDialog).
It needs to be:
Or just leave away the last argument as it does that automatically.
i is the index for the RoomInfo array, not a playerid.
Код:
GetPlayerName(playerid, RoomInfo[i][Owner], MAX_PLAYER_NAME);
You append to the pDialog array, however pass the size of the format1 array (pDialog is 2100 cells, format1 is 40 so the strcat only writes to the 40th index of pDialog).
It needs to be:
Код:
strcat(pDialog, format1, sizeof(pDialog));
i is the index for the RoomInfo array, not a playerid.