Ich habe etwas aus dem forum hier bei mir kein kopiert aber bekomme errors-.-
brauche eure hilfe...hier mein script:
#include <a_samp>
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
static gTeam[MAX_PLAYERS];
#pragma tabsize 0
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_RED 0xAA3333AA
#define FILTERSCRIPT
#define TEAM_BLUE 2
forward GateCloseFbi();
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
new tor;
new tor2;
new pickup;
public OnFilterScriptInit() {
tor = CreateObject(980, 923.394, -1214.95, 18.7609, 0.0000, 360, 270);//Tor Rechts
tor2 = CreateObject(980, 923.394, -1226.45, 18.7609, 0.0000, 360, 90);//Tor Links
AddStaticPickup(1239, 19, 1553.3384,-1675.8059,16.1953); //PD Eingang
CreateObject(974, 923.471, -1208.18, 16.3871, 0.0000, 0.0000, 90); //Zaun1
print("\n--------------------------------------");
print(" All in one FS By Kevin");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit() {
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp(cmdtext, "/fbi", true)==0) {
if (gTeam[playerid] == TEAM_BLUE) {
MoveObject(tor, 923.394, -1214.95, 13.0609, 3.5);
MoveObject(tor2, 923.394, -1226.45, 13.0609, 3.5);
SetTimer("GateClosefbi", 5000, 0);
SendClientMessage(playerid, COLOR_YELLOW,"Willkommen im FBI HQ");
return 1;
} else {
SendClientMessage(playerid, 0xAA3333AA, "Du bist kein Bulle");
}
}
return 0;
}
public GateCloseFbi() {
MoveObject (tor, 923.394, -1214.95, 18.7609, 10.0);
MoveObject (tor2, 923.394, -1226.45, 18.7609, 10.0);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (PlayerToPoint(2.0, playerid, 1553.919.75,-1265.30.8059,15.17)) // PD Eingang
{
SetPlayerPos(playerid, 246,258.62,108.58,1003.22);
SetPlayerInterior(playerid, 10);
GameTextForPlayer(playerid, "~y~Willkommen ~b~im ~r~Police ~w~Department", 5000, 5);
}
return 1;
}
und das meine errors:
C:\Users\Kevin\Desktop\FbiBase.pwn(68 ) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kevin\Desktop\FbiBase.pwn(68 ) : error 029: invalid expression, assumed zero
C:\Users\Kevin\Desktop\FbiBase.pwn(68 ) : warning 215: expression has no effect
C:\Users\Kevin\Desktop\FbiBase.pwn(68 ) : warning 215: expression has no effect
C:\Users\Kevin\Desktop\FbiBase.pwn(68 ) : error 001: expected token: ";", but found "."
C:\Users\Kevin\Desktop\FbiBase.pwn(68 ) : fatal error 107: too many error messages on one line
aber wo is mein problem?