[Ajuda] Atalho
#10

Deu-me 3 erros:

error 029: invalid expression, assumed zero
error 017: undefined symbol "newkeys"
error 017: undefined symbol "newkeys"

E eu meti da seguinte maneira:

Quote:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_HANDBRAKE)
{
for(new i = 0; i < sizeof(Houses); i++)
{
if(IsPlayerInRangeOfPoint(playerid,1.0,Houses[i][EnterX],Houses[i][EnterY],Houses[i][EnterZ]))
{
if(GetPlayerVirtualWorld(playerid) == Houses[i][EnterWorld])
{
if(PlayerInfo[playerid][pHouseKey] == i || Houses[i][Locked] == 0 || PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerInterior(playerid,Houses[i][ExitInterior]);
SetPlayerPos(playerid,Houses[i][ExitX],Houses[i][ExitY],Houses[i][ExitZ]);
SetPlayerVirtualWorld(playerid,i);
SetPlayerFacingAngle(playerid,Houses[i][ExitAngle]);
}
}
else
{
GameTextForPlayer(playerid, "~r~Trancado", 5000, 1);
}
}
}
}

Reply


Messages In This Thread
[Ajuda] Atalho - by Swat007forever - 28.11.2010, 19:21
Re: [Ajuda] Atalho - by faeldk - 28.11.2010, 19:27
Re: [Ajuda] Atalho - by Swat007forever - 28.11.2010, 19:42
Re: [Ajuda] Atalho - by faeldk - 28.11.2010, 19:50
Re: [Ajuda] Atalho - by Swat007forever - 28.11.2010, 20:31
Re: [Ajuda] Atalho - by Swat007forever - 28.11.2010, 20:36
Re: [Ajuda] Atalho - by faeldk - 28.11.2010, 20:37
Re: [Ajuda] Atalho - by Swat007forever - 28.11.2010, 20:38
Re: [Ajuda] Atalho - by faeldk - 28.11.2010, 20:41
Re: [Ajuda] Atalho - by Swat007forever - 28.11.2010, 20:46

Forum Jump:


Users browsing this thread: 3 Guest(s)