SA-MP Forums Archive
error 035: argument type mismatch (argument 1) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 035: argument type mismatch (argument 1) (/showthread.php?tid=547118)



error 035: argument type mismatch (argument 1) - Stoyanov - 20.11.2014

I need help.

Код:
#define DERBY_CARS 9
new DB_VehicleID[DERBY_CARS] =
{
	415,
	502,
	504,
	541,
	561,
	560,
	562,
	400,
	549
};
Код:
DBP_Vehicle[playerid] = CreateVehicle(DB_VehicleID,DB_Spawns[DBP_Stats[playerid]][RandomDerby][0], DB_Spawns[DBP_Stats[playerid]][RandomDerby][1], DB_Spawns[DBP_Stats[playerid]][RandomDerby][2]+2,0,random(126), random(126),50000);



Re : error 035: argument type mismatch (argument 1) - Dutheil - 20.11.2014

You declared an array with id models at inside, you must using it like an array :
Код:
DBP_Vehicle[playerid] = CreateVehicle(DB_VehicleID[?], ...



Re: error 035: argument type mismatch (argument 1) - dominik523 - 20.11.2014

This will not work for you, playerid might be over 8 which is the highest index of your array with models.


Re: error 035: argument type mismatch (argument 1) - Stoyanov - 20.11.2014

ohh. Thanks

It's working