Kann mit bitte jemand sagen wo dort der fehler ist?
Mein Pawno stürtzt bei diesem Befehl immer ab
if(strcmp(cmd, "/horten", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Benutze: /horten [SpielerID]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(giveplayerid, X,Y,Z);
SetPlayerCheckpoint(playerid, X,Y,Z, 6);
SetTimerEx("OrtenTimer",5000,1,"ii",playerid,giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Benutze: /dc um den Marker zu entfernen.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Falsche ID");
}
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Du bist kein Hitman.");
}
}
}