Guten Tag Breadfish Com,
ich habe folgendes Problem wenn ich mein Script Compilieren möchte schmiert mir der Compiler ab. ("Ohne Rückmeldung")
Hier ist das Script
#include <a_samp>
// Farben
#define COLOR_BLAU 0x005FFFFF
#define COLOR_GRÜN 0x00FF28FF
#define COLOR_RED 0xC30000FF
#define COLOR_ROSA 0xFF00EBFF
#define COLOR_BRAUN 0x2D0000FF
#define COLOR_WEIß 0xFFFFFFFF
#define COLOR_LILA 0x8C00FFFF
#define COLOR_GRAU 0xA0A0A0FF
#define COLOR_ORANGE 0xFFA000FF
#define GELB 0xFFFF03FF
#define COLOR_GOLD 0xB4A100FF
#define DRINK_GRÜN 0x007300FF
#define DRINK_ROSA 0xBC00FFFF
#define COLOR_BLAU 0x005FFFFF
#define COLOR_GRÜN 0x00FF28FF
#define COLOR_RED 0xC30000FF
#define COLOR_ROSA 0xFF00EBFF
#define COLOR_BRAUN 0x2D0000FF
#define COLOR_WEIß 0xFFFFFFFF
#define COLOR_LILA 0x8C00FFFF
#define COLOR_GRAU 0xA0A0A0FF
#define COLOR_ORANGE 0xFFA000FF
#define GELB 0xFFFF03FF
#define COLOR_GOLD 0xB4A100FF
#define DRINK_GRÜN 0x007300FF
#define DRINK_ROSA 0xBC00FFFF
new Fluss;
main()
{
print("\n----------------------------------");
print(" LPFreaks11 Hunger Games Loaded");
print("----------------------------------\n");
}
{
print("\n----------------------------------");
print(" LPFreaks11 Hunger Games Loaded");
print("----------------------------------\n");
}
public OnGameModeInit()
{
SetGameModeText("LPFreaks11 Hunger Games");
AddPlayerClass(298, -1634.1461,-2234.2627,31.4766,177.6517, 0, 0, 0, 0, 0, 0);
AddPlayerClass(60, -1634.1461,-2234.2627,31.4766,177.6517, 0, 0, 0, 0, 0, 0);
AddPlayerClass(26, -1634.1461,-2234.2627,31.4766,177.6517, 0, 0, 0, 0, 0, 0);
DisableInteriorEnterExits();
ShowPlayerMarkers(0);
ShowNameTags(0);
AddStaticVehicle(490,-1652.3749,-2241.8540,31.1048,91.1709,86,86); // debugcar1
AddStaticVehicle(490,-1653.6581,-2249.4548,32.2876,91.1709,86,86); // debugcar2
SetTimer("Update", 1000, true);
SetTimer("Cardl", 1000, true); // NEU Und dieser Timer
Create3DTextLabel("Dies ist der Hunger Games Server der LPFreaks11\nViel Spass", COLOR_RED,-1642.7117,-2247.5801,31.4766,50,0);
Fluss = CreatePickup(348, 19, -1446.1271, -2102.3757, -6.0656, 0); // Shady-Creeks Fluss-Grund
return 1;
}
{
SetGameModeText("LPFreaks11 Hunger Games");
AddPlayerClass(298, -1634.1461,-2234.2627,31.4766,177.6517, 0, 0, 0, 0, 0, 0);
AddPlayerClass(60, -1634.1461,-2234.2627,31.4766,177.6517, 0, 0, 0, 0, 0, 0);
AddPlayerClass(26, -1634.1461,-2234.2627,31.4766,177.6517, 0, 0, 0, 0, 0, 0);
DisableInteriorEnterExits();
ShowPlayerMarkers(0);
ShowNameTags(0);
AddStaticVehicle(490,-1652.3749,-2241.8540,31.1048,91.1709,86,86); // debugcar1
AddStaticVehicle(490,-1653.6581,-2249.4548,32.2876,91.1709,86,86); // debugcar2
SetTimer("Update", 1000, true);
SetTimer("Cardl", 1000, true); // NEU Und dieser Timer
Create3DTextLabel("Dies ist der Hunger Games Server der LPFreaks11\nViel Spass", COLOR_RED,-1642.7117,-2247.5801,31.4766,50,0);
Fluss = CreatePickup(348, 19, -1446.1271, -2102.3757, -6.0656, 0); // Shady-Creeks Fluss-Grund
return 1;
}
public OnGameModeExit()
{
print("\n----------------------------------");
print(" LPFreaks11 Hunger Games UnLoaded");
print("----------------------------------\n");
return 1;
}
{
print("\n----------------------------------");
print(" LPFreaks11 Hunger Games UnLoaded");
print("----------------------------------\n");
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,-1634.1461,-2234.2627,31.4766);
SetPlayerFacingAngle(playerid,177.6517);
SetPlayerCameraPos(playerid, -1634.0328,-2236.3750,31.4766);
SetPlayerCameraLookAt(playerid,-1634.1461,-2234.2627,31.4766);
return 1;
}
{
SetPlayerPos(playerid,-1634.1461,-2234.2627,31.4766);
SetPlayerFacingAngle(playerid,177.6517);
SetPlayerCameraPos(playerid, -1634.0328,-2236.3750,31.4766);
SetPlayerCameraLookAt(playerid,-1634.1461,-2234.2627,31.4766);
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessageToAll(COLOR_GRÜN, "");
SendClientMessageToAll(COLOR_GRÜN, "Ein neuer Tribut tritt dem Kampf bei!");
SendClientMessageToAll(COLOR_GRÜN, "");
for(new i = 0; i < 20; i++) {
SendClientMessage(playerid, COLOR_WEIß, "");
SendClientMessage(playerid, GELB, "Mögen Die Spiele beginnen!");
}
return 1;
}
{
SendClientMessageToAll(COLOR_GRÜN, "");
SendClientMessageToAll(COLOR_GRÜN, "Ein neuer Tribut tritt dem Kampf bei!");
SendClientMessageToAll(COLOR_GRÜN, "");
for(new i = 0; i < 20; i++) {
SendClientMessage(playerid, COLOR_WEIß, "");
SendClientMessage(playerid, GELB, "Mögen Die Spiele beginnen!");
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SendClientMessageToAll(COLOR_ORANGE, "");
SendClientMessageToAll(COLOR_ORANGE, "Ein Tribut hat den Kampf verlassen!");
SendClientMessageToAll(COLOR_ORANGE, "");
return 1;
}
{
SendClientMessageToAll(COLOR_ORANGE, "");
SendClientMessageToAll(COLOR_ORANGE, "Ein Tribut hat den Kampf verlassen!");
SendClientMessageToAll(COLOR_ORANGE, "");
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/bsn", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 1188.1136, -922.3266, 43.0938);
return 1;
}
return 0;
}
{
if (strcmp("/bsn", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 1188.1136, -922.3266, 43.0938);
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Fluss) {
GivePlayerWeapon(playerid, 6, 999999);
}
return 1;
}
{
if(pickupid == Fluss) {
GivePlayerWeapon(playerid, 6, 999999);
}
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
// ab hier ist NEU
forward Cardl();
public Cardel();
{
new LoosDL = random(20);
new AutoDL = GetVehicleHealth(vehicleid,Float:AutoDL);
new vehicleid = GetPlayerVehicleID(playerid);
{
return 1;
}
// ab hier ist NEU
forward Cardl();
public Cardel();
{
new LoosDL = random(20);
new AutoDL = GetVehicleHealth(vehicleid,Float:AutoDL);
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleHealth(vehicleid, LooseDL);
}
else
{
SendClientMessageToAll(GELB, "Debug Text AutoDL");
}
return 1;
} // Bis hier ist NEU
{
SetVehicleHealth(vehicleid, LooseDL);
}
else
{
SendClientMessageToAll(GELB, "Debug Text AutoDL");
}
return 1;
} // Bis hier ist NEU
// Timer, etc.
forward Update();
public Update()
{
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
// Hunger System
new Float:HP;
new Hunger = random(10);
new LooseHP = random(4);
if(Hunger == 1) {
GetPlayerHealth(i, HP);
SetPlayerHealth(i, HP-LooseHP);
}
// Bomben
new Explosion = 1;
if(Explosion == 1) {
if(IsPlayerInRangeOfPoint(i, 15, 1218.1136, -922.3266, 43.0938)) {
CreateExplosion(1218.1136, -922.3266, 43.0938, 7, 20);
}
}
}
}
return 1;
}
public Update()
{
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
// Hunger System
new Float:HP;
new Hunger = random(10);
new LooseHP = random(4);
if(Hunger == 1) {
GetPlayerHealth(i, HP);
SetPlayerHealth(i, HP-LooseHP);
}
// Bomben
new Explosion = 1;
if(Explosion == 1) {
if(IsPlayerInRangeOfPoint(i, 15, 1218.1136, -922.3266, 43.0938)) {
CreateExplosion(1218.1136, -922.3266, 43.0938, 7, 20);
}
}
}
}
return 1;
}
Ich hoffe Ihr könnt mir das sagen. Der bereich denn ich hinzugefügt hat eine // NEU kommentar markierung.
Mfg Extrem.Trucker