14.04.2017, 20:45
Hello i have problem with operators (==,!=,>,>=, etc) i tried edit dutys tags with color so i made more tags bat problem is that if i try do something like this. Its doesnt work.
Bat if i do with one variable checking tag showing fine.
Bat i need make it show together because if you have admin and vip at the same time it will show only (VIP) tag, so i trie use operators bat when i change it at any ways it bugged sometimes doesn't show or sometimes just colors doesnt change. So there is pastebin with all my tags
https://pastebin.com/JFCjDNYJ
Код:
if(pInfo[playerid][pAdminLevel] < 1 && pInfo[playerid][pVipLevel] < 1) { format(sudasnx, sizeof(sudasnx), "{d8b713}(VIP){09ed09}(M){%06x}%s{FFFFFF}(%i): {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text); }
Код:
else if(pInfo[playerid][pAdminLevel] == 1) { format(sudasnx, sizeof(sudasnx), "{09ed09}(M){%06x}%s{FFFFFF}(%i): {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text); }
Код:
else if(pInfo[playerid][pVipLevel] != 1) { format(sudasnx, sizeof(sudasnx), "{d8b713}(VIP){%06x}%s{FFFFFF}(%i): {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text); }
https://pastebin.com/JFCjDNYJ