Hallo liebe Scripter,
ich habe mal ws versucht und es klappt nicht bzw. bekomme Errors
Könnte mir jemand Helfen?
Undzwar wollte ich bei Aduty machen das da steht welche Farbe man hat und das er so angezeigt wird.
Errors:
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GNR.pwn(3518) : warning 215: expression has no effect
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GNR.pwn(3518 -- 3519) : error 029: invalid expression, assumed zero
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GNR.pwn(3519) : error 029: invalid expression, assumed zero
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GNR.pwn(3519) : warning 215: expression has no effect
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GNR.pwn(3519 -- 3520) : error 029: invalid expression, assumed zero
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GNR.pwn(3519 -- 3520) : fatal error 107: too many error messages on one line
Die Farben wie ich die gemacht habe:
[pwn='3516']stock AdminFarbe(playerid){
switch(PlayerInfo[playerid][pAdmin]){
case 0: "{000000}",
case 1: "{5A00FF}",
case 2: "{2800FF}",
case 3: "{2800FF}",
case 1337: "{009BFF}",
case 1338: "{505050}",
case 2000: "{088A8E}",
case 2001: "{FF7800}",
case 2002: "{FF0000}"
}
return 1;
}
stock AdminFarbeS(playerid){
switch(PlayerInfo[playerid][pAdmin]){
case 0: "Schwarz",
case 1: "Dunkel-Lila",
case 2: "Lila",
case 3: "Dunkel-Blau",
case 1337: "Hell-Blau",
case 1338: "Grau",
case 2000: "Türkis",
case 2001: "Orange",
case 2002: "Rot"
}
return 1;
}[/pwn]
Und der Befehl /aduty:
if (strcmp(cmd, "/adminduty", true) == 0 || strcmp(cmd, "/aduty", true) == 0)
{
if(AdminDuty[playerid] == 0)
{
if(PlayerInfo[playerid][pAdmin] != 0)
{
format(string,sizeof(string), "Du bist nun als %s im Dienst!",AdminRang(playerid));
SendClientMessage(playerid,COLOR_WHITE,string);
SetPlayerColor(playerid,AdminFarbe(playerid));
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("*Admin im Dienst*",AdminFarbe(playerid),30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"* %s %s[ID:%d] ist nun im Dienst [Er ist %s markiert]*",AdminRang(playerid),sendername,playerid,AdminFarbeS(playerid));
SendClientMessageToAll(COLOR_WHITE, string);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
RemovePlayerAttachedObject(playerid,5);
RemovePlayerAttachedObject(playerid,6);
SetPlayerAttachedObject(playerid, 5, 19079, 17, 0.054798, -0.068864, 0.143832, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 6, 1276, 1, 0.026707, 0.049716, 0.044027, 0.000000, 166.186828, 295.838226, -0.335559, 1.000000, 0.018289);
return 1;
}
//edit Die Farben richtig gemacht beei AdminFarbeS