Jump to content

[REZOLVAT] error 052: multi-dimensional arrays must be fully


KenySAMP
 Share

Recommended Posts

842    new Float: DealerCarPos1[59][4] = {
843    {869.7322, -1658.1071, 13.5469, 91.2600}, {874.5356, -1658.3322, 13.5469, 91.2600}
848     };

849

850    new Float: DealerCarPos[59][4] = {
851    {879.2720,-1658.5552, 13.5469, 91.2600}, {883.7690,-1658.7435, 13.5469, 91.2600}
852     };

 

 

ERORILE SUNT LA 848 SI 852

Link to comment
Share on other sites

  • Administrator

Array-ul multi-dimensional functioneaza asa:

new Float: var[number of columns][numbers one row] = {##}

Tu, in cele 2 array-uri ai la [number of columns] introdusa valoare '59' iar tu ai decat 2 randuri, pentru a rezolva aceasta problema, modifica valoarea [number of columns] cu randurile pe care le ai.

 

Exemplu:

new Float: DealerCarPos1[2][4] = 
{
	{869.7322, -1658.1071, 13.5469, 91.2600}, 
	{874.5356, -1658.3322, 13.5469, 91.2600}
};


[2] -> [number of columns]
[4] -> [numbers one row]

Sper ca ai inteles.

 

@@KenySAMP

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...