SA-MP Forums Archive
Problem with textdraws - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with textdraws (/showthread.php?tid=483749)



Problem with textdraws - yancarlos4500 - 27.12.2013

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.


Respuesta: Problem with textdraws - Cerealguy - 27.12.2013

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


Re: Respuesta: Problem with textdraws - yancarlos4500 - 27.12.2013

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


Re: Problem with textdraws - VenomMancer - 27.12.2013

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;
}



Re: Problem with textdraws - yancarlos4500 - 27.12.2013

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


Respuesta: Problem with textdraws - Cerealguy - 27.12.2013

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!


Re: Respuesta: Problem with textdraws - yancarlos4500 - 27.12.2013

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


Respuesta: Problem with textdraws - Cerealguy - 27.12.2013

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

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



Re: Problem with textdraws - yancarlos4500 - 27.12.2013

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


Respuesta: Problem with textdraws - Cerealguy - 27.12.2013

probablemente revisa si tienes textdraw redefinidos ejemplo:

Textdraw1 =

y tengas en otro lado tambien Textdraw1 =