Tutorialdraw wird InGame nicht angezeigt

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • new PlayerText:Tutorialdraw[MAX_PLAYERS][4];


    //Tutorialdraw
    for(new i=0;i<MAX_PLAYERS;i++){
    Tutorialdraw[i][0] = CreatePlayerTextDraw(i,160,145,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
    PlayerTextDrawUseBox(i,Tutorialdraw[i][0],1);
    PlayerTextDrawBoxColor(i,Tutorialdraw[i][0],0x00000067);
    PlayerTextDrawBackgroundColor(i,Tutorialdraw[i][0],0x000000ff);
    PlayerTextDrawTextSize(i,Tutorialdraw[i][0],480,290);
    PlayerTextDrawLetterSize(i,Tutorialdraw[i][0],0.400000,0.599990);
    PlayerTextDrawSetShadow(i,Tutorialdraw[i][0],1);


    Tutorialdraw[i][1] = CreatePlayerTextDraw(i,160,145,"_");
    PlayerTextDrawFont(i,Tutorialdraw[i][1],0);
    PlayerTextDrawColor(i,Tutorialdraw[i][1],Farbe_Gelb);
    PlayerTextDrawAlignment(i,Tutorialdraw[i][1],0);
    PlayerTextDrawLetterSize(i,Tutorialdraw[i][1],0.499990,1.499990);
    PlayerTextDrawSetOutline(i,Tutorialdraw[i][1],1);
    PlayerTextDrawSetProportional(i,Tutorialdraw[i][1],1);
    PlayerTextDrawSetShadow(i,Tutorialdraw[i][1],1);


    Tutorialdraw[i][2] = CreatePlayerTextDraw(i,160,165,"_");
    PlayerTextDrawFont(i,Tutorialdraw[i][2],2);
    PlayerTextDrawColor(i,Tutorialdraw[i][2],Farbe_Gelb);
    PlayerTextDrawAlignment(i,Tutorialdraw[i][2],0);
    PlayerTextDrawLetterSize(i,Tutorialdraw[i][2],0.200000,0.799990);
    PlayerTextDrawSetProportional(i,Tutorialdraw[i][2],1);
    PlayerTextDrawSetShadow(i,Tutorialdraw[i][2],1);


    Tutorialdraw[i][3] = CreatePlayerTextDraw(i,290,240,"server");
    PlayerTextDrawFont(i,Tutorialdraw[i][3],2);
    PlayerTextDrawColor(i,Tutorialdraw[i][3],Farbe_Gelb);
    PlayerTextDrawAlignment(i,Tutorialdraw[i][3],0);
    PlayerTextDrawLetterSize(i,Tutorialdraw[i][3],1.0,3.5);
    PlayerTextDrawSetOutline(i,Tutorialdraw[i][3],1);
    PlayerTextDrawSetProportional(i,Tutorialdraw[i][3],1);
    PlayerTextDrawSetShadow(i,Tutorialdraw[i][3],1);
    }


    Onplayerdisconnect:
    for(new i=0;i<3;i++){ PlayerTextDrawDestroy(playerid,Tutorialdraw[playerid][i]); }


    Test befehl:


    if(strcmp(cmdtext,"/test1",true)==0)
    {
    for(new i=0;i<4;i++){ PlayerTextDrawShow(i,Tutorialdraw[i][i]);
    PlayerTextDrawSetString(i,Tutorialdraw[i][1],"Tutorial - Dein Outfit ... Dein Style!");
    PlayerTextDrawSetString(i,Tutorialdraw[i][2],"Der Binco ist einer von vielen Kleidungslaeden in San Andreas~n~Hier kannst du zu jederzeit deinen Charakter wechseln.~n~Die Kleidungslaeden bieten dir eine grosse Auswahl an Skins,~n~sodass du dir dein Leben in einen Traum verwandeln kannst.~n~Mit '/outfit' kannst du in allen Kleiderläden deinen Skin wechseln.~n~~n~~r~");
    }
    return 1;
    }
    Es passiert einfach nichts warum?

  • OnPlayerConnect:
    //Tutorialdraw
    Tutorialdraw[playerid][0] = CreatePlayerTextDraw(playerid,160,145,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
    PlayerTextDrawUseBox(playerid,Tutorialdraw[playerid][0],1);
    PlayerTextDrawBoxColor(playerid,Tutorialdraw[playerid][0],0x00000067);
    PlayerTextDrawBackgroundColor(playerid,Tutorialdraw[playerid][0],0x000000ff);
    PlayerTextDrawTextSize(playerid,Tutorialdraw[playerid][0],480,290);
    PlayerTextDrawLetterSize(playerid,Tutorialdraw[playerid][0],0.400000,0.599990);
    PlayerTextDrawSetShadow(playerid,Tutorialdraw[playerid][0],1);


    Tutorialdraw[playerid][1] = CreatePlayerTextDraw(playerid,160,145,"_");
    PlayerTextDrawFont(playerid,Tutorialdraw[playerid][1],0);
    PlayerTextDrawColor(playerid,Tutorialdraw[playerid][1],Farbe_Gelb);
    PlayerTextDrawAlignment(playerid,Tutorialdraw[playerid][1],0);
    PlayerTextDrawLetterSize(playerid,Tutorialdraw[playerid][1],0.499990,1.499990);
    PlayerTextDrawSetOutline(playerid,Tutorialdraw[playerid][1],1);
    PlayerTextDrawSetProportional(playerid,Tutorialdraw[playerid][1],1);
    PlayerTextDrawSetShadow(playerid,Tutorialdraw[playerid][1],1);


    Tutorialdraw[playerid][2] = CreatePlayerTextDraw(playerid,160,165,"_");
    PlayerTextDrawFont(playerid,Tutorialdraw[playerid][2],2);
    PlayerTextDrawColor(playerid,Tutorialdraw[playerid][2],Farbe_Gelb);
    PlayerTextDrawAlignment(playerid,Tutorialdraw[playerid][2],0);
    PlayerTextDrawLetterSize(playerid,Tutorialdraw[playerid][2],0.200000,0.799990);
    PlayerTextDrawSetProportional(playerid,Tutorialdraw[playerid][2],1);
    PlayerTextDrawSetShadow(playerid,Tutorialdraw[playerid][2],1);


    Tutorialdraw[playerid][3] = CreatePlayerTextDraw(playerid,290,240,"server");
    PlayerTextDrawFont(playerid,Tutorialdraw[playerid][3],2);
    PlayerTextDrawColor(playerid,Tutorialdraw[playerid][3],Farbe_Gelb);
    PlayerTextDrawAlignment(playerid,Tutorialdraw[playerid][3],0);
    PlayerTextDrawLetterSize(playerid,Tutorialdraw[playerid][3],1.0,3.5);
    PlayerTextDrawSetOutline(playerid,Tutorialdraw[playerid][3],1);
    PlayerTextDrawSetProportional(playerid,Tutorialdraw[playerid][3],1);
    PlayerTextDrawSetShadow(playerid,Tutorialdraw[playerid][3],1);


    OnPlayerDisconnect:
    for(new i=0;i<4;i++) PlayerTextDrawDestroy(playerid,Tutorialdraw[playerid][i]);


    Befehl:
    if(strcmp(cmdtext,"/test1",true)==0)
    {
    PlayerTextDrawSetString(playerid,Tutorialdraw[playerid][1],"Tutorial - Dein Outfit ... Dein Style!");
    PlayerTextDrawSetString(playerid,Tutorialdraw[playerid][2],"Der Binco ist einer von vielen Kleidungslaeden in San Andreas~n~Hier kannst du zu jederzeit deinen Charakter wechseln.~n~Die Kleidungslaeden bieten dir eine grosse Auswahl an Skins,~n~sodass du dir dein Leben in einen Traum verwandeln kannst.~n~Mit '/outfit' kannst du in allen Kleiderläden deinen Skin wechseln.~n~~n~~r~");
    for(new i=0;i<4;i++) PlayerTextDrawShow(playerid,Tutorialdraw[playerid][i]);
    return 1;
    }