#1

I Need Some Help . Why When I Took So Many Color It Doesn't Appear
PHP код:
               new masuk[700];
               if(
dini_Exists(string)){ format(AccInfo[playerid][Tags],128,dini_Get(string,"Tags")); }
               
               
format(masuksizeof(masuk), ""red".:::::|"green"-»[ | %s | {000099}%s"yellow"["red"%d"yellow"] "green"has joined Universal Freeroam Malaysia ! ]«-"red"|:::::.",AccInfo[playerid][Tags],nama(playerid), playerid);
               
SendClientMessageToAll(-1,masuk); 
Reply
#2

Why dont just use hex colors instead if "Red" ?
Reply
#3

Quote:
Originally Posted by WhiteGhost
Посмотреть сообщение
Why dont just use hex colors instead if "Red" ?
did you mean {FF000}?
Reply
#4

Show us how have you defined colors in #define lines.
It should be like this :
Код:
#define red "{ff0000}"
Reply
#5

Quote:
Originally Posted by dh240473
Посмотреть сообщение
did you mean {FF000}?
Exactly. Use them instead of "red" etc and check if it works.

Look at my code:

PHP код:
new masuk[700]; 
if(
dini_Exists(string))

format(AccInfo[playerid][Tags],128,dini_Get(string,"Tags"));
}         
format(masuksizeof(masuk), "{FFFFFF}.:::::|{FFFFFF}-»[ | %s | {000099}%s{FFFFFF}[{FFFFFF}%d{FFFFFF}] {FFFFFF}has joined Universal Freeroam Malaysia ! ]«-{FFFFFF}|:::::.",AccInfo[playerid][Tags],nama(playerid), playerid); 
SendClientMessageToAll(-1,masuk); 
Just replace {FFFFF} with the colors u want.
Reply
#6

Quote:
Originally Posted by WhiteGhost
Посмотреть сообщение
Exactly. Use them instead of "red" etc and check if it works.

Look at my code:

PHP код:
new masuk[700]; 
if(
dini_Exists(string))

format(AccInfo[playerid][Tags],128,dini_Get(string,"Tags"));
}         
format(masuksizeof(masuk), "{FFFFFF}.:::::|{FFFFFF}-»[ | %s | {000099}%s{FFFFFF}[{FFFFFF}%d{FFFFFF}] {FFFFFF}has joined Universal Freeroam Malaysia ! ]«-{FFFFFF}|:::::.",AccInfo[playerid][Tags],nama(playerid), playerid); 
SendClientMessageToAll(-1,masuk); 
Just replace {FFFFF} with the colors u want.
That's going backwards sorry.

What he's trying to do is better, along with an easier way of making the various embedding readable, in a more visual way.
Reply
#7

Use hex color it's more useful and you could even create your own color for pawn ! use a program that called "ColorPicker" You can ****** it it's very very useful and awesome !
Reply
#8

The maximum output length for a client message is 144 characters (not 700) and you're already consuming nearly half of them by using eight colors (64 characters).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)