Beiträge von ExoTecH

    wie geht das mit den textdraw das ic da die zahlen rauuskriege??
    bzw welche string größe brauche ich ?


    meine textdraws:

    Textdraw0 = TextDrawCreate(473.000000, 112.000000, "~p~Premium Rang: ~b~12");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
    TextDrawColor(Textdraw0, 16777215);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);


    Textdraw1 = TextDrawCreate(473.000000, 126.000000, "~y~Wanteds: ~b~ 10");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 1);
    TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
    TextDrawColor(Textdraw1, -1);
    TextDrawSetOutline(Textdraw1, 0);
    TextDrawSetProportional(Textdraw1, 1);
    TextDrawSetShadow(Textdraw1, 1);


    Textdraw2 = TextDrawCreate(473.000000, 139.000000, "~g~Kills: ~b~ 100");
    TextDrawBackgroundColor(Textdraw2, 255);
    TextDrawFont(Textdraw2, 1);
    TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
    TextDrawColor(Textdraw2, -1);
    TextDrawSetOutline(Textdraw2, 0);
    TextDrawSetProportional(Textdraw2, 1);
    TextDrawSetShadow(Textdraw2, 1);


    Textdraw3 = TextDrawCreate(473.000000, 153.000000, "~r~Deaths: ~b~ 100");
    TextDrawBackgroundColor(Textdraw3, 255);
    TextDrawFont(Textdraw3, 1);
    TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
    TextDrawColor(Textdraw3, -1);
    TextDrawSetOutline(Textdraw3, 0);
    TextDrawSetProportional(Textdraw3, 1);
    TextDrawSetShadow(Textdraw3, 1);


    so die zahlen waren nur beispiele für die platzierung
    danke im vorraus


    mfg

    wie mache ich dass man zb Projektleitung
    mit dem befehl /setprojektleitung und den name??
    und dass dann da steht?


    mein serverinfo cmd:



    if (strcmp("/serverinfo", cmdtext, true, 10) == 0)
    {
    new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],rest[1500];
    format(string1, sizeof string1, "{FFFFFF}Serverowner: NAME ");
    format(string2, sizeof string2, "{FFFFFF}Projektleitung: NAME");
    format(string3, sizeof string3, "{FFFFFF}Scripter: NAME");
    format(string4, sizeof string4, "{FFFFFF}Script Version: {FF00FF}v%s {FFFFFF}", VERSION);
    format(string5, sizeof string5, "Forumsadresse: %s", FORUMURL);
    format(string6, sizeof string6, "TeamSpeak³ Ip : %s", TEAMSPEAKIP);
    format(rest, sizeof rest, "%s\n%s\n%s\n\n%s\n%s\n", string1,string2,string3,string4,string5,string6);
    ShowPlayerDialog(playerid,108,DIALOG_STYLE_MSGBOX, "Serverinformation",rest,"Fertig","");
    return 1;
    }


    danke im vorraus

    Error:
    error 047: array sizes do not match, or destination array is too small


    Zeilen:



    if(strcmp(cmd, "/ainvite", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: /ainvite [playerid/Name] [FraktionsNummer]");
    return 1;
    }
    new para1, fraktion, ftext[20];
    para1 = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: /ainvite [playerid/Name] [FraktionsNummer]");
    return 1;
    }
    fraktion = strval(tmp);
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID)
    {
    if (gTeam[para1] == TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
    {
    if(fraktion == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "San Andreas Police Department"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
    //else if(fraktion == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Polizei SF"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
    else if(fraktion == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
    //else if(fraktion == 3) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Firemen/Ambulance"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
    else if(fraktion == 3) { PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "La Cosa Nostra"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); }
    else if(fraktion == 4) { PlayerInfo[para1][pTeam] = 4; gTeam[para1] = 4; ftext = "Yakuza"; ChosenSkin[para1] = 294; SetPlayerSkin(para1, 294); }
    else if(fraktion == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Bodyguards"; ChosenSkin[para1] = 164; SetPlayerSkin(para1, 164); }
    else if(fraktion == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "Hitman Agency"; ChosenSkin[para1] = 250; SetPlayerSkin(para1, 250); }
    else if(fraktion == 7) { PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "CNN Studio"; ChosenSkin[para1] = 187; SetPlayerSkin(para1, 187); }
    else if(fraktion == 8) { PlayerInfo[para1][pTeam] = 8; gTeam[para1] = 8; ftext = "School Instructors"; ChosenSkin[para1] = 240; SetPlayerSkin(para1, 240); }
    //else if(fraktion == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Hells Angels"; ChosenSkin[para1] = 247; SetPlayerSkin(para1, 247); }//Hells Angels
    else if(fraktion == 9) { PlayerInfo[para1][pTeam] = 9; gTeam[para1] = 9; ftext = "Grove Street Family"; ChosenSkin[para1] = 105; SetPlayerSkin(para1, 105); }//Grove Street
    else if(fraktion == 10) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 10; ftext = "Ballas"; ChosenSkin[para1] = 102; SetPlayerSkin(para1, 102); }//Ballas
    //else if(fraktion == 15) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "2Fast2Furios"; ChosenSkin[para1] = 185; SetPlayerSkin(para1, 185); }//2Fast2Furios
    else if(fraktion == 11) { PlayerInfo[para1][pTeam] = 11; gTeam[para1] = 11; ftext = "L.S.Vagos"; ChosenSkin[para1] = 108; SetPlayerSkin(para1, 108); }//Los Santos Vagos
    else if(fraktion == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "V.L.Aztecas"; ChosenSkin[para1] = 114; SetPlayerSkin(para1, 114); }//Varios Los Aztecas
    //else if(fraktion == 18) { PlayerInfo[para1][pTeam] = 18; gTeam[para1] = 18; ftext = "S.F.Rifa"; ChosenSkin[para1] = 173; SetPlayerSkin(para1, 173); }//San Fiero Rifa
    //else if(fraktion == 19) { PlayerInfo[para1][pTeam] = 19; gTeam[para1] = 19; ftext = "Red Soldier"; ChosenSkin[para1] = 234; SetPlayerSkin(para1, 234); }//West Coust Customs
    //else if(fraktion == 20) { PlayerInfo[para1][pTeam] = 20; gTeam[para1] = 20; ftext = "Terror"; ChosenSkin[para1] = 220; SetPlayerSkin(para1, 220); }
    else if(fraktion == 13) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
    //else if(fraktion == 22) { PlayerInfo[para1][pTeam] = 22; gTeam[para1] = 22; ftext = "Wheelman"; ChosenSkin[para1] = 124; SetPlayerSkin(para1, 124); }
    else if(fraktion == 14) { PlayerInfo[para1][pTeam] = 14; gTeam[para1] = 14; ftext = "MS13"; ChosenSkin[para1] = 133; SetPlayerSkin(para1, 133); }
    else if(fraktion == 15) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "Ordnungsamt"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, " FraktionsNummer ungültig! 1-15");
    return 1;
    }
    GetPlayerName(para1, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[para1][pMember] = fraktion;
    PlayerInfo[para1][pRank] = 1;
    printf("AdmCmd: %s hat %s in die Fraktion %s eingeladen.", sendername, giveplayer, ftext);
    format(string, sizeof(string), " Du wurdest in die Fraktion %s von Admin %s eingeladen.", ftext, sendername);
    SendClientMessage(para1, COLOR_LIGHTBLUE, string);
    SendClientMessage(para1, COLOR_GRAD5, " Du kannst mit /help deine neuen Fraktionsbefehle betrachten");
    format(string, sizeof(string), " Du hast %s in die Fraktion %s eingeladen.", giveplayer,ftext);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    SetPlayerInterior(para1,0);
    new rand = random(sizeof(gInviteSpawns));
    SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
    SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
    SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
    SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
    FreezePlayer(para1);
    SelectChar[para1] = 255;
    SelectCharID[para1] = PlayerInfo[para1][pMember];
    SelectCharPlace[para1] = 1;
    PlayerInfo[para1][pModel] = ChosenSkin[para1];
    PlayerInfo[para1][pChar] = ChosenSkin[para1];
    SendClientMessage(para1, COLOR_LIGHTRED, "* Benutze 'weiter' um dir den Charakter auszusuchen den du gerne benutzen möchtest.");
    SendClientMessage(para1, COLOR_LIGHTRED, "* Wenn du den richtigen gefunden hast gib 'fertig' ein.");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler hat zur Zeit ein Wanted / ist in einer anderen Fraktion / oder bereits ein Fraktionsmitglied.");
    return 1;
    }
    }
    }//not connected
    }//not admin
    }
    return 1;
    }

    wie geht das das der leader den lon setzen kann?
    also maximum soll 20.000 sein
    mein lohn wird als 'pPayCheck' gespeichert.
    wer kann mir helfen?


    ZSMF:
    Ich suche einen befehl womit ein leader den lohn seiner members einstellen kann.