Hai habe ein problem
undzwar wenn ich es compile komm undefined symvol komme nich weiter
Hier die errors
(21285) : error 047: array sizes do not match, or destination array is too small
(21355) : error 047: array sizes do not match, or destination array is too small
(21369) : error 047: array sizes do not match, or destination array is too small
Hier die zeilen
if (strcmp(cmd, "/adminduty", true) == 0 || strcmp(cmd, "/aduty", true) == 0)
{
if(AdminDuty[playerid] == 0)
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Probe Supporter im Dienst!");
SetPlayerColor(playerid,0xDC00FFFF);
AdminDuty[playerid] = 1;
ProbeSupporterLABEL = "*Probe Supporter on Duty*";
ProbeSupporter_3D[playerid] = Create3DTextLabel(ProbeSupporterLABEL,0xDC00FFFF,30.0,40.0,50.0,40.0,0,1); //Zeile 21027
Attach3DTextLabelToPlayer(ProbeSupporter_3D[playerid], playerid, 0.0, 0.0, 0.4); //Zeile 21028
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"* Probe Supporter %s[ID:%d] ist nun im Dienst [Er ist grün markiert]*",sendername,playerid);
SendClientMessageToAll(0xDC00FFFF, string);
SetPlayerArmour(playerid, 100);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 2)
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Supporter im Dienst!");
SetPlayerColor(playerid,0x05FF00FF);
AdminDuty[playerid] = 1;
SupporterLABEL = "*Supporter on Duty*";
Supporter_3D[playerid] = Create3DTextLabel(SupporterLABEL,0x05FF00FF,30.0,40.0,50.0,40.0,0,1); //Zeile 21040
Attach3DTextLabelToPlayer(Supporter_3D[playerid], playerid, 0.0, 0.0, 0.4); //Zeile 21041
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"* Supporter %s[ID:%d] ist nun im Dienst [Er ist grün markiert]*",sendername,playerid);
SendClientMessageToAll(0x05FF00FF, string);
SetPlayerArmour(playerid, 100);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 3)
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Moderator im Dienst!");
SetPlayerColor(playerid,0x05FF00FF);
AdminDuty[playerid] = 1;
ModLABEL = "*Moderator on Duty*";
Mod_3D[playerid] = Create3DTextLabel(ModLABEL,0x05FF00FF,30.0,40.0,50.0,40.0,0,1); //Zeile 21053
Attach3DTextLabelToPlayer(Mod_3D[playerid], playerid, 0.0, 0.0, 0.4); //Zeile 21054
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"* Moderator %s[ID:%d] ist nun im Dienst [Er ist grün markiert]*",sendername,playerid);
SendClientMessageToAll(0x05FF00FF, string);
SetPlayerArmour(playerid, 100);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 4)
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Administrator im Dienst!");
SetPlayerColor(playerid,0xFF8200FF);
AdminDuty[playerid] = 1;
AdministratorLABEL = "*Administrator on Duty*";
Administrator_3D[playerid] = Create3DTextLabel(AdministratorLABEL,0xFF8200FF,30.0,40.0,50.0,40.0,0,1); //Zeile 21066
Attach3DTextLabelToPlayer(Administrator_3D[playerid], playerid, 0.0, 0.0, 0.4); //Zeile 21067
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"*Super-Moderator %s[ID:%d] ist nun im Dienst [Er ist Orange markiert]*",sendername,playerid);
SendClientMessageToAll(0xFF8200FF, string);
SetPlayerArmour(playerid, 100);
return 1;
}
if(PlayerInfo[playerid][pAdmin] ==5)
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Scripter im Dienst!");
SetPlayerColor(playerid,RED);
AdminDuty[playerid] = 1;
ScripterLABEL = "*Scripter on Duty*";
Scripter_3D[playerid] = Create3DTextLabel(ScripterLABEL,RED,30.0,40.0,50.0,40.0,0,1); //Zeile 21079
Attach3DTextLabelToPlayer(Scripter_3D[playerid], playerid, 0.0, 0.0, 0.4); //Zeile 21080
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Scripter %s[ID:%d] ist nun im Dienst [Er ist Rot markiert]*",sendername,playerid);
SendClientMessageToAll(COLOR_RED, string);
SetPlayerArmour(playerid, 100);
return 1;
}
if(PlayerInfo[playerid][pAdmin] ==6)
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Community-Manager im Dienst!");
SetPlayerColor(playerid,RED);
AdminDuty[playerid] = 1;
CommunityLABEL = "*Community-Manager on Duty*";
Community_3D[playerid] = Create3DTextLabel(CommunityLABEL,RED,30.0,40.0,50.0,40.0,0,1); //Zeile 21092
Attach3DTextLabelToPlayer(Community_3D[playerid], playerid, 0.0, 0.0, 0.4); //Zeile 21093
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Server Manager %s[ID:%d] ist nun im Dienst [Er ist Rot markiert]*",sendername,playerid);
SendClientMessageToAll(COLOR_RED, string);
SetPlayerArmour(playerid, 100);
return 1;
}
if(PlayerInfo[playerid][pAdmin] ==7)
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Projekt-Leitung im Dienst!");
SetPlayerColor(playerid,RED);
AdminDuty[playerid] = 1;
ProjektLABEL = "*Projekt-Leitung on Duty*";
Projekt_3D[playerid] = Create3DTextLabel(ProjektLABEL,RED,30.0,40.0,50.0,40.0,0,1); //Zeile 21105
Attach3DTextLabelToPlayer(Projekt_3D[playerid], playerid, 0.0, 0.0, 0.4); //Zeile 21106
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Serverleitung %s[ID:%d] ist nun im Dienst [Er ist Rot markiert]*",sendername,playerid);
SendClientMessageToAll(COLOR_RED, string);
SetPlayerArmour(playerid, 100);
return 1;
}
}
if(AdminDuty[playerid] == 1)
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun nichtmehr On Duty!");
Delete3DTextLabel(Projekt_3D[playerid]); //21117
Delete3DTextLabel(Community_3D[playerid]); //21118
Delete3DTextLabel(Scripter_3D[playerid]); //21119
Delete3DTextLabel(Administrator_3D[playerid]); //21120
Delete3DTextLabel(Mod_3D[playerid]); //21121
Delete3DTextLabel(Supporter_3D[playerid]); //21122
Delete3DTextLabel(ProbeSupporter_3D[playerid]); //21123
SetPlayerArmour(playerid, 0);
AdminDuty[playerid] = 0;
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
}
else
{
SetPlayerColor(playerid,TEAM_HIT_COLOR);
}
}
return 1;
}
return 1;
}
//Edits
//Edit1: ProbeSupporter in Supporter geändert + 1Error ist weg
//Edit:2 nur noch 3 Errors
//Edit:2 nur noch 3 Errors
Mfg