SA-MP Forums Archive
Have problem With texdraws - 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: Have problem With texdraws (/showthread.php?tid=302545)



Have problem With texdraws - -BadGirl- - 09.12.2011

i have problem with this text draw Its Not showing Brackets Like THis [ ] It showing Stars how i fixed it
See TextDraw


Re: Have problem With texdraws - Kyosaur - 09.12.2011

The font just does that, you cant fix it. You can however use parenthesis instead, they look pretty similar.


Btw are you from [The Fake]?


Re: Have problem With texdraws - Ash. - 09.12.2011

You can't show square brackets in text draws, nor game texts for that matter.


Re: Have problem With texdraws - AstonDA-G - 09.12.2011

If you want to use brackets, you need to choose a different textdraw font


Re: Have problem With texdraws - -BadGirl- - 09.12.2011

on where can i select other fronts in include ? Or Where

Код:
if (strcmp("/propertyinfo", cmd, true) == 0)
	{
	    new tmp[256];
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, 0xFF0000AA, "USE: /propertyinfo [PropertyID]");
			return 1;
		}
		new prop = strval(tmp);
		if(!DoesPropertyExists(prop)) return SendClientMessage(playerid, 0xFF0000AA, "This property does not exists!");
	    new Float:X, Float:Y, Float:Z;
	    new Price, Earning, SellValue, Name[64], Owner[MAX_PLAYER_NAME], Status[16];
		GetPropertyInfo(prop, X, Y, Z, Price, SellValue, Earning);
		format(Name, 64, "%s", GetPropertyName(prop));
		format(Owner, MAX_PLAYER_NAME, "%s", GetPropertyOwner(prop));
		format(Status, 16, "%s", GetPropertyStatus(prop));
		new str[128];
		format(str, 128, "Name: %s ** X: %.1f  Y:%.1f ** Z:%.1f", Name, X, Y, Z);
		SendClientMessage(playerid, 0xFFFFFFAA, str);
		format(str, 128, "Price: $%d ** SellValue: $%d ** Earnings: $%d", Price, SellValue, Earning);
		SendClientMessage(playerid, 0xFFFFFFAA, str);
		format(str, 128, "Owner: %s", Owner);
		SendClientMessage(playerid, 0xFFFFFFAA, str);
		format(str, 128, "Status: %s", Status);
		SendClientMessage(playerid, 0xFFFFFFAA, str);
		return 1;
	}



Re: Have problem With texdraws - Sfor$ahil - 09.12.2011

Help me here- https://sampforum.blast.hk/showthread.php?tid=302541


Re: Have problem With texdraws - -BadGirl- - 09.12.2011

Quote:
Originally Posted by Sfor$ahil
Посмотреть сообщение
wtf why u bumping thread's wait other members will help u in your thread


Re: Have problem With texdraws - vassilis - 09.12.2011

use owner : (scorpion)it will be shown like that i think :P


Re: Have problem With texdraws - -BadGirl- - 09.12.2011

but idk where i can edite fronts/texdraw's in my script


Re: Have problem With texdraws - MoroDan - 09.12.2011

Quote:
Originally Posted by -BadGirl-
Посмотреть сообщение
on where can i select other fronts in include ? Or Where

Код:
if (strcmp("/propertyinfo", cmd, true) == 0)
	{
	    new tmp[256];
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, 0xFF0000AA, "USE: /propertyinfo [PropertyID]");
			return 1;
		}
		new prop = strval(tmp);
		if(!DoesPropertyExists(prop)) return SendClientMessage(playerid, 0xFF0000AA, "This property does not exists!");
	    new Float:X, Float:Y, Float:Z;
	    new Price, Earning, SellValue, Name[64], Owner[MAX_PLAYER_NAME], Status[16];
		GetPropertyInfo(prop, X, Y, Z, Price, SellValue, Earning);
		format(Name, 64, "%s", GetPropertyName(prop));
		format(Owner, MAX_PLAYER_NAME, "%s", GetPropertyOwner(prop));
		format(Status, 16, "%s", GetPropertyStatus(prop));
		new str[128];
		format(str, 128, "Name: %s ** X: %.1f  Y:%.1f ** Z:%.1f", Name, X, Y, Z);
		SendClientMessage(playerid, 0xFFFFFFAA, str);
		format(str, 128, "Price: $%d ** SellValue: $%d ** Earnings: $%d", Price, SellValue, Earning);
		SendClientMessage(playerid, 0xFFFFFFAA, str);
		format(str, 128, "Owner: %s", Owner);
		SendClientMessage(playerid, 0xFFFFFFAA, str);
		format(str, 128, "Status: %s", Status);
		SendClientMessage(playerid, 0xFFFFFFAA, str);
		return 1;
	}
I changed the [ & ] to ( & ).

PHP код:
    if (strcmp("/propertyinfo"cmdtrue) == 0)
    {
        new 
tmp[256];
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        {
            
SendClientMessage(playerid0xFF0000AA"USE: /propertyinfo [PropertyID]");
            return 
1;
        }
        new 
prop strval(tmp);
        if(!
DoesPropertyExists(prop)) return SendClientMessage(playerid0xFF0000AA"This property does not exists!");
        new 
Float:XFloat:YFloat:Z;
        new 
PriceEarningSellValueName[64], Owner[MAX_PLAYER_NAME], Status[16];
        
GetPropertyInfo(propXYZPriceSellValueEarning);
        
format(Name64"%s"GetPropertyName(prop));
        
format(OwnerMAX_PLAYER_NAME"%s"GetPropertyOwner(prop));
        for(
0strlen(Owner); ji++)
        {
            if(
Owner[i] == '['Owner[i] = '(';
            else if(
Owner[i] == ']'Owner[i] = ')';
        }
        
format(Status16"%s"GetPropertyStatus(prop));
        new 
str[128];
        
format(str128"Name: %s ** X: %.1f  Y:%.1f ** Z:%.1f"NameXYZ);
        
SendClientMessage(playerid0xFFFFFFAAstr);
        
format(str128"Price: $%d ** SellValue: $%d ** Earnings: $%d"PriceSellValueEarning);
        
SendClientMessage(playerid0xFFFFFFAAstr);
        
format(str128"Owner: %s"Owner);
        
SendClientMessage(playerid0xFFFFFFAAstr);
        
format(str128"Status: %s"Status);
        
SendClientMessage(playerid0xFFFFFFAAstr);
        return 
1;
    }