07.06.2014, 13:43
The warning i get is
Number of arguments doesnt match definations.
and the code along with the warning line is
Number of arguments doesnt match definations.
and the code along with the warning line is
pawn Код:
if(GarageInfo[idx][gLevel] == 1 && !IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid, -72.5507,-20.3314,972.5516);
SetPlayerFacingAngle(playerid, 267.0980);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 1);
SetPlayerVirtualWorld(playerid, idx+500);
return 1;
}
else if(IsPlayerInVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) // warning line
{
SetVehiclePos(playerid, -72.5507,-20.3314,972.5516);
SetPlayerFacingAngle(playerid, 267.0980);
SetCameraBehindPlayer(playerid);
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(playerid, idx+500);
return 1;
}