SA-MP Forums Archive
Car problem. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Car problem. (/showthread.php?tid=126243)



Car problem. - Peep - 07.02.2010

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 .





Re: Car problem. - Peep - 08.02.2010

bump


Re: Car problem. - Peep - 08.02.2010

Really anyone dont know how to fix it ?


Re: Car problem. - Peep - 09.02.2010

bump


Re: Car problem. - ray187 - 09.02.2010

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


Re: Car problem. - Peep - 11.02.2010

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 ?


Re: Car problem. - Peep - 12.02.2010

BUMP


Re: Car problem. - Peep - 13.02.2010

Bump


Re: Car problem. - Peep - 19.02.2010

bump


Re: Car problem. - Elorreli - 19.02.2010

Stop bumping and ask in the LA-RP thread.