HIER DIE ERROR ANZEIGE C:\Users\ekrem\Desktop\Gamemode_02a.pwn(53915) : error 017: undefined symbol "giver"
else if ((strcmp("Auftraggeben", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Auftraggeben")))
{
if(PlayerInfo[playerid][pRank] < 2)
{
SendClientMessage(playerid, COLOR_GREY, " Du brauchst Rank 2 um Verträge mit Hitmans zu schließen!");
return 0;
}
if(hitfound == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Es wurde nichts gefunden!");
return 0;
}
tmp = strtok(text, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Verwendung: Givehit [spielerid/teildesnamens]");
return 0;
}
//giveplayerid = strval(tmp);
playerid = ReturnUser(tmp);
if(IsPlayerConnected(playerid))
{
if(playerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[playerid][pLeader] != 8 && PlayerInfo[playerid][pMember] != 8)
{
SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist kein Hitman!");
return 0;
}
if(GoChase[playerid] < 999)
{
SendClientMessage(playerid, COLOR_GREY, " Dieser Hitman ist bereits beschäftigt!");
return 0;
}
if(IsPlayerConnected(hitid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
// GetPlayerName(playerid, playerid,sizeof(give));
GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
//format(string, sizeof(string), "* You assigned%s to kill: %s(ID:%d), for $%d.", giver, giveplayer, hitid, PlayerInfo[hitid][pValue]);
//SendClientMessage(playerid, COLOR_YELLOW, string);
//format(string, sizeof(string), "* Hitman %s has assigned you to kill: %s(ID:%d), for $%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pValue]);
//SendClientMessage(giveplayerid, COLOR_YELLOW, string);
[color=#ff0000]format(string, sizeof(string), "* Hitman %s, stimme Hitman %s zu, %s(ID:%d) für %d$ zu killen.", sendername, giver, giveplayer, hitid, PlayerInfo[hitid][/color][pHeadValue]);
SendFamilyMessage(8, COLOR_YELLOW, string);
GoChase[playerid] = hitid;
GetChased[hitid] = playerid;
GotHit[hitid] = 1;
hitid = 0;
hitfound = 0;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist offline!");
return 0;
}
}
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Dieser Hitman ist nicht online!");
return 0;
}
}