Hallo Community irgendwie bekomme ich jedes mal Fehler bei den Ld Chat ich hoffe ihr könnt mir helfen
if(strcmp(cmd, "/ld", true) == 0 || strcmp(cmd, "/leaderchat", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Verwendung: (/ld)(Leader-Chat) [TEXT]");
return 1;
}
if(PlayerInfo[playerid][pLeader] >=1)
{
if(PlayerInfo[playerid][pLeader] == 1) { format(string, sizeof(string), "** LSPD-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 2) { format(string, sizeof(string), "** FBI-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 3) { format(string, sizeof(string), "** Bundeswehr-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 4) { format(string, sizeof(string), "** Medic-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 5) { format(string, sizeof(string), "** LCN-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 6) { format(string, sizeof(string), "** Yakuza-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 7) { format(string, sizeof(string), "** San Andreas Präsident %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 8) { format(string, sizeof(string), "** Unknown %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 9) { format(string, sizeof(string), "** NR-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 10) { format(string, sizeof(string), "** Taxi Company-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 11) { format(string, sizeof(string), "** Fahrschul-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 12) { format(string, sizeof(string), "** Triaden-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 13) { format(string, sizeof(string), "** Grove-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 14) { format(string, sizeof(string), "** Ballas-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 15) { format(string, sizeof(string), "** Ls Biker Club-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 16) { format(string, sizeof(string), "** Vagos-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 17) { format(string, sizeof(string), "** Aztecas-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 18) { format(string, sizeof(string), "** LSRifa-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 19) { format(string, sizeof(string), "** RS-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 20) { format(string, sizeof(string), "** Terror-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 21) { format(string, sizeof(string), "** Wheelmen Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 22) { format(string, sizeof(string), "** SFPD Elite Troop Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 23) { format(string, sizeof(string), "** Russkaja Bratwa %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 24) { format(string, sizeof(string), "** OAmt-Leader %s: %s **", sendername, result); }
else
{
format(string, sizeof(string), "** Noob %s: %s, Ende. **", sendername, result);
}
SendLeaderMessage(1, 0xD7AD62FF, string);
SendLeaderMessage(2, 0xD7AD62FF, string);
SendLeaderMessage(3, 0xD7AD62FF, string);
SendLeaderMessage(4, 0xD7AD62FF, string);
SendLeaderMessage(5, 0xD7AD62FF, string);
SendLeaderMessage(6, 0xD7AD62FF, string);
SendLeaderMessage(7, 0xD7AD62FF, string);
SendLeaderMessage(8, 0xD7AD62FF, string);
SendLeaderMessage(9, 0xD7AD62FF, string);
SendLeaderMessage(10, 0xD7AD62FF, string);
SendLeaderMessage(11, 0xD7AD62FF, string);
SendLeaderMessage(12, 0xD7AD62FF, string);
SendLeaderMessage(13, 0xD7AD62FF, string);
SendLeaderMessage(14, 0xD7AD62FF, string);
SendLeaderMessage(15, 0xD7AD62FF, string);
SendLeaderMessage(16, 0xD7AD62FF, string);
SendLeaderMessage(17, 0xD7AD62FF, string);
SendLeaderMessage(18, 0xD7AD62FF, string);
SendLeaderMessage(19, 0xD7AD62FF, string);
SendLeaderMessage(20, 0xD7AD62FF, string);
SendLeaderMessage(21, 0xD7AD62FF, string);
SendLeaderMessage(22, 0xD7AD62FF, string);
SendLeaderMessage(23, 0xD7AD62FF, string);
SendLeaderMessage(24, 0xD7AD62FF, string);
printf("%s", string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, " Du bist kein Leader!.");
return 1;
}
}
return 1;
}
Fehler:
Zeile (24767) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24768) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24769) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24770) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24771) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24772) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24773) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24774) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24775) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24776) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24777) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24778) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24779) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24780) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24781) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24782) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24783) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24784) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24785) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24786) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24787) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24788) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24789) : Unbekannte Variable : "SendLeaderMessage"
Zeile (24790) : Unbekannte Variable : "SendLeaderMessage"
24 Errors, 0 Warnungen
Du hast Errors im Skript. Kompilierung abgebrochen