Car system has 1 bug
#7

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new string[128];
    new vecCarid = Car_getVecCarID(vehicleid);
    if(vecCarID != INVALID_CAR_ID)// (6105) : error 017: undefined symbol "vecCarID"
    {
  if(Cars[vecCarid][cOwned] == 0)
  {
  format(string,sizeof(string),"[ ! ] ID : %d ' %s ' Price : %d RCASH",vecCarid,Cars[vecCarid][cDescription],Cars[vecCarid][cPrice]);
  SendClientMessage(playerid,COLOR_GREY,string);
  }
  }
  if(Cars[vecCarid][cOwned] == 1)
  {
  format(string,sizeof(string),"[ ! ] ID : %d ' %s ' Bought by : %s",vecCarid,Cars[vecCarid][cDescription],Cars[vecCarid][cOwner]);
  SendClientMessage(playerid,COLOR_GREY,string);
  return 0;
  }
    return 1;
}
1 error now. It is inside the pawno code.

EDIT: Okay got it compiling.

EDIT #2 : I tried to add new vecCarid = Car_getVecCarID(vehicleid); to OnPlayerCommandText it says vehicleid is undefined lol. do i just make it playerid instead ?
Reply


Messages In This Thread
Car system has 1 bug - by coole210 - 27.07.2009, 20:30
Re: Car system has 1 bug - by coole210 - 27.07.2009, 23:58
Re: Car system has 1 bug - by yezizhu - 28.07.2009, 00:17
Re: Car system has 1 bug - by coole210 - 28.07.2009, 00:28
Re: Car system has 1 bug - by yezizhu - 28.07.2009, 02:35
Re: Car system has 1 bug - by coole210 - 28.07.2009, 14:06
Re: Car system has 1 bug - by coole210 - 28.07.2009, 14:14
Re: Car system has 1 bug - by saiberfun - 28.07.2009, 14:39
Re: Car system has 1 bug - by coole210 - 28.07.2009, 14:41
Re: Car system has 1 bug - by yezizhu - 28.07.2009, 16:48

Forum Jump:


Users browsing this thread: 1 Guest(s)