01.05.2014, 01:40
Estб dando erro nesse meu cуdigo:
Erros:
Linhas:
pawn Код:
if(GetPlayerState(playerid) ! PLAYER_STATE_DRIVER && newkeys & KEY_CROUCH)
{
if(CameraLigada[playerid] == 0)
{
GameTextForPlayer(playerid, "~w~camera~g~ ligada", 5000, 6);
AttachCameraToObject(playerid, ObjetoPlayer[playerid]);
CameraLigada[playerid] = 1;
}
else if(CameraLigada[playerid] == 1)
{
GameTextForPlayer(playerid, "~w~camera~r~ desligada", 5000, 6);
SetCameraBehindPlayer(playerid);
CameraLigada[playerid] = 0;
}
return 1;
}
pawn Код:
C:\Users\Erickson\Documents\EMPRESA COMERCIAL BRV @GTSBR.NET\SA-MP @BRV.NET\Brasil Style Life - RPG\gamemodes\bslgm.pwn(462) : error 010: invalid function or declaration
C:\Users\Erickson\Documents\EMPRESA COMERCIAL BRV @GTSBR.NET\SA-MP @BRV.NET\Brasil Style Life - RPG\gamemodes\bslgm.pwn(464) : error 010: invalid function or declaration
C:\Users\Erickson\Documents\EMPRESA COMERCIAL BRV @GTSBR.NET\SA-MP @BRV.NET\Brasil Style Life - RPG\gamemodes\bslgm.pwn(470) : error 010: invalid function or declaration
C:\Users\Erickson\Documents\EMPRESA COMERCIAL BRV @GTSBR.NET\SA-MP @BRV.NET\Brasil Style Life - RPG\gamemodes\bslgm.pwn(476) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
(462) if(GetPlayerState(playerid) ! PLAYER_STATE_DRIVER && newkeys & KEY_CROUCH)
(464) if(CameraLigada[playerid] == 0)
(470) else if(CameraLigada[playerid] == 1)
(476) return 1;