Beiträge von Acrio

    Ich habe mir mal einen /ahelp befehl erstellt


    ocmd:ahelp(playerid,params[])
    {
    if(isPlayerAnAdmin(playerid, >=1) <---------- ZEILE 802 !!!
    {
    SendClientMessage(playerid,Orange,"***__________Admin Help__________***");
    SendClientMessage(playerid,Orange,"/aduty || /wetter || /newcar || /setskin");
    SendClientMessage(playerid,Orange,"/goto || /gethere || /kick");
    }
    if(isPlayerAnAdmin(playerid, >=2)
    {
    SendClientMessage(playerid,Orange,"***__________Admin Help__________***");
    SendClientMessage(playerid,Orange,"/aduty || /wetter || /newcar || /setskin");
    SendClientMessage(playerid,Orange,"/goto || /gethere || /kick || /arep");
    }
    if(isPlayerAnAdmin(playerid, >=3)
    {
    SendClientMessage(playerid,Orange,"***__________Admin Help__________***");
    SendClientMessage(playerid,Orange,"/aduty || /wetter || /newcar || /setskin");
    SendClientMessage(playerid,Orange,"/goto || /gethere || /kick || /arep || /slap");
    SendClientMessage(playerid,Orange,"/givegun");
    }
    if(isPlayerAnAdmin(playerid, >=4)
    {
    SendClientMessage(playerid,Orange,"***__________Admin Help__________***");
    SendClientMessage(playerid,Orange,"/aduty || /wetter || /newcar || /setskin");
    SendClientMessage(playerid,Orange,"/goto || /gethere || /kick || /arep || /slap");
    SendClientMessage(playerid,Orange,"/givegun || /ban");
    }
    if(isPlayerAnAdmin(playerid, >=5)
    {
    SendClientMessage(playerid,Orange,"***__________Admin Help__________***");
    SendClientMessage(playerid,Orange,"/aduty || /wetter || /newcar || /setskin");
    SendClientMessage(playerid,Orange,"/goto || /gethere || /kick || /arep || /slap");
    SendClientMessage(playerid,Orange,"/givegun || /ban || /givemoney || /setadmin");
    }
    }


    und bekomme diese fehler


    C:\Users\Niklas\Desktop\GTA SERVER\gamemodes\rl.pwn(802) : error 029: invalid expression, assumed zero
    C:\Users\Niklas\Desktop\GTA SERVER\gamemodes\rl.pwn(802) : warning 215: expression has no effect
    C:\Users\Niklas\Desktop\GTA SERVER\gamemodes\rl.pwn(802) : error 001: expected token: ";", but found ")"
    C:\Users\Niklas\Desktop\GTA SERVER\gamemodes\rl.pwn(802) : error 029: invalid expression, assumed zero
    C:\Users\Niklas\Desktop\GTA SERVER\gamemodes\rl.pwn(802) : fatal error 107: too many error messages on one line


    Bitte helft mir


    MFG Acrio

    Ich glaube das muss eher so


    ocmd:kick(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,ROT,"Du bist kein Admin.");
    new pID, reason[128],string[128];
    if(sscanf(params,"us",pID,reason))return SendClientMessage(playerid,BLAU,"/kick [id] [grund]");
    format(string,sizeof(string),"AdmCmd: %s wurde von %s gekickt. Grund: %s",SpielerName(pID),SpielerName(playerid),reason);
    SendClientMessageToAll(ROT,string);
    Kick(pID);
    return 1;
    }


    edit: ein ! vor dem ersten isPlayerAnAdmin, da sonst wenn er ein admin ist die meldung "Du bist kein Admin sieht

    Hi kann mir einer sagen ob mnan machen kann das nur Neulinge das Tutorial sehen können ? Also nur beim ersten login. Wenn ja könnt ihr mir dan buitte erklären wie?


    MFG Acrio

    ich habe das von udo_schnarre


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/admins", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid,Türkies,"------------------------Administratoren------------------------");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(isPlayerAnAdmin(i,1))
    {
    new string[128],adminduty[10],adminlevel[64];
    switch(GetPVarInt(i,"Adminlevel"))
    {
    case 1:{adminlevel="{00FF5A}Supporter";}
    case 2:{adminlevel="{572B54}Moderator";}
    case 3:{adminlevel="{858BBB}Super Moderator";}
    case 4:{adminlevel="{0000FF}Admin";}
    case 5:{adminlevel="{FF0000}Fulladmin";}
    }
    format(string, 256, "{FF6E00}%s {FFFFFF}%s",adminlevel,SpielerName(i));
    SendClientMessage(playerid,0x00FF00FF,string);
    }
    }
    }
    }
    return 1;
    }
    return 0;
    }

    Ích habe mal ne frage if(strcmp(Spielername(i),"Meisternuke", true) == 0)
    {
    SendClientMessage(playerid,BLAU,"Projektleiter und Vorstand:{00FF00}Meisternuke")
    }
    else
    {
    SendClientMessage(playerid,BLAU,"Projektleiter und Vorstand: {FF0000}Meisternuke");
    }


    warum hast du hier erst


    {00FF00}Meisternuke");


    und dann


    {FF0000}Meisternuke");


    ?