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
#2

pawn Код:
CMD:operacion(playerid, params[])
{
    if(!gPlayerLogged{playerid}) return SendClientMessageEx(playerid, COLOR_GRAD2, "No estбs logeado!");
    if(!IsAtATM(playerid)) return SendClientMessageEx(playerid, COLOR_GREY, "No estбs en un Banco!");
    {
   /* 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;
}
intenta asi a ver
Reply
#3

Quote:
Originally Posted by Cerealguy
Посмотреть сообщение
pawn Код:
CMD:operacion(playerid, params[])
{
    if(!gPlayerLogged{playerid}) return SendClientMessageEx(playerid, COLOR_GRAD2, "No estбs logeado!");
    if(!IsAtATM(playerid)) return SendClientMessageEx(playerid, COLOR_GREY, "No estбs en un Banco!");
    {
   /* 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;
}
intenta asi a ver
No funciona pana / It doesn't work
Reply
#4

Try this :

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);
    } else return SendClientMessageEx(playerid, COLOR_GREY, "No estбs en un Banco!");
    return 1;
}
Reply
#5

Quote:
Originally Posted by VenomMancer
Посмотреть сообщение
Try this :

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);
    } else return SendClientMessageEx(playerid, COLOR_GREY, "No estбs en un Banco!");
    return 1;
}
NOTHING
Reply
#6

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

        SendClientMessage(playerid, COLOR_GREY, "LOS PROBLEMAS SON LOS TEXTDRAW Y NO EL COMAND");
         TextDrawShowForPlayer(playerid, Textdraw0);
        TextDrawShowForPlayer(playerid, Textdraw1);
        TextDrawShowForPlayer(playerid, Textdraw2);
        TextDrawShowForPlayer(playerid, Textdraw3);
        TextDrawShowForPlayer(playerid, Textdraw4);
        TextDrawShowForPlayer(playerid, Textdraw5);
       
    }
    return 1;
}
intenta asi y ve si sale el mensaje asi descartamos que sea el comando!
Reply
#7

Quote:
Originally Posted by Cerealguy
Посмотреть сообщение
pawn Код:
CMD:operacion(playerid, params[])
{
    if(!gPlayerLogged{playerid}) return SendClientMessageEx(playerid, COLOR_GRAD2, "No estбs logeado!");
    if(!IsAtATM(playerid)) return SendClientMessageEx(playerid, COLOR_GREY, "No estбs en un Banco!");
    {
   /* TextDrawSetString(Textdraw20, "Dinero: $%d" , GetPlayerCash(playerid));
            TextDrawSetString(Textdraw21, "Banco: $%d" , Info[playerid][pAccount]);
    */

        SendClientMessage(playerid, COLOR_GREY, "LOS PROBLEMAS SON LOS TEXTDRAW Y NO EL COMAND");
         TextDrawShowForPlayer(playerid, Textdraw0);
        TextDrawShowForPlayer(playerid, Textdraw1);
        TextDrawShowForPlayer(playerid, Textdraw2);
        TextDrawShowForPlayer(playerid, Textdraw3);
        TextDrawShowForPlayer(playerid, Textdraw4);
        TextDrawShowForPlayer(playerid, Textdraw5);
       
    }
    return 1;
}
intenta asi y ve si sale el mensaje asi descartamos que sea el comando!
Pues son los textdraw
Reply
#8

verifica bien las coordenadas... usa esto para crearlos,

https://sampforum.blast.hk/showthread.php?tid=118518
Reply
#9

es raro porque yo tenia textdraws que aparecian y ahora ningunas aparecen. Nisikiera la del login
Reply
#10

probablemente revisa si tienes textdraw redefinidos ejemplo:

Textdraw1 =

y tengas en otro lado tambien Textdraw1 =
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)