Ich habe ein Teleport Command gemacht und habe folgende Errors erhalten .
Was habe ich flasch gemacht ?
ERRORS 5
C:\Users\[GsA]Gamer\Desktop\Gsa Samp server\GsA\gamemodes\Selfmade.pwn(134) : error 017: undefined symbol "SpielerSpeichern"
preceding level
C:\Users\[GsA]Gamer\Desktop\Gsa Samp server\GsA\gamemodes\Selfmade.pwn(192) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\[GsA]Gamer\Desktop\Gsa Samp server\GsA\gamemodes\Selfmade.pwn(192) : error 017: undefined symbol "LS"
C:\Users\[GsA]Gamer\Desktop\Gsa Samp server\GsA\gamemodes\Selfmade.pwn(192) : error 001: expected token: ";", but found ")"
C:\Users\[GsA]Gamer\Desktop\Gsa Samp server\GsA\gamemodes\Selfmade.pwn(192) : fatal error 107: too many error messages on one line
5 Errors.
_____________________________________________________________________________________________________
WARNINGS 5
C:\Users\[GsA]Gamer\Desktop\Gsa Samp server\GsA\gamemodes\Selfmade.pwn(86) : warning 202: number of arguments does not match definition
C:\Users\[GsA]Gamer\Desktop\Gsa Samp server\GsA\gamemodes\Selfmade.pwn(162) : warning 219: local variable "playerid" shadows a variable at a
C:\Users\[GsA]Gamer\Desktop\Gsa Samp server\GsA\gamemodes\Selfmade.pwn(192) : warning 215: expression has no effect
C:\Users\[GsA]Gamer\Desktop\Gsa Samp server\GsA\gamemodes\Selfmade.pwn(192) : warning 215: expression has no effect
C:\Users\[GsA]Gamer\Desktop\Gsa Samp server\GsA\gamemodes\Selfmade.pwn(192) : warning 215: expression has no effect
____________________________________________________________________________________________________________________
Das hier habe ich heute geskriptet
ps Zu den Errors Zeile 192 und Inklusive Zeile 134.
__________________________________________________
So Zeile 187-202
if(strcmp(cmdtext, "/gotols", true) == 0)
{
new pName[MAX_PLAYER_NAME];
new string [128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string,sizeof(string), "** %s (%d) hat sich nach,"LS", teleportiert.", pName, playerid));
SendClientMessageToAll(BLAU, string);
if (IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),-1673.6295,13.3828,13.1968);
{
else
}
SetPlayerPos(playerid,-1673.6295,13.3828,13.1968);
{
return 1;
----------------------------------------------------------------------------------------------------------------------------------------------
So und nun Zeile 132-137
public OnPlayerDisconnect(playerid, reason)
{
SpielerSpeichern(playerid);
new pName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, pName, sizeof(pName));
____________________________________________________________________________________________________________________
Nun die Warnings
Von Zeile 86-192
UsePlayerPedAnims(false);
Create3DTextLabel("Willkommen am Spawnpunkt",0x0069FFFF,1344.3774,17.4442,275.1927,10,0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1689.4751,-1343.9482,17.4297);
SetPlayerFacingAngle(playerid,270.5723);
SetPlayerCameraPos(playerid,1691.2517,-1343.4365,17.4299);
SetPlayerCameraLookAt(playerid,1689.4751,-1343.9482,17.4297);
return 1;
}
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof(string),"[Join] %s hat den Server Betreten.",pName);
SendClientMessageToAll(0x33AAFFFF,string);
Anzeige[playerid] = TextDrawCreate(630.0,410.0," ");
TextDrawSetOutline(Anzeige[playerid], 1);
TextDrawAlignment(Anzeige[playerid], 3);
TextDrawSetShadow(Anzeige[playerid], 0);
TextDrawShowForPlayer(playerid,Anzeige[playerid]);
new Spielerdatei [64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
if(dini_Exists(Spielerdatei))
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"GsA Login","Dein Account wurde gefunden ,viel Spaß.Gib bitte das Passwort ein.","Login","Logout");
}
else
{
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Geben Sie bitte das gewünschte Passwort ein:","Register","Abbrechen");
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SpielerSpeichern(playerid);
new pName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s hat hat die Verbindung verloren. (Netzwerk Timeout)", pName);
case 1: format(string, sizeof(string), "%s hat den Server verlassen.", pName);
case 2: format(string, sizeof(string), "%s musste den Server verlassen. (Kick/ban)", pName);
}
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
public OnPlayerSpawn(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Motor[vehicleid] = false;
ShowPlayerDialog(playerid,DIALOG_TUTORIAL,DIALOG_STYLE_MSGBOX,"Achtung","Auf diesen Server ist kein DM erlaubt.Haltet euch an die Regeln.Viel Spaß beim Spielen wünscht euch euer Gamer","Akzeptiert","Abgelehnt");
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
for(new playerid = 0; playerid < GetMaxPlayers(); playerid++)
{
StopAudioStreamForPlayer(playerid);
}
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, "/gotols", true) == 0)
{
new pName[MAX_PLAYER_NAME];
new string [128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string,sizeof(string), "** %s (%d) hat sich nach,"LS", teleportiert.", pName, playerid));
Danke im Vorraus