Hallo Leute
ich habe volgendes problem wenn ich die ./mta-server ausführen möchte kommt das aber k.a was das zu bedeuten hat
ERROR: Loading mod
Danke im vorraus
Hallo Leute
ich habe volgendes problem wenn ich die ./mta-server ausführen möchte kommt das aber k.a was das zu bedeuten hat
ERROR: Loading mod
Danke im vorraus
Jo leute ich kiomm hier nicht mehr weiter pls help
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(252) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(252) : warning 215: expression has no effect
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(252) : error 001: expected token: ";", but found ")"
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(252) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(252) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
#include <a_samp>
#include <dini>
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define BLAU
new EnterAmmuNation;
new ExitAmmuNation;
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by John");
print("----------------------------------\n");
}
public OnGameModeInit()
{
ExitAmmuNation=CreatePickup(1559,1,296.8770,-111.7559,1001.5156);
EnterAmmuNation=CreatePickup(1559,1,2495.3145,-1690.6173,14.7656);
DisableInteriorEnterExits();
SetGameModeText("Blank Script");
AddPlayerClass(102,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(103,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(104,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(105,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddPlayerClass(106,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddPlayerClass(107,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddStaticVehicle(482,2517.2681,-1672.7186,14.2013,80.8716,16,16); // Gcar1
AddStaticVehicle(487,2531.8638,-1677.5183,20.1067,88.5730,16,16); // Gcar2
AddStaticVehicle(492,2508.4331,-1665.9999,13.1851,13.3850,16,16); // Gcar3
AddStaticVehicle(492,2502.4177,-1657.4597,13.1913,54.4720,16,16); // Gcar4
AddStaticVehicle(492,2491.3528,-1655.4596,13.1454,87.0854,16,16); // Gcar5
AddStaticVehicle(492,2491.2363,-1682.9813,13.1202,92.8535,16,16); // Gcar6
AddStaticVehicle(492,2504.2158,-1679.3121,13.1619,135.4726,16,16); // Gcar7
AddStaticVehicle(534,2473.0803,-1693.3424,13.2392,359.1475,16,16); // Gcar8
AddStaticVehicle(467,1942.0206,-1141.2206,25.1857,90.9517,5,5); // Bcar1
AddStaticVehicle(467,1933.0507,-1141.3674,24.9614,91.1633,5,5); // Bcar2
AddStaticVehicle(467,1910.7198,-1116.2435,25.4056,0.2359,5,5); // Bcar3
AddStaticVehicle(467,1922.1654,-1130.6038,24.6865,271.5723,5,5); // Bcar4
AddStaticVehicle(475,1933.8871,-1119.9832,26.2430,359.4479,5,5); // Bcar5
AddStaticVehicle(475,1992.7706,-1119.4379,26.5795,89.2626,5,5); // Bcar6
AddStaticVehicle(475,2009.3406,-1120.3386,26.1584,89.8836,5,5); // Bcar7
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1499.1031,-942.8401,51.3468);
SetPlayerFacingAngle(playerid,289.8234);
SetPlayerCameraPos(playerid,1499.2920,-942.9570,51.3617);
SetPlayerCameraLookAt(playerid,1499.1031,-942.8401,51.3468);
return 1;
}
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Gieb bitte das Gewüntschte Passwort ein:","Register","Abbrechen");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
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,"/restart",true)==0)
{
SendRconCommand("gmx");
return 1;
}
return 1;
}
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)
{
if(pickupid==EnterAmmuNation)
{
SetPlayerPos(playerid,296.919982,-108.071998,1001.515625);
SetPlayerInterior(playerid,6);
}
if(pickupid==ExitAmmuNation)
{
SetPlayerPos(playerid,2495.3262,-1687.1743,13.5153);
SetPlayerFacingAngle(playerid,357.4138);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
}
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_REGISTER)
{
if(response==0)
{
SendClientMessage(playerid,BLAU,"Du hast Abgebrochen,");
Kick(playerid);
return 1;
}
if(response==1)
{
if(!strlen,(inputtext))
{
SendClientMessage(playerid,BLAU,"Das Passwort ist zu Kurtz.");
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Gieb bitte das Gewüntschte Passwort ein:","Register","Abbrechen");
return 1;
{
else
}
}
Register(playerid,inputtext);
return 1;
}
}
return 1;
}
public OnPlayerClickPlayer(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),"/Accounts/%s.txt",name);
dini_create(spielerdatei);
dini_set(spielerdatei,"Passwort",key);
SenClientMessage(clienid,BLAU,"Erfolgreich Regestriert");
return 1;
}
#include <a_samp>
#include <dini>
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
new EnterAmmuNation;
new ExitAmmuNation;
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by John");
print("----------------------------------\n");
}
public OnGameModeInit()
{
ExitAmmuNation=CreatePickup(1559,1,296.8770,-111.7559,1001.5156);
EnterAmmuNation=CreatePickup(1559,1,2495.3145,-1690.6173,14.7656);
DisableInteriorEnterExits();
SetGameModeText("Blank Script");
AddPlayerClass(102,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(103,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(104,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(105,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddPlayerClass(106,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddPlayerClass(107,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddStaticVehicle(482,2517.2681,-1672.7186,14.2013,80.8716,16,16); // Gcar1
AddStaticVehicle(487,2531.8638,-1677.5183,20.1067,88.5730,16,16); // Gcar2
AddStaticVehicle(492,2508.4331,-1665.9999,13.1851,13.3850,16,16); // Gcar3
AddStaticVehicle(492,2502.4177,-1657.4597,13.1913,54.4720,16,16); // Gcar4
AddStaticVehicle(492,2491.3528,-1655.4596,13.1454,87.0854,16,16); // Gcar5
AddStaticVehicle(492,2491.2363,-1682.9813,13.1202,92.8535,16,16); // Gcar6
AddStaticVehicle(492,2504.2158,-1679.3121,13.1619,135.4726,16,16); // Gcar7
AddStaticVehicle(534,2473.0803,-1693.3424,13.2392,359.1475,16,16); // Gcar8
AddStaticVehicle(467,1942.0206,-1141.2206,25.1857,90.9517,5,5); // Bcar1
AddStaticVehicle(467,1933.0507,-1141.3674,24.9614,91.1633,5,5); // Bcar2
AddStaticVehicle(467,1910.7198,-1116.2435,25.4056,0.2359,5,5); // Bcar3
AddStaticVehicle(467,1922.1654,-1130.6038,24.6865,271.5723,5,5); // Bcar4
AddStaticVehicle(475,1933.8871,-1119.9832,26.2430,359.4479,5,5); // Bcar5
AddStaticVehicle(475,1992.7706,-1119.4379,26.5795,89.2626,5,5); // Bcar6
AddStaticVehicle(475,2009.3406,-1120.3386,26.1584,89.8836,5,5); // Bcar7
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1499.1031,-942.8401,51.3468);
SetPlayerFacingAngle(playerid,289.8234);
SetPlayerCameraPos(playerid,1499.2920,-942.9570,51.3617);
SetPlayerCameraLookAt(playerid,1499.1031,-942.8401,51.3468);
return 1;
}
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Gieb bitte das Gewüntschte Passwort ein:","Register","Abbrechen");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
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,"/restart",true)==0)
{
SendRconCommand("gmx");
return 1;
}
return 1;
}
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)
{
if(pickupid==EnterAmmuNation)
{
SetPlayerPos(playerid,296.919982,-108.071998,1001.515625);
SetPlayerInterior(playerid,6);
}
if(pickupid==ExitAmmuNation)
{
SetPlayerPos(playerid,2495.3262,-1687.1743,13.5153);
SetPlayerFacingAngle(playerid,357.4138);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
}
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_REGISTER)
{
if(response==0)
{
SendClientMessage(playerid,BLAU,"Du hast Abgebrochen,");
Kick(playerid);
return 1;
}
if(response==1)
{
if(!strlen,(inputtext))
{
SendClientMessage(playerid,BLAU,"Das Passwort ist zu Kurtz.");
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Gieb bitte das Gewüntschte Passwort ein:","Register","Abbrechen");
return 1;
{
else
}
}
Register(playerid,imputtext);
return 1;
}
}
return 1;
}
public OnPlayerClickPlayer(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),"/Accounts/%s.txt",name);
dini_create(spielerdatei);
dini_set(spielerdatei,"Passwort",key);
SenClientMessage(clienid,BLAU,"Erfolgreich Regestriert");
return 1;
}
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(252) : error 017: undefined symbol "BLAU"
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(258) : error 076: syntax error in the expression, or invalid function call
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(260) : error 017: undefined symbol "BLAU"
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(263) : warning 225: unreachable code
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(263) : warning 217: loose indentation
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(264) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(267) : error 017: undefined symbol "imputtext"
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(283) : error 001: expected token: ";", but found "-identifier-"
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(284) : error 017: undefined symbol "spielerdatei"
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(284) : error 020: invalid symbol name ""
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(284) : error 017: undefined symbol "spielerdatei"
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(284) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
Okay 1 Fehler habe ich schon gefunden Nämlich den Rechtschreib fehler
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(97) : error 076: syntax error in the expression, or invalid function call
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(100) : warning 217: loose indentation
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(102) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
//edit Vllt hatt ja einer lust mir Mier und ein paar anderen einen Server zu machen Ts3 habe ich und 1 fähige admin Mappen kann ich und dan vllt noch ein Scripter Event. machen wir damit ein paar € Müssen wa halt vllt als Gewerbe
anmelden
#include <a_samp>
new EnterAmmuNation;
new ExitAmmuNation;
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by John");
print("----------------------------------\n");
}
public OnGameModeInit()
{
ExitAmmuNation=CreatePickup(1559,1,296.8770,-111.7559,1001.5156);
EnterAmmuNation=CreatePickup(1559,1,2495.3145,-1690.6173,14.7656);
DisableInteriorEnterExits();
SetGameModeText("Blank Script");
AddPlayerClass(102,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(103,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(104,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(105,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddPlayerClass(106,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddPlayerClass(107,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddStaticVehicle(482,2517.2681,-1672.7186,14.2013,80.8716,16,16); // Gcar1
AddStaticVehicle(487,2531.8638,-1677.5183,20.1067,88.5730,16,16); // Gcar2
AddStaticVehicle(492,2508.4331,-1665.9999,13.1851,13.3850,16,16); // Gcar3
AddStaticVehicle(492,2502.4177,-1657.4597,13.1913,54.4720,16,16); // Gcar4
AddStaticVehicle(492,2491.3528,-1655.4596,13.1454,87.0854,16,16); // Gcar5
AddStaticVehicle(492,2491.2363,-1682.9813,13.1202,92.8535,16,16); // Gcar6
AddStaticVehicle(492,2504.2158,-1679.3121,13.1619,135.4726,16,16); // Gcar7
AddStaticVehicle(534,2473.0803,-1693.3424,13.2392,359.1475,16,16); // Gcar8
AddStaticVehicle(467,1942.0206,-1141.2206,25.1857,90.9517,5,5); // Bcar1
AddStaticVehicle(467,1933.0507,-1141.3674,24.9614,91.1633,5,5); // Bcar2
AddStaticVehicle(467,1910.7198,-1116.2435,25.4056,0.2359,5,5); // Bcar3
AddStaticVehicle(467,1922.1654,-1130.6038,24.6865,271.5723,5,5); // Bcar4
AddStaticVehicle(475,1933.8871,-1119.9832,26.2430,359.4479,5,5); // Bcar5
AddStaticVehicle(475,1992.7706,-1119.4379,26.5795,89.2626,5,5); // Bcar6
AddStaticVehicle(475,2009.3406,-1120.3386,26.1584,89.8836,5,5); // Bcar7
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1499.1031,-942.8401,51.3468);
SetPlayerFacingAngle(playerid,289.8234);
SetPlayerCameraPos(playerid,1499.2920,-942.9570,51.3617);
SetPlayerCameraLookAt(playerid,1499.1031,-942.8401,51.3468);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
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,"/restart",true)==0)
{
SendRconCommand("gmx");
return 1;
}
return 1; }
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)
{
if(pickupid==EnterAmmuNation)
{
SetPlayerPos(playerid,296.919982,-108.071998,1001.515625);
SetPlayerInterior(playerid,6);
}
if(pickupid==ExitAmmuNation)
{
SetPlayerPos(playerid,2495.3262,-1687.1743,13.5153);
SetPlayerFacingAngle(playerid,357.4138);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
}
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[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
if(strcmp,(cmdtext,"/restart",true)==0);
Okay und woher kommn all die errors 0.o
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(97) : error 076: syntax error in the expression, or invalid function call
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(97) : error 036: empty statement
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(98) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase2 Errors.
#include <a_samp>
new EnterAmmuNation;
new ExitAmmuNation;
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by John");
print("----------------------------------\n");
}
public OnGameModeInit()
{
ExitAmmuNation=CreatePickup(1559,1,296.8770,-111.7559,1001.5156);
EnterAmmuNation=CreatePickup(1559,1,2495.3145,-1690.6173,14.7656);
DisableInteriorEnterExits();
SetGameModeText("Blank Script");
AddPlayerClass(102,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(103,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(104,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(105,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddPlayerClass(106,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddPlayerClass(107,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddStaticVehicle(482,2517.2681,-1672.7186,14.2013,80.8716,16,16); // Gcar1
AddStaticVehicle(487,2531.8638,-1677.5183,20.1067,88.5730,16,16); // Gcar2
AddStaticVehicle(492,2508.4331,-1665.9999,13.1851,13.3850,16,16); // Gcar3
AddStaticVehicle(492,2502.4177,-1657.4597,13.1913,54.4720,16,16); // Gcar4
AddStaticVehicle(492,2491.3528,-1655.4596,13.1454,87.0854,16,16); // Gcar5
AddStaticVehicle(492,2491.2363,-1682.9813,13.1202,92.8535,16,16); // Gcar6
AddStaticVehicle(492,2504.2158,-1679.3121,13.1619,135.4726,16,16); // Gcar7
AddStaticVehicle(534,2473.0803,-1693.3424,13.2392,359.1475,16,16); // Gcar8
AddStaticVehicle(467,1942.0206,-1141.2206,25.1857,90.9517,5,5); // Bcar1
AddStaticVehicle(467,1933.0507,-1141.3674,24.9614,91.1633,5,5); // Bcar2
AddStaticVehicle(467,1910.7198,-1116.2435,25.4056,0.2359,5,5); // Bcar3
AddStaticVehicle(467,1922.1654,-1130.6038,24.6865,271.5723,5,5); // Bcar4
AddStaticVehicle(475,1933.8871,-1119.9832,26.2430,359.4479,5,5); // Bcar5
AddStaticVehicle(475,1992.7706,-1119.4379,26.5795,89.2626,5,5); // Bcar6
AddStaticVehicle(475,2009.3406,-1120.3386,26.1584,89.8836,5,5); // Bcar7
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1499.1031,-942.8401,51.3468);
SetPlayerFacingAngle(playerid,289.8234);
SetPlayerCameraPos(playerid,1499.2920,-942.9570,51.3617);
SetPlayerCameraLookAt(playerid,1499.1031,-942.8401,51.3468);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
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,"/restart",true)==0);
{
SendRconCommand("gmx");
return 1;
}
}
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)
{
if(pickupid==EnterAmmuNation)
{
SetPlayerPos(playerid,296.919982,-108.071998,1001.515625);
SetPlayerInterior(playerid,6);
}
if(pickupid==ExitAmmuNation)
{
SetPlayerPos(playerid,2495.3262,-1687.1743,13.5153);
SetPlayerFacingAngle(playerid,357.4138);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
}
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[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
2 Errors.
[/pwn]
Wie erkennt man sowas ??
Woher weist du das
naja nun ist der eine warn in lv 15 noch da
Nun wo ich exit fertig habe komm das
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(15) : warning 213: tag mismatch
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(165) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
#include <a_samp>
new EnterAmmuNation;
new ExitAmmuNation;
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by John");
print("----------------------------------\n");
}
public OnGameModeInit()
{
ExitAmmuNation=CreatePickup(1559,1,102,296.8962,-111.7771,1001.5156);
EnterAmmuNation=CreatePickup(1559,1,2495.3145,-1690.6173,14.7656);
DisableInteriorEnterExits();
SetGameModeText("Blank Script");
AddPlayerClass(102,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(103,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(104,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(105,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddPlayerClass(106,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddPlayerClass(107,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddStaticVehicle(482,2517.2681,-1672.7186,14.2013,80.8716,16,16); // Gcar1
AddStaticVehicle(487,2531.8638,-1677.5183,20.1067,88.5730,16,16); // Gcar2
AddStaticVehicle(492,2508.4331,-1665.9999,13.1851,13.3850,16,16); // Gcar3
AddStaticVehicle(492,2502.4177,-1657.4597,13.1913,54.4720,16,16); // Gcar4
AddStaticVehicle(492,2491.3528,-1655.4596,13.1454,87.0854,16,16); // Gcar5
AddStaticVehicle(492,2491.2363,-1682.9813,13.1202,92.8535,16,16); // Gcar6
AddStaticVehicle(492,2504.2158,-1679.3121,13.1619,135.4726,16,16); // Gcar7
AddStaticVehicle(534,2473.0803,-1693.3424,13.2392,359.1475,16,16); // Gcar8
AddStaticVehicle(467,1942.0206,-1141.2206,25.1857,90.9517,5,5); // Bcar1
AddStaticVehicle(467,1933.0507,-1141.3674,24.9614,91.1633,5,5); // Bcar2
AddStaticVehicle(467,1910.7198,-1116.2435,25.4056,0.2359,5,5); // Bcar3
AddStaticVehicle(467,1922.1654,-1130.6038,24.6865,271.5723,5,5); // Bcar4
AddStaticVehicle(475,1933.8871,-1119.9832,26.2430,359.4479,5,5); // Bcar5
AddStaticVehicle(475,1933.8871,-1119.9832,26.2431,359.4479,5,5); // Bcar5
AddStaticVehicle(475,1992.7706,-1119.4379,26.5795,89.2626,5,5); // Bcar6
AddStaticVehicle(475,2009.3406,-1120.3386,26.1584,89.8836,5,5); // Bcar7
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1499.1031,-942.8401,51.3468);
SetPlayerFacingAngle(playerid,289.8234);
SetPlayerCameraPos(playerid,1499.2920,-942.9570,51.3617);
SetPlayerCameraLookAt(playerid,1499.1031,-942.8401,51.3468);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
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[])
{
return 1;
}
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)
{
if(pickupid==EnterAmmuNation)
{
SetPlayerPos(playerid,296.919982,-108.071998,1001.515625);
SetPlayerInterior(playerid,6);
}
if(pickupid==ExitAmmuNation)
{
SetPlayerPos(playerid,106,2495.3262,-1687.1743,13.5153);
SetPlayerFacingAngle(playerid,357.4138);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
}
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[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Krass Danke ;D
In wie fern ??
JO Leute
ich brauche eure Hilfe ich habe Volgendes
Ich wollte ein Interior machen aber iwie haut de nicht hin was mache ich Falsch ??
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(16) : error 017: undefined symbol "EnterAmmuNation"
C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(158) : error 017: undefined symbol "EnterAmmuNation"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
#include <a_samp>
#if defined FILTERSCRIPT
new EnterAmmuNation;
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by John");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
EnterAmmuNation=CreatePickup(1559,1,2495.3145,-1690.6173,14.7656);
DisableInteriorEnterExits();
SetGameModeText("Blank Script");
AddPlayerClass(102,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(103,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(104,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
AddPlayerClass(105,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddPlayerClass(106,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddPlayerClass(107,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
AddStaticVehicle(482,2517.2681,-1672.7186,14.2013,80.8716,16,16); // Gcar1
AddStaticVehicle(487,2531.8638,-1677.5183,20.1067,88.5730,16,16); // Gcar2
AddStaticVehicle(492,2508.4331,-1665.9999,13.1851,13.3850,16,16); // Gcar3
AddStaticVehicle(492,2502.4177,-1657.4597,13.1913,54.4720,16,16); // Gcar4
AddStaticVehicle(492,2491.3528,-1655.4596,13.1454,87.0854,16,16); // Gcar5
AddStaticVehicle(492,2491.2363,-1682.9813,13.1202,92.8535,16,16); // Gcar6
AddStaticVehicle(492,2504.2158,-1679.3121,13.1619,135.4726,16,16); // Gcar7
AddStaticVehicle(534,2473.0803,-1693.3424,13.2392,359.1475,16,16); // Gcar8
AddStaticVehicle(467,1942.0206,-1141.2206,25.1857,90.9517,5,5); // Bcar1
AddStaticVehicle(467,1933.0507,-1141.3674,24.9614,91.1633,5,5); // Bcar2
AddStaticVehicle(467,1910.7198,-1116.2435,25.4056,0.2359,5,5); // Bcar3
AddStaticVehicle(467,1922.1654,-1130.6038,24.6865,271.5723,5,5); // Bcar4
AddStaticVehicle(475,1933.8871,-1119.9832,26.2430,359.4479,5,5); // Bcar5
AddStaticVehicle(475,1933.8871,-1119.9832,26.2431,359.4479,5,5); // Bcar5
AddStaticVehicle(475,1992.7706,-1119.4379,26.5795,89.2626,5,5); // Bcar6
AddStaticVehicle(475,2009.3406,-1120.3386,26.1584,89.8836,5,5); // Bcar7
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1499.1031,-942.8401,51.3468);
SetPlayerFacingAngle(playerid,289.8234);
SetPlayerCameraPos(playerid,1499.2920,-942.9570,51.3617);
SetPlayerCameraLookAt(playerid,1499.1031,-942.8401,51.3468);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
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[])
{
return 1;
}
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)
{
if(pickupid==EnterAmmuNation)
{
SetPlayerPos(playerid,296.919982,-108.071998,1001.515625);
SetPlayerInterior(playerid,6);
}
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[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}