27.04.2009, 15:02
Having over 700 vehicles and over 128 vehicle types causes crashes.
Add this command to find out how many vehicles/types your server has
Add this command to find out how many vehicles/types your server has
pawn Код:
if(strcmp(cmdtext,"/checkvehicles",true)==0)
{
new tmp,tmp2[212];
for(new i; i<MAX_VEHICLES;i++)
{
if(GetVehicleModel(i))
{
tmp++;
tmp[GetVehicleModel(i)]++;
}
}
new tmp3;
for(new i; i<212;i++)if(tmp2[i])tmp3++;
format(tmp2,sizeof(tmp2),"%d vehicles -- %d vehicle types.",tmp,tmp3);
return SendClientMessage(playerid,0xFF0000FF,tmp2);
}