05.10.2012, 07:04
So I made this teleport and for some reason i'm getting errors; can anyone help.
These are the warnings I get
pawn Код:
CMD:mhill(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid) == 1)
{
SetPlayerInterior(playerid, 0);
}
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid),-2489.6118,-615.7424,132.1036);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 310.2000);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
}
else
{
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-2538.4004,-612.1431,132.7109);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
}
else
{
SetPlayerPos(playerid,-2538.4004,-612.1431,132.7109);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
return 1;
}
Код:
C:\Users\School\Desktop\Drift soon to be\gamemodes\drift.pwn(950) : warning 217: loose indentation C:\Users\School\Desktop\Drift soon to be\gamemodes\drift.pwn(950) : error 029: invalid expression, assumed zero C:\Users\School\Desktop\Drift soon to be\gamemodes\drift.pwn(958) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.