Beiträge von IntelligenT

    Oder mach es so:


    public servern1()
    {
    SendClientMessageToAll(grün,"Du willst das script dann melde dich bei Admin K44n skype:kaan10002.\n Es sind jetzt 10 Minuten her dafür krigst du einen Bonus von 2500");
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    GivePlayerMoney(i,2500);
    }
    return 1;
    }


    MfG.
    Me

    ocmd:showlicenses(playerid,params[])
    {
    new pID;
    new fahrausweis[64];
    new flugausweis[64];
    new waffenausweis[64];
    new reisepass[64];
    new string[128];
    switch(GetPVarInt(playerid,"Fuehrerschein"))
    {
    case 0:{fahrausweis="Nein";}
    case 1:{fahrausweis="Ja";}
    }
    switch(GetPVarInt(playerid,"Flugschein"))
    {
    case 0:{flugausweis="Nein";}
    case 1:{flugausweis="Ja";}
    }
    switch(GetPVarInt(playerid,"Waffenschein"))
    {
    case 0:{waffenausweis="Nein";}
    case 1:{waffenausweis="Ja";}
    }
    switch(GetPVarInt(playerid,"Reisepass"))
    {
    case 0:{reisepass="Nein";}
    case 1:{reisepass="Ja";}
    }
    if(IsPlayerConnected(playerid))
    {
    if(sscanf(params,"i",pID))
    {
    SendClientMessage(playerid,ROT,"HILFE: /showlicenses [ID]");
    return 1;
    }
    if(IsPlayerConnected(pID))
    {
    format(string,sizeof(string),"|__Licensen von %s__|",SpielerName(playerid));
    SendClientMessage(pID,GELB,string);
    format(string,sizeof(string),"•Führerschein: %s",fahrausweis);
    SendClientMessage(pID,GELB,string);
    format(string,sizeof(string),"•Flugschein: %s",flugausweis);
    SendClientMessage(pID,GELB,string);
    format(string,sizeof(string),"•Waffenschein: %s",waffenausweis);
    SendClientMessage(pID,GELB,string);
    format(string,sizeof(string),"•Reisepass: %s",reisepass);
    SendClientMessage(pID,GELB,string);
    if(GetPVarInt(playerid,"WantedPunkte")>= 10)
    {
    format(string,sizeof(string),"Achtung: %s wird Gesucht!",SpielerName(playerid));
    SendClientMessage(pID,ROT,string);
    }
    }
    }
    return 1;
    }


    MfG.
    Me

    Hast du Augen ?


    Wenn er nur ne Klammer zu Wenig hätte wären es wahrscheinlich 26 Errors und die Erros wären nicht nur bei dcmd Befehlen...


    Jetzt send mir ma die TV Daten per PN ^^

    Weis nicht obs so Funkt:


    CMD:admins(playerid,params[])
    #pragma unused params
    {
    new Name[MAX_PLAYER_NAME],l1[1000], l2[1000], l3[1000], l4[1000], l5[1000],to[1000];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    new Content[500],Content1[500],Content2[500],Content3[500],Content4[500];
    if(Acc[i][Adminlevel] == 5)
    {
    GetPlayerName(i,Name,sizeof Name);
    format(l5, sizeof l5,"Serverleitung %s (ID: %d)",Name,i);
    strcat(Content,l5);
    }
    else if(Acc[i][Adminlevel] == 4)
    {
    GetPlayerName(i,Name,sizeof Name);
    format(l4, sizeof l4,"Superadmin %s (ID: %d)",Name,i);
    strcat(Content1,l4);
    }
    else if(Acc[i][Adminlevel] == 3)
    {
    GetPlayerName(i,Name,sizeof Name);
    format(l3, sizeof l3,"Admin %s (ID: %d)",Name,i);
    strcat(Content2,l3);
    }
    else if(Acc[i][Adminlevel] == 2)
    {
    GetPlayerName(i,Name,sizeof Name);
    format(l2, sizeof l2,"Super Moderator %s (ID: %d)",Name,i);
    strcat(Content3,l2);
    }
    else if(Acc[i][Adminlevel] == 1)
    {
    GetPlayerName(i,Name,sizeof Name);
    format(l1, sizeof l1,"Moderator %s (ID: %d)",Name,i);
    strcat(Content4,l1);
    }
    format(to,sizeof to,"Serverleitung\n\n%s\n\nSuper Administratoren\n\n%s\n\nAdministratoren\n\n%s\n\nSuper Moderatoren\n\n%s\n\nModeratoren\n\n%s\n\n",Content,Content1,Content2,Content3,Content4);
    ShowPlayerDialog(playerid,DIALOG_INFO,DIALOG_STYLE_MSGBOX,"Online Admins",to,"Schliessen","");
    }
    return 1;
    }


    Oder versuch das was ich als 1. Gepostet habe.


    MfG.
    Me

    Wenn du nachher stark editiertes SoL Skript schreibst, lach ich.


    Hör du mal auf zu Spammen.
    Lern Scripten statt hier rumzulabern.


    @B2T:


    Was geht denn bzw was geht nicht ?


    PS: Du hast beidesmal die selbe Z Position.


    Mach es so:
    if(strcmp(cmd,"/lcntor",true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0,665.00189208984, -1311.5399169922, 15.234329223633))
    {
    if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
    {
    if(lcntorvar == 0)
    {


    MoveDynamicObject(lcntor,665.00189208984, -1311.5399169922, 9.234329223633,3.0);
    PlaySoundForPlayer(playerid,1035);
    SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
    lcntorvar = 1;
    }
    else
    {
    MoveDynamicObject(lcntor,665.00189208984, -1311.5399169922, 15.234329223633 ,3.0);
    PlaySoundForPlayer(playerid,1035);
    SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
    lcntorvar = 0;
    }
    }
    else SendClientMessage(playerid,COLOR_RED," Du bist kein LCN Mitglied");
    return 1;
    }
    }


    MfG.
    Me

    So ?


    CMD:admins(playerid,params[])
    #pragma unused params
    {
    new Name[MAX_PLAYER_NAME],l1[1000], l2[1000], l3[1000], l4[1000], l5[1000], to[1000];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(Acc[i][Adminlevel] == 5)
    {
    GetPlayerName(i,Name,sizeof Name);
    format(l5, sizeof l5,"%s\n%s (ID: %d)",l5,Name,i);
    }
    else if(Acc[i][Adminlevel] == 4)
    {
    GetPlayerName(i,Name,sizeof Name);
    format(l4, sizeof l4,"%s\n%s (ID: %d)",l4,Name,i);
    }
    else if(Acc[i][Adminlevel] == 3)
    {
    GetPlayerName(i,Name,sizeof Name);
    format(l3, sizeof l3,"%s\n%s (ID: %d)",l3,Name,i);
    }
    else if(Acc[i][Adminlevel] == 2)
    {
    GetPlayerName(i,Name,sizeof Name);
    format(l2, sizeof l2,"%s\n%s (ID: %d)",l2,Name,i);
    }
    else if(Acc[i][Adminlevel] == 1)
    {
    GetPlayerName(i,Name,sizeof Name);
    format(l1, sizeof l1,"%s\n%s (ID: %d)",l1,Name,i);
    }
    format(to,sizeof to,""RED"Serverleitung\n\n"ORANGE"%s\n\n"RED"Super Administratoren\n\n"ORANGE"%s\n\n"RED"Administratoren\n\n"ORANGE"%s\n\n"RED"Super Moderatoren\n\n"ORANGE"%s\n\n"RED"Moderatoren\n\n"ORANGE"%s\n\n"RED"Supporter\n\n"ORANGE"%s\n\n",l5,l4,l3,l2,l1);
    ShowPlayerDialog(playerid,DIALOG_INFO,DIALOG_STYLE_MSGBOX,""RED"Online Admins",to,"Schliessen","");
    }
    return 1;
    }


    Denke das letzte return muss ein return 1 sein.

    Schonmal von der Funktion strcat gehört ?
    DIe Fügt 2 Strings zusammen:


    CMD:admins(playerid,params[])
    #pragma unused params
    {
    new Name[MAX_PLAYER_NAME],string[256],content[1000];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(Acc[i][Adminlevel] >= 1)
    {
    GetPlayerName(i,Name,sizeof Name);
    format(string, sizeof string,"%s (ID: %d)",Name,i);
    strcat(content,string);
    }
    ShowPlayerDialog(playerid,DIALOG_INFO,DIALOG_STYLE_MSGBOX,""RED"Online Admins",content,"Schliessen","");
    }
    return 1;
    }


    MfG.
    Me