Guten Tag,
ich habe ein Selfmade
und ich möchte machen einen Eingang mit Enter
ich habe es so gemacht:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
else if (IsPlayerInRangeOfPoint(playerid,4.0,1555.1777,-1675.5518,16.1953))//Lspd Enter
{
SetPlayerPos(playerid,239.0564,142.2301,1003.0234);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid,358.7832);
SendClientMessage(playerid,COLOR_GREEN,"Du hast das LSPD betreten.");
}
else if (IsPlayerInRangeOfPoint(playerid,4.0,238.7661,138.6258,1003.0234))//lspd Exit
{
SetPlayerPos(playerid,1549.4977,-1675.6803,14.9931);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,98.9059);
SendClientMessage(playerid,COLOR_GREEN, "Du hast das LSPD verlassen");
}
}
return 1;
}
Kriege diese Errors
C:\Users\Moriz\Desktop\Server Scripts\Selfmade\gamemodes\tutorial.pwn(494) : error 029: invalid expression, assumed zero
C:\Users\Moriz\Desktop\Server Scripts\Selfmade\gamemodes\tutorial.pwn(494) : warning 215: expression has no effect
C:\Users\Moriz\Desktop\Server Scripts\Selfmade\gamemodes\tutorial.pwn(494) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Hoffe kann einer helfen
Mfg
Hydra