Meine Errors:
C:\Users\AnthoNy\Desktop\Scripten\gamemodes\selfmade.pwn(2) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\AnthoNy\Desktop\Scripten\gamemodes\selfmade.pwn(16) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\AnthoNy\Desktop\Scripten\pawno\include\core.inc(12) : error 021: symbol already defined: "CBugWorld"
C:\Users\AnthoNy\Desktop\Scripten\gamemodes\selfmade.pwn(97) : error 010: invalid function or declaration
C:\Users\AnthoNy\Desktop\Scripten\gamemodes\selfmade.pwn(104) : error 010: invalid function or declaration
C:\Users\AnthoNy\Desktop\Scripten\gamemodes\selfmade.pwn(145) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Die ersten 24 Zeilen:
//COLORS
#define COLOR_TUERKIS 0x00B9FFFF
#define COLOR_DUNKELBLAU 0x000FFFFF
#define COLOR_GELB 0xFFFA00FF
#define COLOR_ORANGE 0xFF8200FF
#define COLOR_GRUEN 0x37FF00FF
#define COLOR_ROT 0xE10000FF
#define COLOR_DUNKELROT 0x9B0000FF
#define COLOR_PINK 0xFF00E1FF
#define COLOR_LILA 0x7800FFFF
#define COLOR_WEISS 0xFFFFFFFF
//cbug
new CBugWorld[MAX_PLAYERS]
#include <a_samp>
#if defined FILTERSCRIPT
OnPLayerDeath
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
return 1;
}
if(CBugWorld[playerid]==1)
{
SetPlayerPos(playerid,1412.639892,-1.787510,1000.924377);
SetPlayerInterior(playerid,1);
GivePlayerWeapon(playerid,24,400);
GivePlayerWeapon(playerid,34,400);
SetPlayerArmour(playerid,100);
return 1;
}
OnPlayerCommandText
if (strcmp("/cbug",cmdtext, true, 10) == 0)
{
SetPlayerArmour(playerid,100);
SetPlayerHealth(playerid,100);
SendClientMessage(playerid,COLOR_ORANGE,"|~~~Du hast die cbug world betreten~~~|");
SetPlayerPos(playerid,1412.639892,-1.787510,1000.924377);
SetPlayerInterior(playerid,1);
GivePlayerWeapon(playerid,24,400);
GivePlayerWeapon(playerid,34,400);
CBugWorld[playerid]=1
return 1;
}