SA-MP Forums Archive
Arguments does not match definition - 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: Arguments does not match definition (/showthread.php?tid=528803)



Arguments does not match definition - devil shill - 29.07.2014

Hey guys im wonder why im getting the warning arguments does not match definition,
basicly i dont see anything wrong with this line but i could be wrong ofcours.

Код:
		pC1[playerid] = CreateVehicle(PlayerInfo[playerid][pPcarkey], PlayerInfo[playerid][pC1X], PlayerInfo[playerid][pC1Y], PlayerInfo[playerid][pC1Z],
		PlayerInfo[playerid][pC1A], PlayerInfo[playerid][pC1C1], PlayerInfo[playerid][pPcarint], PlayerInfo[playerid][pPcarvw], PlayerInfo[playerid][pC1C2], -1);
The warning came up after
Код:
PlayerInfo[playerid][pPcarint], PlayerInfo[playerid][pPcarvw]
was added to the line.


Re: Arguments does not match definition - sammp - 29.07.2014

(modelid, Float, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)

It only takes 8 args, you're providing 10.

Fix it.


Re: Arguments does not match definition - devil shill - 29.07.2014

Thanks for the head-up sammp im not entirely awake i guess should have known by replacing it with

Quote:

SetVehicleVirtualWorld(pC1[playerid], PlayerInfo[playerid][pPCarvw]);
LinkVehicleToInterior(pC1[playerid], PlayerInfo[playerid][pPCarint]);




Re: Arguments does not match definition - sammp - 29.07.2014

Yep, no problem mate

Trust me, I do it all the time when I'm half awake!

If you're experiencing mismatch problems again, seek assistance from the wiki before you post a thread!

Thanks!