Jump to content
  • 0

Problema Compile


Boros

Question

6 answers to this question

Recommended Posts

  • 0

new Float:checkCoords[MAX_POINTS][4] = {
{-36.5483,-57.9948, -17.2655,-49.2967},     //BANK
{1894.6128,1445.3431, 2084.9739,1637.8186}, //PIRATE
{284.0546,-86.4384, 302.9315,-56.6674},     //AMMUNATION
{2024.56,1007.65,10.81,172323,2000},  //DRAGON
{-115.9544,-24.2706, -99.1631,-7.1391},     //SEXSHOP
{487.6558,-88.5900, 512.0635, -67.7503},    //BAR
{2216.7971,1638.0493, 2255.2097,1714.0806}, //CALIGULA
{144.9131,-96.0927, 177.4128,-70.7923},    	//ZIP
{201.4462,-112.4556, 218.5237,-95.1238},    //BINCO
{-204.7623,-44.0326, -200.2330,-39.8128},   //TATOO
{416.7485,-84.4242, 422.6890,-74.0611},		//BOTIQUE
{-2676.0637,1398.3545,-2642.4065,1421.6180},//JIZZY
{369.0025,-131.6332,378.1711,-116.3600}, 	//PIZZA
{201.9053,-11.7524,225.9064,-4.1778},     	//VICTIM
{1201.1422,-16.6343,1223.4420,12.6656},     //STRIPCLUB
{-1996.0801,253.4684,-1942.0564,310.0717},  //WANG CARS
{2099.1985,2328.5200,2179.1382,2405.8721},  //EMERALD ISLE
{1998.3783,1875.9679,2066.3425,1957.0034},  //THE VISAGE
{199.4294,-46.8185,209.5469,-34.0015},  	//SUBURBAN
{198.8601,-137.9890,214.9677,-128.5504},  	//PRO LAPS
{363.5299,-73.9080,381.7558,-57.7846},  	//BURGER SHOT
{364.8330,-10.3823,380.1563,-6.4998},  		//CLUCKIN' BELL
{478.4092,-22.1267,498.3633,-7.5962},  		//CLUB
{198.9507,-166.7670,210.7806,-156.2189},  	//DIDIER SACHS
{-1986.7450,640.8196,-1918.7468,712.6972}, //ZOMBOTECH
};
Fix aici imi da eroarea C:\DOCUME~1\RinX\Desktop\ng.pwn(145) : error 018: initialization data exceeds declared size linia 145 fiind
{2024.56,1007.65,10.81,172323,2000},  //DRAGON

se afla si mai sus dar am aratat-o separat.

%7Boption%7Dhttp://monitors.cancel.lt/server_info/sa-mp.tni.ro:7777:samp/560x9

Link to comment
Share on other sites

  • 0

C:\DOCUME~1\RinX\Desktop\ng.pwn(166) : error 018: initialization data exceeds declared size

Alta...

C:\DOCUME~1\RinX\Desktop\ng.pwn(642) : error 047: array sizes do not match, or destination array is too small

Dupa Cod se pare ca are legatura cu ce e mai sus...

public checkpointUpdate()
{
	for(new i=0; i<MAX_PLAYERS; i++)
	{
	    if(IsPlayerConnected(i)) {
	        for(new j=0; j < MAX_POINTS; j++) {
	            if(IsPlayerInArea(i, checkCoords[j])) {
	                if(playerCheckpoint[i]!=j) {
	                    DisablePlayerCheckpoint(i);
						SetPlayerCheckpoint(i, checkpoints[j][0],checkpoints[j][1],checkpoints[j][2], 2);
						playerCheckpoint[i] = j;
					}
	            } else {
	            	if(playerCheckpoint[i]==j) {
	            	    DisablePlayerCheckpoint(i);
	            	    playerCheckpoint[i] = 999;
         	    	}
	            }
	        }
		}
	}
}
Adica la linia asta
 if(IsPlayerInArea(i, checkCoords[j])) {
Acum nu mai am eroare asta C:\DOCUME~1\RinX\Desktop\ng.pwn(642) : error 047: array sizes do not match, or destination array is too small C:\DOCUME~1\RinX\Desktop\ng.pwn(166) : error 018: initialization data exceeds declared size am pus o virgula unde nu trebuia adica aici la codul acesta
{-1986.7450,640.8196,-1918.7468,712.6972} //ZOMBOTECH
};

dupa comentariu... mai intervine doar aceasta eroare

C:\DOCUME~1\RinX\Desktop\ng.pwn(642) : error 047: array sizes do not match, or destination array is too small

%7Boption%7Dhttp://monitors.cancel.lt/server_info/sa-mp.tni.ro:7777:samp/560x9

Link to comment
Share on other sites

  • 0

Incearca sa pui 25 in loc de 4.

(Prima linie din cod)

Gresit,

Cauta MAX_POINTS si pune 25 sau cate linii ai tu acolo.

4 se refera la numarul de celule din elementele ariei

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.