A Bug with Carsys?
#1

People buy cars and then after they park it or leave the server when they call their car again, its a different car
Reply
#2

...
Reply
#3

Maybe you can show us the Carsys part of code,
so we can help you?
Reply
#4

What part of it you want to see?
the call vehicle part?
Код:
	if(strcmp(cmd, "/callv", true) == 0)
	{
	  if(IsPlayerInAnyVehicle(playerid) ) return SendClientMessage(playerid,red,"you already have a car.");

    GetPlayerName(playerid,PlayerName,30);
	  new car = PlayerInfo[playerid][CarID];

	  if(VehicleInfo[car][CarOwned] == 1 && PlayerInfo[playerid][OwnCar] == 1)
		{
	  		if(GetPlayerMoney(playerid) < 1000)
	  		{
				SendClientMessage(playerid,red,"You need 1000$ to call your vehicle");
			}
			else
			{
				GetPlayerPos(playerid,Pos[playerid][0],Pos[playerid][1],Pos[playerid][2]);
				SetPlayerCameraPos(playerid, Pos[playerid][0],Pos[playerid][1],Pos[playerid][2]);
				SetPlayerCameraLookAt(playerid, Pos[playerid][0],Pos[playerid][1],Pos[playerid][2]);
				PutPlayerInVehicle(playerid, car, 0);
				GetVehicleZAngle(GetPlayerVehicleID(playerid), Angle[playerid]);
				SetTimerEx("TeleCar",1000,0,"i",playerid);
			  SendClientMessage(playerid,green,"Your vehicle is here!");
				GivePlayerMoney(playerid,-1000);
			}
		}
		else
		{
		SendClientMessage(playerid,red,"You dont have a vehicle!");
		}
		return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)