Kriege wieder Errors:
D:\SAMP\gamemodes\blrp.pwn(74) : error 017: undefined symbol "PATH"
D:\SAMP\gamemodes\blrp.pwn(127) : error 017: undefined symbol "DIALOG_LOGIN"
D:\SAMP\gamemodes\blrp.pwn(127) : error 017: undefined symbol "COL_WHITE"
D:\SAMP\gamemodes\blrp.pwn(127) : warning 215: expression has no effect
D:\SAMP\gamemodes\blrp.pwn(127) : error 001: expected token: "-string end-", but found "-identifier-"
D:\SAMP\gamemodes\blrp.pwn(127) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
C
//INCLUDES
#include <a_samp>
#include <YSI\y_ini>
//IF DEFINE
#if defined FILTERSCRIPT
//DEFINES
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_ERFOLGREICH_1 3
#define DIALOG_ERFOLGREICH_2 4
//FARBEN
#define BLAU 0x0000CAF6
#define GRUEN 0x21DD00FF
#define ORANGE 0xF97804FF
#define ROT 0xAA3333AA
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Black Life Roleplay by Dennis Farell");
print("----------------------------------\n");
}
#endif
enum pInfo
{
pPass,
pCash,
pKills,
pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Passwort",PlayerInfo[playerid][pPass]);
INI_Int("Geld",PlayerInfo[playerid][pCash]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Tode",PlayerInfo[playerid][pDeaths]);
return 1;
}
stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),PATH,playername);
return string;
}
stock udb_hash(buf[]) {
new length=strlen(buf);
new s1 = 1;
new s2 = 0;
new n;
for (n=0; n<length; n++)
{
s1 = (s1 + buf[n]) % 65521;
s2 = (s2 + s1) % 65521;
}
return (s2 << 16) + s1;
}
public OnGameModeInit()
{
SetGameModeText("BLRP");
AddPlayerClass(0, 1374.8986, -1633.0488,13.3828, 157.9723, 0, 0, 0, 0, 0, 0);
AddStaticVehicle(481,1361.1169,-1633.1951,12.8977,178.5903,6,6);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1378.4547,-1644.4020,13.5469);
SetPlayerCameraPos(playerid, 1378.4547,-1644.4020,13.5469);
SetPlayerCameraLookAt(playerid, 1376.8237,-1642.8486,13.3828);
return 1;
}
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Gebe dein Passwort ein um zu spielen!","Login","Beenden");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registrieren...",""COL_WHITE"Gebe ein Passwort ein um zu registrieren.","Registrieren","Beenden");
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Geld",GetPlayerMoney(playerid));
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Tode",PlayerInfo[playerid][pDeaths]);
INI_Close(File);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerHealth(playerid,100);
SetPlayerSkin(playerid, 26);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[killerid][pKills]++;
PlayerInfo[playerid][pDeaths]++;
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/hilfe", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFF9900AA, "James, an Stelle und Ort!");
return 1;
}
if (strcmp(cmdtext, "/kill", true)==0)
{
SendClientMessage(playerid, 0xAA3333AA, "Wieso bringst du dich um?");
SetPlayerHealth(playerid, 0);
return 1;
}
if(strcmp(cmdtext, "/me", true)==0)
{
new str[256], sname[256];
GetPlayerName(playerid, sname, 256);
format(str, 256, "%s %s", sname, cmdtext[4]);
SendClientMessageToAll(0x33CCFFAA, str);
return 1;
}
if(strcmp(cmdtext, "/heilen", true)==0)
{
SendClientMessage(playerid, 0x9EC73DAA, "Der automatische Arzt war hier");
SetPlayerHealth(playerid, 100);
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch( dialogid )
{
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registrierung...",""COL_RED"Du hast ein ungültiges Passwort eingegeben!\n"COL_WHITE"Gebe ein Passwort ein um zu registrieren.","Registrierung","Beenden");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Passwort",udb_hash(inputtext));
INI_WriteInt(File,"Geld",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Tode",0);
INI_Close(File);
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
ShowPlayerDialog(playerid, DIALOG_ERFOLGREICH_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Erfolgreich!",""COL_GREEN"Danke, du bist nun ein Teil des Servers "COL_LIGHTBLUE"BLACK LIFE ROLEPLAY","Ok","");
}
}
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
ShowPlayerDialog(playerid, DIALOG_ERFOLGREICH_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Erfolgreich!",""COL_GREEN"Du darfst nun Spielen!","Ok","");
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"Du hast ein falschen Passwort eingegeben.\n"COL_WHITE"Gebe dein Passwort ein um zu spielen!","Login","Beenden");
}
return 1;
}
}
}
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Alles anzeigen