28.11.2010, 20:46
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:
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); } } } } |