19.02.2012, 11:19
you never called this
this would change to
this
making the color to be integers, and optional. if not written will be random.
the model id, and the colors too
pawn Код:
new veh = GetVehicleModelID(aVehicle );
pawn Код:
if(aVehicle < 400 || aVehicle > 611) return SendClientMessage(playerid,color_error, "[ Error ]:"#cwhite" This is not a valid vehicle name! Please try again ");
pawn Код:
if(veh < 400 || veh > 611) return SendClientMessage(playerid,color_error, "[ Error ]:"#cwhite" This is not a valid vehicle name! Please try again ");
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);