Guten Tag,
Ich habe das Problem das ich bei dem Befehl /wiederbeleben Errors leider bekommen.
Die Errors:
C:\{- SA-MP Server -}\gamemodes\---(22938) : error 001: expected token: ",", but found "["
C:\{- SA-MP Server -}\gamemodes\---(22938) : error 029: invalid expression, assumed zero
C:\{- SA-MP Server -}\gamemodes\---(22938) : warning 215: expression has no effect
C:\{- SA-MP Server -}\gamemodes\---(22938) : error 001: expected token: ";", but found "]"
C:\{- SA-MP Server -}\gamemodes\---(22938) : fatal error 107: too many error messages on one line
Der Code:
[pwn=22917]
if (strcmp(cmd, "/wiederbeleben", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pMember] == 4 PlayerInfo[playerid][pLeader] == 4)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][pTod] == 1 && PlayerToPoint(5.0,playerid,PlayerInfo[i][pTx],PlayerInfo[i][pTy],PlayerInfo[i][pTz]))
{
new pname[256];
GetPlayerName(i, pname, 256);
format(string, 256, "Du hast %s, wiederbelebt!",pname);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
GetPlayerName(playerid, pname, 256);
format(string, 256, "Arzt %s hat dich wiederbelebt!",pname);
SendClientMessage(i, COLOR_LIGHTGREEN, string);
PlayerInfo[i][pTod] = 0;
pIstTot[i] = 0;
SetPlayerPos(i,PlayerInfo[i][pTx],PlayerInfo[i][pTy],PlayerInfo[i][pTz]);
SetCameraBehindPlayer(i);
DestroyPickup(TotenKopf[i][0]); // ERROR
TogglePlayerControllable(i,1);
PlayerInfo[i][pTx] = 0.0;
PlayerInfo[i][pTy] = 0.0;
PlayerInfo[i][pTz] = 0.0;
new Float:tempheal;
GetPlayerHealth(i,tempheal);
SetPlayerHealth(i,15.0);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du bist kein Arzt!");
}
}
return 1;
}
[/pwn]
Ich hoffe ihr könnt helfen.
MfG
James.