Car problem.
#1

i use larp based gm , and i added many new cars . Usually cars and Ownable cars . All works but when you go first car it shows it cost 500 000 and its infernus and /v buy to buy it. But when you go second or third or fourth etc, then it dont sho that message . I dont find the porblem and i dont have idea how to fix it. Mabye anyone can help me ?

i edited these things :

Код:
new CarInfo[401][cInfo];
This under addstatic cars:

Код:
for(new h = 301; h < sizeof(CarInfo); h++)
these under loadcars and save car.cfg :

Код:
new idx = 301;
------------------------------------------

edited this:

Код:
public IsAnOwnableCar(vehicleid)
{
	if((vehicleid >= 301) && (vehicleid <= 401))
	{
	  return 1;
	}
	return 0;
}
and this too :

Код:
if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) // by Ellis
	{
	  if(IsPlayerConnected(playerid))
	  {
	    if(PlayerInfo[playerid][pAdmin] < 3)
			{
			  SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");
			  return 1;
			}
			new bool:unwanted[CAR_AMOUNT];
			for(new player=0; player<MAX_PLAYERS; player++)
   		{
      	if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
   		}
			for(new car = 1; car <= 401; car++)
			{
				if(!unwanted[car]) SetVehicleToRespawn(car);
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "SERVER: All unused cars respawned by %s.", sendername);
			BroadCast(COLOR_WHITE,string);
		}
		return 1;
	}
i hope somebody can help me .


Reply
#2

bump
Reply
#3

Really anyone dont know how to fix it ?
Reply
#4

bump
Reply
#5

The code your showin doesn`t really help much when trying to figure out your problem.
Reply
#6

Quote:
Originally Posted by ray187
The code your showin doesn`t really help much when trying to figure out your problem.
all code what is needed is here i think ?
Reply
#7

BUMP
Reply
#8

Bump
Reply
#9

bump
Reply
#10

Stop bumping and ask in the LA-RP thread.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)