Help TD
#1

I have a problem with textdraw,him don't show me "none" if I'm not in a gang.
But,if I'm in a gang,work great,but without gang,no,I will leave a picture: https://imgur.com/a/ueQzdRz

Codes down:

Код HTML:
new GangTextDrawColor;
	GangTextDrawColor = Colors[GangInfo[CosminInfo[playerid][GangID]][GangColor]];
	//--------------------------------------------------------------------------
    PlayerTextDrawColor(playerid, Gang[1], GangTextDrawColor);
    //--------------------------------------------------------------------------
    new string[256]; new ggsRank[256];
    if(CosminInfo[playerid][GangID] == 0) ggsRank ="{F81414}None";
    format(string, sizeof string, "%s %s", ggsRank, GangInfo[CosminInfo[playerid][GangID]][GangName]);
    PlayerTextDrawSetString(playerid, Gang[1], string);
    //--------------------------------------------------------------------------
    PlayerTextDrawShow(playerid, PlayerText:Gang[0]);
    PlayerTextDrawShow(playerid, PlayerText:Gang[1]);
Reply
#2

pawn Код:
new string[256];
    if(CosminInfo[playerid][GangID] == 0)
    {
       format(string, sizeof string, "{F81414}None");
    }
    else format(string, sizeof string, "%s", GangInfo[CosminInfo[playerid][GangID]][GangName]);
    PlayerTextDrawSetString(playerid, Gang[1], string);
Reply
#3

pawn Код:
new string[150];
   
    switch(CosminInfo[playerid][GangID])
    {
        case 0: format(string, sizeof string, "{F81414}None");
        case 1: format(string, sizeof string, "%s %s", ggsRank, GangInfo[CosminInfo[playerid][GangID]][GangName]);
    }
   
    PlayerTextDrawSetString(playerid, Gang[1], string);
Not tested.
Reply
#4

EN: solved?
RO: te ajut eu daca mai e ceva, ce denumire ai dat si tu la variabila CosminInfo )
Reply
#5

Quote:
Originally Posted by Florin48
Посмотреть сообщение
EN: solved?
RO: te ajut eu daca mai e ceva, ce denumire ai dat si tu la variabila CosminInfo )
Mna,trebuia sa ma dau si eu mare =))
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)