error 032, error 029, errorr 001


Započeo Mr.Valdez, April 09, 2018, 08:37:09 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): C:\Users\eesio\Desktop\Unique Country RP\gamemodes\uniquescript.pwn(2792) : warning 213: tag mismatch
C:\Users\eesio\Desktop\Unique Country RP\gamemodes\uniquescript.pwn(2792) : error 032: array index out of bounds (variable "RentInfo")
C:\Users\eesio\Desktop\Unique Country RP\gamemodes\uniquescript.pwn(2792) : error 029: invalid expression, assumed zero
C:\Users\eesio\Desktop\Unique Country RP\gamemodes\uniquescript.pwn(2792) : warning 215: expression has no effect
C:\Users\eesio\Desktop\Unique Country RP\gamemodes\uniquescript.pwn(2792) : error 001: expected token: ";", but found "]"
C:\Users\eesio\Desktop\Unique Country RP\gamemodes\uniquescript.pwn(2792) : fatal error 107: too many error messages on one line

Dio skripte:
RentInfo[i] = hex_CreateVehicle(RentInfo[i][rModel], RentInfo[i][rPozicija][0], RentInfo[i][rPozicija][1], RentInfo[i][rPozicija][2], RentInfo[i][rPozicija][3], RentInfo[i][SBOJA][0], RentInfo[i][rSBOJA][1], 2400);

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): //

RentInfo[i]

nije dobro to :d
Probaj ovako
RentInfo[i][rID]
npr ( tu treba da stavis id renta iz enuma )
Poslednja Izmena: April 09, 2018, 09:59:17 PRE PODNE od Nobody.aMxx

RentInfo[rInfo] = hex_CreateVehicle(RentInfo[rInfo][rModel], RentInfo[rInfo][rPozicija][0], RentInfo[rInfo][rPozicija][1], RentInfo[rInfo][rPozicija][2], RentInfo[rInfo][rPozicija][3], RentInfo[rInfo][SBOJA][0], RentInfo[rInfo][rSBOJA][1], 2400);

Stavim tako i onda errori
C:\Users\eesio\Desktop\Unique Country RP\gamemodes\uniquescript.pwn(2792) : warning 213: tag mismatch
C:\Users\eesio\Desktop\Unique Country RP\gamemodes\uniquescript.pwn(2792) : error 032: array index out of bounds (variable "RentInfo")
C:\Users\eesio\Desktop\Unique Country RP\gamemodes\uniquescript.pwn(2792) : error 029: invalid expression, assumed zero
C:\Users\eesio\Desktop\Unique Country RP\gamemodes\uniquescript.pwn(2792) : warning 215: expression has no effect
C:\Users\eesio\Desktop\Unique Country RP\gamemodes\uniquescript.pwn(2792) : error 001: expected token: ";", but found "]"
C:\Users\eesio\Desktop\Unique Country RP\gamemodes\uniquescript.pwn(2792) : fatal error 107: too many error messages on one line



enum rInfo
{
	rModel,
	Float:rPozicija[4],
	rRentCena,
	rVrsta,
	rDozvoljenRent
};
new RentInfo[MAX_RENT][rInfo];
new UsaoRentVozilo[MAX_PLAYERS];
new	Rentano[MAX_PLAYERS];
new Text3D:RentLabel[MAX_RENT];


posalji stock hex_CreateVehicle

"I choose to have faith, because without that, I have nothing."


stock hex_CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay)
{
	if(broj_kreirana <= MAX_VEHICLES-2)
	{
		new o;
		o = CreateVehicle(vehicletype, x, y, z, rotation, color1, color2, respawn_delay);
    	hex_SetVehicleHealth(o, 999.0);
    	SetVehicleParamsCarWindows(o, 1, 1, 1, 1);
    	Pozicija_Vozila[o][0] = x;
    	Pozicija_Vozila[o][1] = y;
    	Pozicija_Vozila[o][2] = z;
    	Pozicija_Vozila[o][3] = rotation;
    	broj_kreirana ++;
    	return o;
    }
    else
    {
    	print("PREKORACEN JE LIMIT VOZILA (MAX_VEHICLES - 2) PA NEKA VOZILA NECE BITI KREIRANA(CREATEVEHICLE).");
    	vozila_upozorenje = 1;
    	return -1;
    }
}