Ich bekomm den Error:
D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(6891) : error 010: invalid function or declaration
D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(6894) : error 010: invalid function or declaration
D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(6896) : error 010: invalid function or declaration
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == (KEY_SUBMISSION))
{
//LVPD EINFAHRTSTOR
if(IsPlayerInRangeOfPoint(playerid,3.5, 2350.0652,2423.2896,10.7618))
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
MoveObject(LVPDtor1, 2339.08,2451.31,6.17, 2.0);
SetTimer("LVPDtor1zu", 3500, 0);
MoveObject(LVPDtor2, 2330.20,2436.41,6.17, 2.0);
SetTimer("LVPDtor2zu", 3500, 0);
}
}
else if(IsPlayerInRangeOfPoint(playerid,3.5, 2316.7664,2446.2881,3.0210))
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
MoveObject(LVPDtor1, 2339.08,2451.31,6.17, 2.0);
SetTimer("LVPDtor1zu", 3500, 0);
MoveObject(LVPDtor2, 2330.20,2436.41,6.17, 2.0);
SetTimer("LVPDtor2zu", 3500, 0);
}
}
//LVPD HINTERTOR
else if(IsPlayerInRangeOfPoint(playerid,3.5, 2306.0933,2491.6829,3.0179))
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2)
{
MoveObject(LVPDhintertor, 2293.850586,2505.787109,3.941181,2.0);
SetTimer("LVPDhintertorzu", 4500, 0);
}
}
else if(IsPlayerInRangeOfPoint(playerid,3.5, 2248.4939,2494.7490,10.4546))
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2)
{
MoveObject(LVPDhintertor, 2293.850586,2505.787109,3.941181,2.0);
SetTimer("LVPDhintertorzu", 4500, 0);
}
}
//LVPDschranke
else if(IsPlayerInRangeOfPoint(playerid,10.0,2238.197510,2450.375977,10.622423))
{
MoveObjektRot(LVPDschranke,0.8594,356.5623,270.0000,15);
SetTimer("LVPDschrankezu", 1500, 0);
GivePlayerMoney(playerid, -20);
GameTextForPlayer(playerid, "Willkommen im LVPD, der Parkplatz kostet 20$",5000,5);
}
}
}
if(newkeys == (KEY_WALK)) //Hier kommen die ERRORS
{
//FBItüroben rechts
if(IsPlayerInRangeOfPoint(playerid,2, 298.18594360352,189.36297607422,1006.171875))
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
{
MoveObject(LVPDfbitur1links 294.32751464844, 189.30493164063, 1006.171875, 2.0);
SetTimer("LVPDfbitur1linkszu", 3500, 0);
MoveObject(LVPDfbitur1rechts, 298.96795654297, 189.37852478027, 1006.171875, 2.0);
SetTimer("LVPDfbitur1rechtszu", 3500, 0);
}
}
Klammerfehler? aber welchen?
Wenn ich alles ab if(newkeys == (KEY_WALK)) nicht mehr mitcompile...
klappt alles