/car help [ wont detect names ] +rep
#3

you never called this
pawn Код:
new veh = GetVehicleModelID(aVehicle );
this would change to
pawn Код:
if(aVehicle < 400 || aVehicle > 611) return SendClientMessage(playerid,color_error, "[ Error ]:"#cwhite" This is not a valid vehicle name! Please try again ");
this
pawn Код:
if(veh < 400 || veh > 611) return SendClientMessage(playerid,color_error, "[ Error ]:"#cwhite" This is not a valid vehicle name! Please try again ");
making the color to be integers, and optional. if not written will be random.
pawn Код:
if(sscanf(params, "uI(-1)I(-1)", aVehicle, Color1, Color2)) return SendClientMessage(playerid,color_usage, "[Usage]:"#cwhite" /car [car ID] [ color 1 ] [ color 2 ]");

the model id, and the colors too
pawn Код:
new PVeh = CreateVehicle(veh, Pos[0], Pos[1], Pos[2], Pos[3]+90, Color1, Color2, -1);
Reply


Messages In This Thread
/car help [ wont detect names ] +rep [ solved ] - by RicaNiel - 19.02.2012, 11:02
Re: /car help [ wont detect names ] +rep - by aRoach - 19.02.2012, 11:17
Re: /car help [ wont detect names ] +rep - by emokidx - 19.02.2012, 11:19
Re: /car help [ wont detect names ] +rep - by RicaNiel - 19.02.2012, 11:21
Re: /car help [ wont detect names ] +rep - by emokidx - 19.02.2012, 11:23
Re: /car help [ wont detect names ] +rep - by RicaNiel - 19.02.2012, 11:26
Re: /car help [ wont detect names ] +rep - by emokidx - 19.02.2012, 11:30
Re: /car help [ wont detect names ] +rep - by RicaNiel - 19.02.2012, 11:32
Re: /car help [ wont detect names ] +rep - by emokidx - 19.02.2012, 11:35
Re: /car help [ wont detect names ] +rep - by RicaNiel - 19.02.2012, 11:37

Forum Jump:


Users browsing this thread: 3 Guest(s)