PDA

View Full Version : Warning


Compiler
01/01/2016, 03:11 PM
Hi Guys,
I am making teleport commands but I am getting a warning. E.g:

1606 if (strcmp("/aa", cmdtext, true, 10) == 0)
1607 {
1608 SetPlayerPos(playerid,404.0729,2464.5574,16.5000);
1609 SetPlayerFacingAngle(playerid,356.6976);
1610 SendClientMessage(playerid, 0xFFFF00AA, "You Have Gone To Abondoned Airport" );
1611 if(IsPlayerInAnyVehicle(playerid)) {
1612 Vehicle = GetPlayerVehicleID(playerid); SetVehiclePos(Vehicle,404.0729,2464.5574,16.5000);
1613 PutPlayerInVehicle(Vehicle); }
1614 currentveh = GetPlayerVehicleID(playerid);
1615 SetVehicleZAngle(currentveh,356.6976);
1616 return 1;
1617 }

I get this warning :

D:\Samp Server Creating\Fas FreeRoam\filterscripts\skins.pwn(1613) : warning 202: number of arguments does not match definition

Can Anybody Please help ?

Regards,
Compiler.

Tamy
01/01/2016, 03:13 PM
PutPlayerInVehicle(playerid, vehicleid, seat 0-3);

Use 0 for the driving seat, like this.

PutPlayerInVehicle(playerid, Vehicle, 0);

Kucin666
01/01/2016, 03:15 PM
Change from
PutPlayerInVehicle(Vehicle);
to
PutPlayerInVehicle(playerid, Vehicle, 0);