Problem with textdraws
#1

Hello,

I have a problem with textdraw. Ok i made some textdraws.

pawn Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
This on Gamemodeinit

pawn Код:
Textdraw0 = TextDrawCreate(0.000000, 0.000000, "LD_SPAC:white");
TextDrawLetterSize(Textdraw0, 0.000000, 0.000000);
TextDrawTextSize(Textdraw0, 716.000000, 60.480007);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, -1061109505);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 4);

Textdraw1 = TextDrawCreate(733.199951, 64.220016, "usebox");
TextDrawLetterSize(Textdraw1, 0.000000, 4.637406);
TextDrawTextSize(Textdraw1, -34.000000, 0.000000);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, 0);
TextDrawUseBox(Textdraw1, true);
TextDrawBoxColor(Textdraw1, 102);
TextDrawSetShadow(Textdraw1, 0);
TextDrawSetOutline(Textdraw1, 0);
TextDrawFont(Textdraw1, 0);

Textdraw2 = TextDrawCreate(0.799999, 60.479999, "LD_SPAC:white");
TextDrawLetterSize(Textdraw2, 0.000000, 0.000000);
TextDrawTextSize(Textdraw2, 637.600036, 46.293327);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, 41215);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, 0);
TextDrawFont(Textdraw2, 4);

Textdraw3 = TextDrawCreate(0.000000, 109.013336, "LD_SPAC:white");
TextDrawLetterSize(Textdraw3, 0.000000, 0.000000);
TextDrawTextSize(Textdraw3, 640.000000, 338.986663);
TextDrawAlignment(Textdraw3, 1);
TextDrawColor(Textdraw3, -2139062017);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetOutline(Textdraw3, 0);
TextDrawFont(Textdraw3, 4);

Textdraw4 = TextDrawCreate(110.400001, 109.013336, "LD_SPAC:white");
TextDrawLetterSize(Textdraw4, 0.000000, 0.000000);
TextDrawTextSize(Textdraw4, 413.600006, 338.986663);
TextDrawAlignment(Textdraw4, 1);
TextDrawColor(Textdraw4, -1);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetOutline(Textdraw4, 0);
TextDrawFont(Textdraw4, 4);

Textdraw5 = TextDrawCreate(221.600021, 185.920059, "LD_SPAC:white");
TextDrawLetterSize(Textdraw5, 0.000000, 0.000000);
TextDrawTextSize(Textdraw5, 194.399917, 67.200019);
TextDrawAlignment(Textdraw5, 1);
TextDrawColor(Textdraw5, -1);
TextDrawSetShadow(Textdraw5, 0);
TextDrawSetOutline(Textdraw5, 0);
TextDrawFont(Textdraw5, 4);
This is the command

pawn Код:
CMD:operacion(playerid, params[])
{
    if(!gPlayerLogged{playerid}) return SendClientMessageEx(playerid, COLOR_GRAD2, "No estбs logeado!");
    if(IsAtATM(playerid))
    {
   /* TextDrawSetString(Textdraw20, "Dinero: $%d" , GetPlayerCash(playerid));
            TextDrawSetString(Textdraw21, "Banco: $%d" , Info[playerid][pAccount]);
    */

         TextDrawShowForPlayer(playerid, Textdraw0);
        TextDrawShowForPlayer(playerid, Textdraw1);
        TextDrawShowForPlayer(playerid, Textdraw2);
        TextDrawShowForPlayer(playerid, Textdraw3);
        TextDrawShowForPlayer(playerid, Textdraw4);
        TextDrawShowForPlayer(playerid, Textdraw5);

        return 1;
       
    }
        else    SendClientMessageEx(playerid, COLOR_GREY, "No estбs en un Banco!");
        return 1;
}
Well if i am not in a bank it would say "No estбs en un Banco!", but if i am in the bank NOTHING HAPPENS.
Reply


Messages In This Thread
Problem with textdraws - by yancarlos4500 - 27.12.2013, 16:43
Respuesta: Problem with textdraws - by Cerealguy - 27.12.2013, 16:45
Re: Respuesta: Problem with textdraws - by yancarlos4500 - 27.12.2013, 16:49
Re: Problem with textdraws - by VenomMancer - 27.12.2013, 16:54
Re: Problem with textdraws - by yancarlos4500 - 27.12.2013, 17:05
Respuesta: Problem with textdraws - by Cerealguy - 27.12.2013, 18:03
Re: Respuesta: Problem with textdraws - by yancarlos4500 - 27.12.2013, 18:10
Respuesta: Problem with textdraws - by Cerealguy - 27.12.2013, 18:33
Re: Problem with textdraws - by yancarlos4500 - 27.12.2013, 18:37
Respuesta: Problem with textdraws - by Cerealguy - 27.12.2013, 18:40

Forum Jump:


Users browsing this thread: 3 Guest(s)