SA-MP Forums Archive
Help TD - 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: Help TD (/showthread.php?tid=663391)



Help TD - SeeNN - 30.01.2019

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]);



Re: Help TD - UFF - 30.01.2019

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



Re: Help TD - SymonClash - 30.01.2019

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.


Re: Help TD - Florin48 - 30.01.2019

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


Re: Help TD - SeeNN - 30.01.2019

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 =))