View Single Post
Author Message
lisauro
New Member
Join Date: Oct 2020
Old 10-13-2020 , 00:14   error 035: argument type mismatch (argument 1)
Reply With Quote #1

Trying to fix a code, getting error in this line. Am noob, sorry, provided all warning/error info as compiler show.
Code:
CreateTeamVehicle(org,rank,model,Float:X,Float:Y,Float:Z,Float:A,Color_1,Color_2,spawntime)
{
	new carid = J_AddStaticVehicleEx(model, X, Y, Z, A, Color_1, Color_2, spawntime);  <=== error in this line
	VehicleInfo[carid][vTeam] = org;
	VehicleInfo[carid][vRank] = rank;
	return carid;
}
In fact multiple warnings just for that line.
symbol is never used: "spawntime"
symbol is never used: "Color_2"
symbol is never used: "Color_1"
symbol is never used: "A"
symbol is never used: "Z"
symbol is never used: "Y"
symbol is never used: "X"
symbol is never used: "model"
warning 219: local variable "model" shadows a variable at a preceding level
warning 219: local variable "X" shadows a variable at a preceding level
warning 219: local variable "Y" shadows a variable at a preceding level
warning 219: local variable "Z" shadows a variable at a preceding level
warning 219: local variable "A" shadows a variable at a preceding level
warning 219: local variable "carid" shadows a variable at a preceding level
lisauro is offline