28.06.2018, 08:43
When using a color picker, you will most likely come across to #RRGGBB. You only need these 6 symbols and add 0x (which turns into a hex, just like using 0b will be meant as binary) and an alpha at the end (in client messages does not matter, but in player marker icon, FF will be visible and 00 will be invisible).
Enumerators: https://sampforum.blast.hk/showthread.php?tid=318307
If you declare an empty string without setting a text directly, the compiler will complain about it:
but you can do this:
and the size of string will be 6 (5 characters + \0)
if you do:
then:
string[0] is equal to 65
A string is basically an array that holds integer values. Saying string[0] is equal to "65" is wrong because this has two indexes:
string[0] is equal to 54 (which is "6" in ASCII)
string[1] is equal to 53 (which is "5")
OnPlayerCommandText compares the command input using strcmp. The more commands your script has, the slower will get. Includes such ZCMD use public functions to call the command (CallLocalFunction) and the main reason they are faster.
More about colors: https://sampwiki.blast.hk/wiki/Colors_List
Enumerators: https://sampforum.blast.hk/showthread.php?tid=318307
If you declare an empty string without setting a text directly, the compiler will complain about it:
pawn Код:
new string[];
pawn Код:
new string[] = "hello";
if you do:
pawn Код:
new string[] = "A";
string[0] is equal to 65
A string is basically an array that holds integer values. Saying string[0] is equal to "65" is wrong because this has two indexes:
string[0] is equal to 54 (which is "6" in ASCII)
string[1] is equal to 53 (which is "5")
OnPlayerCommandText compares the command input using strcmp. The more commands your script has, the slower will get. Includes such ZCMD use public functions to call the command (CallLocalFunction) and the main reason they are faster.
More about colors: https://sampwiki.blast.hk/wiki/Colors_List