Arguments does not match definition
#1

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.
Reply
#2

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

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

Fix it.
Reply
#3

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]);

Reply
#4

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)