Hey,
Kann mir einer einen /duty Point machen für das LSPD?
wäre super.
Am besten unter dieser Koordinate:
AddPlayerClass(0,198.1107,168.8240,1003.0234,266.3083,0,0,0,0,0,0); // DutyPoint
Mfg
Hey,
Kann mir einer einen /duty Point machen für das LSPD?
wäre super.
Am besten unter dieser Koordinate:
AddPlayerClass(0,198.1107,168.8240,1003.0234,266.3083,0,0,0,0,0,0); // DutyPoint
Mfg
new bool:duty[MAX_PLAYERS];
public OnGameModeInit()
{
CreatePickup(1247,1,198.1107,168.8240,1003.0234,0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/duty", cmdtext, true, 10) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid,7.0,198.1107,168.8240,1003.0234)) return SendClientMessage(playerid,DEINE_FARBE,"Du bist nicht am Duty-Punkt.");
if(duty[playerid]==true)
{
duty[playerid]=false;
}
else
{
duty[playerid]=true;
}
return 1;
}
return 0;
}
so gehts , denk ich!
LG
danke.
der Punkt ist da.
nur Kommt nicht Officer Freshmatic nimmt seine Marke aus dem schrank und meldet sich zum dienst.
new bool:duty[MAX_PLAYERS];
public OnGameModeInit()
{
CreatePickup(1247,1,198.1107,168.8240,1003.0234,0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/duty", cmdtext, true, 10) == 0)
{
new string1[256], string2[256] ,name[MAX_PLAYER_NAME];
if(!IsPlayerInRangeOfPoint(playerid,7.0,198.1107,168.8240,1003.0234)) return SendClientMessage(playerid,DEINE_FARBE,"Du bist nicht am Duty-Punkt.");
if(duty[playerid]==true)
{
format(string1,sizeof(string1),"Officer %s legt seine Marke in den Schrank und macht Feierabend.",GetPlayerName(playerid,name,sizeof(name)));
SendClientMessageToAll(DEINE_FARBE,string1);
duty[playerid]=false;
}
else
{
format(string2,sizeof(string2),"Officer %s nimmt seine Marke aus dem Schrank und meldet sich zum Dienst.",GetPlayerName(playerid,name,sizeof(name)));
SendClientMessageToAll(DEINE_FARBE,string2);
duty[playerid]=true;
}
return 1;
}
return 0;
}
jz kommt die Nachricht auch!
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(137) : error 017: undefined symbol "SpielerSpeichern"
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(172) : error 079: inconsistent return types (array & non-array)
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(179) : error 079: inconsistent return types (array & non-array)
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(184) : error 079: inconsistent return types (array & non-array)
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(196) : error 079: inconsistent return types (array & non-array)
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(198) : warning 217: loose indentation
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(198) : error 079: inconsistent return types (array & non-array)
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(200) : warning 217: loose indentation
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(200) : error 029: invalid expression, assumed zero
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(200) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(202) : error 079: inconsistent return types (array & non-array)
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(205) : warning 225: unreachable code
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(205) : error 029: invalid expression, assumed zero
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(205) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(207) : error 079: inconsistent return types (array & non-array)
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(210) : warning 225: unreachable code
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(210) : error 029: invalid expression, assumed zero
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(210) : error 004: function "OnPlayerStateChange" is not implemented
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(212) : error 079: inconsistent return types (array & non-array)
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(215) : warning 225: unreachable code
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(215) : error 029: invalid expression, assumed zero
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(215) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(217) : error 079: inconsistent return types (array & non-array)
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(220) : warning 225: unreachable code
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(220) : error 029: invalid expression, assumed zero
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(220) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(222) : error 079: inconsistent return types (array & non-array)
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(225) : warning 225: unreachable code
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(225) : error 029: invalid expression, assumed zero
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(225) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(227) : error 079: inconsistent return types (array & non-array)
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(230) : warning 225: unreachable code
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(230) : error 029: invalid expression, assumed zero
C:\Users\Mark\Desktop\Eigen Script\gamemodes\eigen.pwn(230) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
hier die Zeilen..
if (strcmp("/duty", cmdtext, true, 10) == 0)
{
new string1[256], string2[256] ,name[MAX_PLAYER_NAME];
if(!IsPlayerInRangeOfPoint(playerid,7.0,198.1107,168.8240,1003.0234)) return SendClientMessage(playerid,BLAU,"Du bist nicht am Duty-Punkt.");
if(duty[playerid]==true)
{
format(string1,sizeof(string1),"Officer %s legt seine Marke in den Schrank und macht Feierabend.",GetPlayerName(playerid,name,sizeof(name)));
SendClientMessageToAll(BLAU,string1);
duty[playerid]=false;
}
else
{
format(string2,sizeof(string2),"Officer %s nimmt seine Marke aus dem Schrank und meldet sich zum Dienst.",GetPlayerName(playerid,name,sizeof(name)));
SendClientMessageToAll(BLAU,string2);
duty[playerid]=true;
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
Irgendwo nen Klammer fehler
und wo?
dort unten haste das vergessen ;
duty[playerid]=true)
ach sry so rum D:
Habe es oben am Anfang eingebaut.
leider nix gebracht
so ?
new bool:duty[MAX_PLAYERS];
public OnGameModeInit()
{
CreatePickup(1247,1,198.1107,168.8240,1003.0234,0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/duty", cmdtext, true, 10) == 0)
{
new string1[256], string2[256] ,name[MAX_PLAYER_NAME];
if(!IsPlayerInRangeOfPoint(playerid,7.0,198.1107,168.8240,1003.0234)) return SendClientMessage(playerid,DEINE_FARBE,"Du bist nicht am Duty-Punkt.");
if(duty[playerid]==true);
{
format(string1,sizeof(string1),"Officer %s legt seine Marke in den Schrank und macht Feierabend.",GetPlayerName(playerid,name,sizeof(name)));
SendClientMessageToAll(DEINE_FARBE,string1);
duty[playerid]=false);
}
else
{
format(string2,sizeof(string2),"Officer %s nimmt seine Marke aus dem Schrank und meldet sich zum Dienst.",GetPlayerName(playerid,name,sizeof(name)));
SendClientMessageToAll(DEINE_FARBE,string2);
duty[playerid]=true);
}
return 1;
}
return 0;
}