27.04.2017, 09:50
Quote:
GetPlayerPos(playerid, AccInfo[MAX_PLAYERS][currentpos[0]], AccInfo[MAX_PLAYERS][currentpos[1]], AccInfo[MAX_PLAYERS][currentpos[2]);
Errors highlighted. Use playerid instead of MAX_PLAYERS. |
When you define what "AccInfo" is, you define that it's an array. It contains Max_players slots available for use.
So when you are using it in the code, you got to use playerid to assign a value to the correct slot in the array.