Quote:
Originally Posted by _Application_
will work ?
PHP код:
if (strcmp("/inv", cmdtext, true, 10) == 0) { SetPlayerColor(playerid, GetPlayerColor(playerid) & ~0xFF); return 1; } if (strcmp("/uninv", cmdtext, true, 10) == 0) { SetPlayerColor(playerid, GetPlayerColor(playerid) | 0xFF); return 1; }
|
will only work if
SetPlayerColor was used before any of these cmd's
cuz
GetPlayerColor will get the color set by
SetPlayerColor.
so it should work
i also suggest that you refrain from using string comparison in this day and age...
try
YCMD