04.11.2016, 05:22
First time receiving this error.
Код:
Error 006: Must be assigned to an array
PHP код:
for(new veh=0;veh<15;veh++)
{
new str1[50],str2[20],str3[20],str4[20],str5[20],str6[20],str7[20];
format(str1, sizeof(str1), "VehX%d", veh);
format(str2, sizeof(str1), "VehY%d", veh);
format(str3, sizeof(str1), "VehZ%d", veh);
format(str4, sizeof(str1), "VehAngle%d", veh);
format(str5, sizeof(str1), "VehType%d", veh);
format(str6, sizeof(str1), "Col1%d", veh);
format(str7, sizeof(str1), "Col2%d", veh);
FacInfo[i][VehX][veh] = str1;
FacInfo[i][VehY][veh] = str2;
FacInfo[i][VehZ][veh] = str3;
FacInfo[i][VehRot][veh] = str4;
FacInfo[i][VehType][veh] = str5;
FacInfo[i][VehC1][veh] = str6;
FacInfo[i][VehC2][veh] = str7;
}