Beiträge von Maurice.

    hier mal die textdraws: IntroRBOX = TextDrawCreate(243.875000, 305.416687, "usebox");
    TextDrawLetterSize(IntroRBOX, 0.000000, 3.053701);
    TextDrawTextSize(IntroRBOX, 116.750000, 0.000000);
    TextDrawAlignment(IntroRBOX, 1);
    TextDrawColor(IntroRBOX, 0);
    TextDrawUseBox(IntroRBOX, true);
    TextDrawBoxColor(IntroRBOX, 102);
    TextDrawSetShadow(IntroRBOX, 0);
    TextDrawSetOutline(IntroRBOX, 0);
    TextDrawFont(IntroRBOX, 0);
    TextDrawSetSelectable(IntroRBOX, true);


    IntroLBOX = TextDrawCreate(368.250000, 305.416687, "usebox");
    TextDrawLetterSize(IntroLBOX, 0.000000, 2.988888);
    TextDrawTextSize(IntroLBOX, 246.750000, 0.000000);
    TextDrawAlignment(IntroLBOX, 1);
    TextDrawColor(IntroLBOX, 0);
    TextDrawUseBox(IntroLBOX, true);
    TextDrawBoxColor(IntroLBOX, 102);
    TextDrawSetShadow(IntroLBOX, 0);
    TextDrawSetOutline(IntroLBOX, 0);
    TextDrawFont(IntroLBOX, 0);
    TextDrawSetSelectable(IntroLBOX, true);


    hier das bei onplayerconnect if(gPlayerAccount[playerid] == 1 && gPlayerLogged[playerid] == 0)
    {
    gPlayerAccount[playerid] = 1;
    TextDrawShowForPlayer(playerid,IntroBox);
    TextDrawShowForPlayer(playerid,IntroName);
    TextDrawShowForPlayer(playerid,IntroRBOX);
    TextDrawSetSelectable(IntroRBOX, false);
    TextDrawSetSelectable(IntroLBOX, true);
    TextDrawShowForPlayer(playerid,IntroRTEXT);
    TextDrawShowForPlayer(playerid,IntroLBOX);
    TextDrawShowForPlayer(playerid,IntroLTEXT);
    TextDrawShowForPlayer(playerid,IntroIBOX);
    TextDrawShowForPlayer(playerid,IntroITEXT);
    SelectTextDraw(playerid,blau);
    }
    else if(gPlayerAccount[playerid] == 0 && gPlayerLogged[playerid] == 0)
    {
    gPlayerAccount[playerid] = 0;
    TextDrawShowForPlayer(playerid,IntroBox);
    TextDrawShowForPlayer(playerid,IntroName);
    TextDrawShowForPlayer(playerid,IntroRBOX);
    TextDrawShowForPlayer(playerid,IntroRTEXT);
    TextDrawSetSelectable(IntroRBOX, true);
    TextDrawShowForPlayer(playerid,IntroLBOX);
    TextDrawSetSelectable(IntroLBOX, false);
    TextDrawShowForPlayer(playerid,IntroLTEXT);
    TextDrawShowForPlayer(playerid,IntroIBOX);
    TextDrawShowForPlayer(playerid,IntroITEXT);
    SelectTextDraw(playerid,blau);
    }

    Function OnPlayerClickTextDraw(playerid,Text:clickedid)
    {
    if(clickedid == IntroRBOX)
    {
    ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_MSGBOX,"Account","Herzlich Willkommen auf German Next Era Life,\n\n\nWir Freuen uns das du zu uns gejoint bist.\n\n\nDamit du gleich Loslegen kannst,\n\nmusst du dich Registrieren.\n\nViel Spaß.","Erstellen","Abbrechen");
    }
    if(clickedid == IntroLBOX)
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Willkommen auf German Next Era Life,\n\n\n\n Bitte Logge dich nun ein!\n\n\n","Login","Abbrechen");
    }
    return 1;
    }

    ich glaube er meint sowas:
    stock Reg(playerid,key[])
    {
    new SpielerD[64];
    format(SpielerD,sizeof(SpielerD),"/User/%s.txt",PlayerName(playerid));
    dini_Create(SpielerD);
    dini_Set(SpielerD,"Passwort",key);
    dini_IntSet(SpielerD,"Level",1);
    dini_IntSet(SpielerD,"Adminlevel",0);
    SetPlayerScore(playerid,1);
    SetPVarInt(playerid,"loggedin",1);
    SetPVarInt(playerid,"Level",1);
    TextDrawHideForPlayer(playerid,Register);
    TextDrawHideForPlayer(playerid,Login);
    TextDrawHideForPlayer(playerid,S);
    TextDrawHideForPlayer(playerid,UD);
    TextDrawHideForPlayer(playerid,SName);
    TextDrawHideForPlayer(playerid,Punkt);
    TextDrawHideForPlayer(playerid,Info);
    TextDrawHideForPlayer(playerid,Update);
    TextDrawHideForPlayer(playerid,KA);
    TextDrawHideForPlayer(playerid,A);
    TextDrawHideForPlayer(playerid,I);
    TextDrawHideForPlayer(playerid,U);
    TextDrawHideForPlayer(playerid,Forum);
    CancelSelectTextDraw(playerid);


    //AUSWAHL
    TextDrawShowForPlayer(playerid,CopsSkin);
    TextDrawShowForPlayer(playerid,RobberSkin);
    TextDrawShowForPlayer(playerid,AuswahlBox);
    TextDrawShowForPlayer(playerid,CopsText);
    TextDrawShowForPlayer(playerid,RobbersText);
    TextDrawShowForPlayer(playerid,oderText);
    SelectTextDraw(playerid,blau);
    return 1;
    } schick mal das halt such nach dini_Create und schick uns dann den ganzen stock

    Hab so schon hinbekommen.


    Nächstes:


    Wenn ich im normal chat einfach t schreibe kommt es 2mal einmal
    Maurice.: t
    Maurice.: t


    public OnPlayerText(playerid, text[])
    {
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerInRangeOfPoint(i,30.0,x,y,z))
    {
    new string[200];
    format(string,sizeof(string),"%s sagt: %s",PlayerName(playerid), text);
    SendClientMessage(i,0xF0F0F0FF, string);
    }
    }
    return 1;
    }

    So geht nun nur noch den letzten fehler: stock SendCopMessage(color,const string[])
    {
    for(new i; i<MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i))
    {
    if(SetPVarInt,"Cop",i,1)
    {
    SendClientMessage(i, color, string); //HIER
    }
    }
    }
    return 1;
    }
    C:\Dokumente und Einstellungen\Maurice\Desktop\Maurice RolePlay\gamemodes\CaR.pwn(1065) : error 076: syntax error in the expression, or invalid function call
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    Ich habe 2 errors ocmd:d(playerid,params[])
    {
    new string[128];
    if(sscanf(params,"s",string2))return SendClientMessage(playerid,rot,"INFO: /d [Text]");
    format(string,sizeof(string),"* %s: %s",PlayerName(playerid),string2);
    SendCopMessage(rot,string);
    return 1;
    }
    C:\Dokumente und Einstellungen\Maurice\Desktop\Maurice RolePlay\gamemodes\CaR.pwn(595) : error 017: undefined symbol "string2"
    C:\Dokumente und Einstellungen\Maurice\Desktop\Maurice RolePlay\gamemodes\CaR.pwn(596) : error 017: undefined symbol "string2"


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


    // hier ist auch was falsch stock SendCopMessage(color,const string[])
    {
    for(new i; i<MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i))
    {
    if(SetPVarInt,"Cop",i,1) // Das hier
    {
    SendClientMessage(i, color, string);
    }
    }
    }
    return 1;
    }

    Geht immer noch nicht if(clickedid == CopsSkin)
    {
    SetPlayerPos(playerid,1526.3693,-1677.5197,5.8906);
    SetPlayerSkin(playerid,283);
    SetCameraBehindPlayer(playerid);
    SendClientMessage(playerid,blau,"Du bist nun Cop! Benutze /help um alle Befehle zu sehen");
    GivePlayerWeapon(playerid,24,1111111);
    GivePlayerWeapon(playerid,29,1111111);
    GivePlayerWeapon(playerid,25,1111111);
    CancelSelectTextDraw(playerid);
    TextDrawHideForPlayer(playerid,CopsSkin);
    TextDrawHideForPlayer(playerid,RobberSkin);
    TextDrawHideForPlayer(playerid,AuswahlBox);
    TextDrawHideForPlayer(playerid,CopsText);
    TextDrawHideForPlayer(playerid,RobbersText);
    TextDrawHideForPlayer(playerid,oderText);
    SpawnPlayer(playerid);
    }
    else if(clickedid == RobberSkin)
    {
    SetPlayerPos(playerid,1115.9500,-1778.5627,13.5895);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,105);
    SendClientMessage(playerid,gelb,"Du bist nun Robber! Benutze /help um alle Befehle zu sehen");
    GivePlayerWeapon(playerid,24,1111111);
    GivePlayerWeapon(playerid,2,1);
    GivePlayerWeapon(playerid,28,1111111);
    TextDrawHideForPlayer(playerid,CopsSkin);
    TextDrawHideForPlayer(playerid,RobberSkin);
    TextDrawHideForPlayer(playerid,AuswahlBox);
    TextDrawHideForPlayer(playerid,CopsText);
    TextDrawHideForPlayer(playerid,RobbersText);
    TextDrawHideForPlayer(playerid,oderText);
    CancelSelectTextDraw(playerid);
    SpawnPlayer(playerid);
    }

    Hallo,


    ich habe ein Problem undzwar...


    Wenn ich "Cop" auswähle spawn er beim bauernhof das selbe ist auch bei "Robber"


    if(clickedid == CopsSkin)
    {
    SetPlayerPos(playerid,1526.3693,-1677.5197,5.8906);
    SetPlayerSkin(playerid,283);
    SetCameraBehindPlayer(playerid);
    SendClientMessage(playerid,blau,"Du bist nun Cop! Benutze /help um alle Befehle zu sehen");
    GivePlayerWeapon(playerid,24,1111111);
    GivePlayerWeapon(playerid,29,1111111);
    GivePlayerWeapon(playerid,25,1111111);
    CancelSelectTextDraw(playerid);
    TextDrawHideForPlayer(playerid,CopsSkin);
    TextDrawHideForPlayer(playerid,RobberSkin);
    TextDrawHideForPlayer(playerid,AuswahlBox);
    TextDrawHideForPlayer(playerid,CopsText);
    TextDrawHideForPlayer(playerid,RobbersText);
    TextDrawHideForPlayer(playerid,oderText);
    SpawnPlayer(playerid);
    }
    if(clickedid == RobberSkin)
    {
    SetPlayerPos(playerid,1115.9500,-1778.5627,13.5895);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,105);
    SendClientMessage(playerid,gelb,"Du bist nun Robber! Benutze /help um alle Befehle zu sehen");
    GivePlayerWeapon(playerid,24,1111111);
    GivePlayerWeapon(playerid,2,1);
    GivePlayerWeapon(playerid,28,1111111);
    TextDrawHideForPlayer(playerid,CopsSkin);
    TextDrawHideForPlayer(playerid,RobberSkin);
    TextDrawHideForPlayer(playerid,AuswahlBox);
    TextDrawHideForPlayer(playerid,CopsText);
    TextDrawHideForPlayer(playerid,RobbersText);
    TextDrawHideForPlayer(playerid,oderText);
    CancelSelectTextDraw(playerid);
    SpawnPlayer(playerid);
    }