Warning - 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: Warning (
/showthread.php?tid=597522)
Warning -
Compiler - 01.01.2016
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.
Re: Warning -
Tamy - 01.01.2016
Код:
PutPlayerInVehicle(playerid, vehicleid, seat 0-3);
Use 0 for the driving seat, like this.
Код:
PutPlayerInVehicle(playerid, Vehicle, 0);
Re: Warning -
Kucin666 - 01.01.2016
Change from
Код:
PutPlayerInVehicle(Vehicle);
to
Код:
PutPlayerInVehicle(playerid, Vehicle, 0);