30.01.2019, 00:28
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:
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]);


)
