Raised This Month: $119 Target: $400
 29% 

error 035: argument type mismatch (argument 1)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:56.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode