memcpy error.
#1

error 032: array index out of bounds (variable "Veh")

Код HTML:
new Veh[MAX_PLAYERS][9][i_Veh];
Код HTML:
memcpy(Veh[playerid][i], Veh[MAX_PLAYERS][9], 0, sizeof(Veh[][])*4, sizeof(Veh[][]));
Reply
#2

PHP код:
memcpy(Veh[playerid][i], Veh[MAX_PLAYERS-1][8], 0sizeof(Veh[][])*4sizeof(Veh[][])); 
or alternatively change the array size like that:
PHP код:
new Veh[MAX_PLAYERS+1][10][i_Veh]; 
any of those methods above will solve your problem, use only one of them.
Reply
#3

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)