ich will das ja haben
aber warum gibts warnings
kann mann die irgentwie weg machen habe ich vll was nicht definiert oder new ??
Mfg
ich will das ja haben
aber warum gibts warnings
kann mann die irgentwie weg machen habe ich vll was nicht definiert oder new ??
Mfg
ich bearbeite dir das gerade und schicke es dir gleich, okay?
//edit
so versuch das mal bitte. ich hab es jetzt nicht getestet, da mir ja einige angaben fehlen.
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;
Supporter = Create3DTextLabel("*Probe Supporter on Duty*",0xDC00FFFF,30.0,40.0,50.0,40.0,0,1); //Zeile 21027
Attach3DTextLabelToPlayer(Mod, 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;
Supporter = Create3DTextLabel("*Supporter on Duty*",0x05FF00FF,30.0,40.0,50.0,40.0,0,1); //Zeile 21040
Attach3DTextLabelToPlayer(Mod, 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;
Mod = Create3DTextLabel("*Moderator on Duty*",0x05FF00FF,30.0,40.0,50.0,40.0,0,1); //Zeile 21053
Attach3DTextLabelToPlayer(Mod, 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;
Administrator = Create3DTextLabel("*Super-Moderator on Duty*",0xFF8200FF,30.0,40.0,50.0,40.0,0,1); //Zeile 21066
Attach3DTextLabelToPlayer(Mod, 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;
Scripter = Create3DTextLabel("*Administrator on Duty*",RED,30.0,40.0,50.0,40.0,0,1); //Zeile 21079
Attach3DTextLabelToPlayer(Mod, 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;
Community = Create3DTextLabel("*Community-Manager on Duty*",RED,30.0,40.0,50.0,40.0,0,1); //Zeile 21092
Attach3DTextLabelToPlayer(Mod, 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 Serverleitung im Dienst!");
SetPlayerColor(playerid,RED);
AdminDuty[playerid] = 1;
Projekt = Create3DTextLabel("*Projekt-Leitung on Duty*",RED,30.0,40.0,50.0,40.0,0,1); //Zeile 21105
Attach3DTextLabelToPlayer(Mod, 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); //21117
Delete3DTextLabel(Community); //21118
Delete3DTextLabel(Scripter); //21119
Delete3DTextLabel(Administrator); //21120
Delete3DTextLabel(Mod); //21121
Delete3DTextLabel(Supporter); //21122
Delete3DTextLabel(ProbeSupporter); //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;
}
jetzzt das gleiche
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21033) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21034) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21046) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21047) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21059) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21060) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21072) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21073) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21085) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21086) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21098) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21099) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21111) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21112) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21123) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21124) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21125) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21126) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21127) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21128) : warning 213: tag mismatch
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21129) : warning 213: tag mismatch
die anderen angaben
mit new gemacht
so
//Admin Duty
new AdminDuty[MAX_PLAYERS];
new PlayerText3D:Supporter;
new PlayerText3D:Mod;
new PlayerText3D:Scripter;
new PlayerText3D:Projekt;
new PlayerText3D:Community;
new PlayerText3D:Administrator;
so eingefügt und immer noch
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;
Supporter = Create3DTextLabel("*Probe Supporter on Duty*",0xDC00FFFF,30.0,40.0,50.0,40.0,0,1); //Zeile 21027
Attach3DTextLabelToPlayer(Mod, 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;
Supporter = Create3DTextLabel("*Supporter on Duty*",0x05FF00FF,30.0,40.0,50.0,40.0,0,1); //Zeile 21040
Attach3DTextLabelToPlayer(Mod, 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;
Mod = Create3DTextLabel("*Moderator on Duty*",0x05FF00FF,30.0,40.0,50.0,40.0,0,1); //Zeile 21053
Attach3DTextLabelToPlayer(Mod, 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;
Administrator = Create3DTextLabel("*Super-Moderator on Duty*",0xFF8200FF,30.0,40.0,50.0,40.0,0,1); //Zeile 21066
Attach3DTextLabelToPlayer(Mod, 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;
Scripter = Create3DTextLabel("*Administrator on Duty*",RED,30.0,40.0,50.0,40.0,0,1); //Zeile 21079
Attach3DTextLabelToPlayer(Mod, 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;
Community = Create3DTextLabel("*Community-Manager on Duty*",RED,30.0,40.0,50.0,40.0,0,1); //Zeile 21092
Attach3DTextLabelToPlayer(Mod, 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 Serverleitung im Dienst!");
SetPlayerColor(playerid,RED);
AdminDuty[playerid] = 1;
Projekt = Create3DTextLabel("*Projekt-Leitung on Duty*",RED,30.0,40.0,50.0,40.0,0,1); //Zeile 21105
Attach3DTextLabelToPlayer(Mod, 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); //21117
Delete3DTextLabel(Community); //21118
Delete3DTextLabel(Scripter); //21119
Delete3DTextLabel(Administrator); //21120
Delete3DTextLabel(Mod); //21121
Delete3DTextLabel(Supporter); //21122
Delete3DTextLabel(ProbeSupporter); //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;
}
versuch das mal so und nehm mal die new dinger oben raus, bzw klammer sie mal aus.
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;
new Text3D:Supporter = Create3DTextLabel("*Probe Supporter on Duty*",0xDC00FFFF,30.0,40.0,50.0,40.0,0,1); //Zeile 21027
Attach3DTextLabelToPlayer(Supporter, 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;
new Text3D:Supporter = Create3DTextLabel("*Supporter on Duty*",0x05FF00FF,30.0,40.0,50.0,40.0,0,1); //Zeile 21040
Attach3DTextLabelToPlayer(Supporter, 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;
new Text3D:Mod = Create3DTextLabel("*Moderator on Duty*",0x05FF00FF,30.0,40.0,50.0,40.0,0,1); //Zeile 21053
Attach3DTextLabelToPlayer(Mod, 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;
new Text3D:Administrator = Create3DTextLabel("*Super-Moderator on Duty*",0xFF8200FF,30.0,40.0,50.0,40.0,0,1); //Zeile 21066
Attach3DTextLabelToPlayer(Administrator, 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;
new Text3D:Scripter = Create3DTextLabel("*Administrator on Duty*",RED,30.0,40.0,50.0,40.0,0,1); //Zeile 21079
Attach3DTextLabelToPlayer(Scripter, 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;
new Text3D:Community = Create3DTextLabel("*Community-Manager on Duty*",RED,30.0,40.0,50.0,40.0,0,1); //Zeile 21092
Attach3DTextLabelToPlayer(Community, 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 Serverleitung im Dienst!");
SetPlayerColor(playerid,RED);
AdminDuty[playerid] = 1;
new Text3D:Projekt = Create3DTextLabel("*Projekt-Leitung on Duty*",RED,30.0,40.0,50.0,40.0,0,1); //Zeile 21105
Attach3DTextLabelToPlayer(Projekt, 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[playerid]); //21117
Delete3DTextLabel(Community[playerid]); //21118
Delete3DTextLabel(Scripter[playerid]); //21119
Delete3DTextLabel(Administrator[playerid]); //21120
Delete3DTextLabel(Mod[playerid]); //21121
Delete3DTextLabel(Supporter[playerid]); //21122
Delete3DTextLabel(ProbeSupporter[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;
}
dannn klommt das
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(3298) : error 017: undefined symbol "AdminDuty"
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(3298) : warning 215: expression has no effect
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(3298) : error 001: expected token: ";", but found "]"
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(3298) : error 029: invalid expression, assumed zero
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(3298) : fatal error 107: too many error messages on one line
dann musst du das new AdminDuty[MAX_PLAYERS];
wieder reinmachen.
hab ich eben übersehen sorry.
dann kommt
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21123) : error 017: undefined symbol "Projekt"
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21123) : warning 215: expression has no effect
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21123) : error 001: expected token: ";", but found "]"
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21123) : error 029: invalid expression, assumed zero
C:\Users\Davidx3\Desktop\DRP v.1.2\gamemodes\DRP.pwn(21123) : fatal error 107: too many error messages on one line
welche zeile ist das? ich hab gerade den überblick verloren.
Delete3DTextLabel(Projekt[playerid]); //21123
das sind die anderen zeilen dazu
if(AdminDuty[playerid] == 1)
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun nichtmehr On Duty!");
Delete3DTextLabel(Projekt[playerid]); //21117
Delete3DTextLabel(Community[playerid]); //21118
Delete3DTextLabel(Scripter[playerid]); //21119
Delete3DTextLabel(Administrator[playerid]); //21120
Delete3DTextLabel(Mod[playerid]); //21121
Delete3DTextLabel(Supporter[playerid]); //21122
Delete3DTextLabel(ProbeSupporter[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;
}
Mfg
ich hab gerade gesehen, dass ich einen mega fail gemacht habe. ich mach das eben neu. sorry dafür. bin noch nicht ganz fit.
//edit
so ich hoffeich hab jetzt nix vergessen.
ganz oben
new Text3D:Projekt_3D[MAX_PLAYERS];
new Text3D:ProbeSupporter_3D[MAX_PLAYERS];
new Text3D:Community_3D[MAX_PLAYERS];
new Text3D:Scripter_3D[MAX_PLAYERS];
new Text3D:Administrator_3D[MAX_PLAYERS];
new Text3D:Mod_3D[MAX_PLAYERS];
new Text3D:Supporter_3D[MAX_PLAYERS];
new ProjektLABEL[MAX_PLAYER_NAME];
new ProbeSupporterLABEL[MAX_PLAYER_NAME];
new CommunityLABEL[MAX_PLAYER_NAME];
new ScripterLABEL[MAX_PLAYER_NAME];
new AdministratorLABEL[MAX_PLAYER_NAME];
new ModLABEL[MAX_PLAYER_NAME];
new SupporterLABEL[MAX_PLAYER_NAME];
und dann
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 = "*Super-Moderator 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 = "*Administrator 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 Serverleitung 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;
}
so jetzt kommt
(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
zeilen:
ProbeSupporterLABEL = "*Probe Supporter on Duty*";//Zeile 21285
CommunityLABEL = "*Community-Manager on Duty*";//Zeile 21355
ProjektLABEL = "*Projekt-Leitung on Duty*";//Zeile 21369
aber warum dann bei den anderen dann nich
Mfg