#include <a_samp>#include <dini>
#define Grün 0x00FF74FF#define Blau 0x0000E9FF#define Rot 0xE40000FF
#define DIALOG_TUTORIAL 1#define DIALOG_BSN 2#define DIALOG_LS 3#define DIALOG_LV 4#define DIALOG_NOOBSPAWN 5#define DIALOG_IT 6#define DIALOG_REGISTER 7#define DIALOG_LOGIN 8
main(){ print("\n----------------------------------"); print("Das ist ein 100% selfmade Server gemacht von KingofDeath"); print("----------------------------------\n");}
public OnGameModeInit(){
SetGameModeText("RoL Script"); DisableInteriorEnterExits(); AddPlayerClass(1,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(2,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(3,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(4,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(5,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(6,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(7,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(8,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(9,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(10,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(14,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(15,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(16,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(17,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(18,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(19,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(20,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(21,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(22,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(23,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(24,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(25,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(26,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(27,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(28,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(29,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(30,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(31,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(32,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(33,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(34,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(35,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(36,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(37,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(38,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(39,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); AddPlayerClass(40,1714.5769,-1880.6062,13.5667,3.4566,0,0,0,0,0,0); return 1;}
public OnGameModeExit(){ return 1;}
public OnPlayerRequestClass(playerid, classid){ SetPlayerPos(playerid,1714.5769,-1880.6062,13.5667); SetPlayerFacingAngle(playerid,1.5766); SetPlayerCameraPos(playerid,1714.6987,-1878.3250,13.5666); SetPlayerCameraLookAt(playerid,1714.0693,-1882.2163,13.5668); return 1;}
public OnPlayerConnect(playerid){ new Spielerdatei[64]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(Spielerdatei,sizeof(Spielerdatei),"/Account/%s.txt",name); if(dini_Exists(Spielerdatei)) { ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Der Account wurde gefunden.Bitte gib dein Passwort ein.","LOGIN","ABBRUCH"); } else { ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register","Um weiter zu kommen(um zu spielen) bitte Registrieren!!","REGISTER","ABBRUCH"); } return 1;}
public OnPlayerDisconnect(playerid, reason){ return 1;}
public OnPlayerSpawn(playerid){ ShowPlayerDialog(playerid,DIALOG_TUTORIAL,DIALOG_STYLE_MSGBOX,"Tutorial","Wenn du für ein Tutorial bist drücke (JA) wenn nicht dann (NEIN)!!!!!","JA","NEIN"); return 1;}
public OnPlayerDeath(playerid, killerid, reason){ 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(cmdtext,"/bsn",true)==0) { ShowPlayerDialog(playerid,DIALOG_BSN,DIALOG_STYLE_MSGBOX,"BSN","Willst du wirklich zum BSN gespawnt werden.","JA","NEIN"); return 1; } if(strcmp(cmdtext,"/ls",true)==0) { ShowPlayerDialog(playerid,DIALOG_LS,DIALOG_STYLE_MSGBOX,"LS","Willst du wirklich nach LS gespawnt werden.","JA","NEIN"); return 1; } if(strcmp(cmdtext,"/lv",true)==0) { ShowPlayerDialog(playerid,DIALOG_LV,DIALOG_STYLE_MSGBOX,"LV","Willst du wirklich nach LV gespawnt werden.","JA","NEIN"); return 1; } if(strcmp(cmdtext,"/ns",true)==0) { ShowPlayerDialog(playerid,DIALOG_NOOBSPAWN,DIALOG_STYLE_MSGBOX,"Noobspawn","Willst du wirklich zum Noobspawn.","JA","NEIN"); return 1; } if(strcmp(cmdtext,"/it",true)==0) { ShowPlayerDialog(playerid,DIALOG_IT,DIALOG_STYLE_MSGBOX,"Tutorial","Wenn du dafür bist klicke (JA) an wenn nicht dann (NEIN).","JA","NEIN"); } 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[]){ if(dialogid==DIALOG_BSN) { if(response==1) { SetPlayerPos(playerid,1215.2194,-931.0075,42.6593); SendClientMessage(playerid,0x00FF74FF,"Du wurdest zum Bsn teleportiert!"); } if(response==0) { SendClientMessage(playerid,0x0000E9FF,"OK dann halt!"); } } if(dialogid==DIALOG_LS) { if(response==1) { SetPlayerPos(playerid,1528.1333,-1683.2850,13.3828); SendClientMessage(playerid,0x00FF74FF,"Du wurdest nach Los Santos(LS) teleportiert!"); } if(response==0) { SendClientMessage(playerid,0x0000E9FF,"Ok dan halt nicht!"); } } if(dialogid==DIALOG_LV) { if(response==1) { SetPlayerPos(playerid,1696.4312,1461.4584,10.7619); SendClientMessage(playerid,0x00FF74FF,"Du wurdest nach Los Ventura(LV)teleportiert!"); } if(response==0) { SendClientMessage(playerid,0x0000E9FF,"Dann halt nicht!"); } } if(dialogid==DIALOG_NOOBSPAWN) { if(response==1) { SetPlayerPos(playerid,1696.4312,1461.4584,10.7619); SendClientMessage(playerid,0x00FF74FF,"Du wurdest zum Noobspawn teleportiert!"); } if(response==0) { SendClientMessage(playerid,0x0000E9FF,"Dann halt nicht!"); } } if(dialogid==DIALOG_TUTORIAL) { if(response==1) { SendClientMessageToAll(0xE40000FF," %s ist für ein Tutorial ihr auch dann schreib /it viel Spaß noch beim Spielen"); } if(response==0) { SendClientMessageToAll(0xE40000FF," %s ist gegen ein Tutorial ihr auch dann schreibt /it viel Spaß noch beim Spielen"); } } if(dialogid==0) { if(response==1) { SendClientMessageToAll(0xE40000FF," %s ist für ein Tutorial mitmachen mit /it viel Spaß noch beim Spielen"); } if(response==1) { SendClientMessageToAll(0xE40000FF," %s ist gegen ein Tutorial mitmachen mit /it viel Spaß noch beim Spielen"); } } if(dialogid==DIALOG_REGISTER) { if(response==0) { SendClientMessage(playerid,Blau,"Du hast leider abbgebrochen!"); Kick(playerid); return 1; } if(response==1) { if(!strlen(inputtext)) { SendClientMessage(playerid,Rot,"Du hast kein Passwort eingegeben!!"); ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register","Um weiter zu kommen(um zu spielen) bitte Registrieren!!","REGISTER","ABBRUCH"); return 1; } else { Register(playerid,inputtext); return 1; } } } if(dialogid==DIALOG_LOGIN) { if(response==0) { SendClientMessage(playerid,Blau,"Du hast leider abbgebrochen!"); Kick(playerid); return 1; } if(response==1) { if(!strlen(inputtext)) { SendClientMessage(playerid,Rot,"Du hast kein Passwort eingegeben!!"); ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Der Account wurde gefunden.Bitte gib dein Passwort ein.","LOGIN","ABBRUCH"); return 1; } else { Login(playerid,inputtext); return 1; } }}publicOnPlayerClickPlayer(playerid,clickedplayerid,source){ return 1;}
stock Register(playerid,key[]){ new Spielerdatei[64]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(Spielerdatei,sizeof(Spielerdatei),"/Account/%s.txt",name); dini_Create(Spielerdatei); dini_Set(Spielerdatei,"Passwort",key); SendClientMessage(playerid,Blau,"Erfolgreich registriert viel Spaß noch auf Real of Life. Bei fragen steht dir das Adminteam gerne zu Verfügung."); dini_IntSet(Spielerdatei,"Level",3); dini_IntSet(Spielerdatei,"Geld",100000); dini_IntSet(Spielerdatei,"Fraktion",0); dini_IntSet(Spielerdatei,"Rang",0); return 1;}
stock Login(playerid,key[]){ new Spielerdatei[64]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(Spielerdatei,sizeof(Spielerdatei),"/Account/%s.txt",name); if(!strcmp(key,dini_Get(Spielerdatei,"Passwort",false)) { SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level")); SendPlayerMessage(playerid,Grün,"Erfolgreich eingeloggt"); return 1; } else { SendClientMessage(playerid,Rot,"Falsches Passwort."); ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Der Account wurde gefunden.Bitte gib dein Passwort ein.","LOGIN","ABBRUCH"); return 1; } return 1;}
und die Fehlermeldungen:
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(376) : error 017: undefined symbol "Register"
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(399) : error 017: undefined symbol "Login"
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(404) : warning 217: loose indentation
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(404) : error 017: undefined symbol "publicOnPlayerClickPlayer"
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(409) : warning 225: unreachable code
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(409) : error 029: invalid expression, assumed zero
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(409) : error 017: undefined symbol "Register"
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(416) : error 017: undefined symbol "key"
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(425) : warning 225: unreachable code
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(425) : error 029: invalid expression, assumed zero
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(425) : error 017: undefined symbol "Login"
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(431) : error 017: undefined symbol "key"
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(434) : error 017: undefined symbol "SendPlayerMessage"
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(444) : warning 225: unreachable code
C:\Users\Andreas Schuster\Desktop\Server\gamemodes\server.pwn(446) : error 030: compound statement not closed at the end of file (started at line 288)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
11 Errors.