Error 048: array dimensions do not match
#3

Quote:
Originally Posted by JessThompson
Посмотреть сообщение
Код:
CMD:car(playerid, params[])
{
	if(!LoggedIn[playerid]) return true;
	
	new Float:dist = 5.0, count = 0;
	
	new count = 0, test[MAX_CARS], desc[MAX_CARS][32], h = PlayerCar[playerid], Float:x, Float:y, Float:z;
	for(new f = 0; f < MAX_CARS; f++)
	{
		if(CarData[h][CarModel][f] > 400 && CarData[h][CarSpawned][f] == 1)
		{
			GetVehiclePos(CarData[h][CarVID][f], x, y, z);
			if(IsPlayerInRangeOfPoint(playerid, dist, x, y, z))
			{
				test[count] = CarData[h][CarModel][f];
				format(desc[count], 32, "%s", GetVehicleName(CarData[h][CarModel][f]));
				count++;
			}
		}
	}

	if(count > 0)
	{
		ShowModelSelectionMenuEx(playerid, desc, count, "Select Car", MODEL_SELECTION_SCAR, 0.0, 0.0, 90.0);
		carRadius[playerid] = dist;
	}
	return true;
}
Ermm I think it might be tht?
All you added was ", count = 0;"

Look below, it's already there, this isn't a "Undefined" error..
Reply


Messages In This Thread
Error 048: array dimensions do not match - by RedCounty - 04.03.2017, 19:45
Re: Error 048: array dimensions do not match - by JessThompson - 04.03.2017, 20:07
Re: Error 048: array dimensions do not match - by RedCounty - 04.03.2017, 20:24
Re: Error 048: array dimensions do not match - by Toroi - 04.03.2017, 20:46

Forum Jump:


Users browsing this thread: 3 Guest(s)