18.10.2012, 22:14
So, I've decided to make a simple licenses system, driving, flying and gun license - but anyways, lets move to the question:
Im trying to make it when a player type /mylic to show him if the license is "Passed" or "Not Passed" Instead of 0 or 1, if you still didnt get what I mean - here's a screenshot.
So, my problem is that when I try to make it like this -
It doesnt shows the licenses correctly, even if you buy one it shows you dont have it, but if you buy two licenses it shows you got all of them... Im pretty confused, so I would be happy if someone tell me what I did wrong.
Im trying to make it when a player type /mylic to show him if the license is "Passed" or "Not Passed" Instead of 0 or 1, if you still didnt get what I mean - here's a screenshot.
So, my problem is that when I try to make it like this -
Код:
CMD:mylic(playerid, params[]) { new lic[128]; if(HasDrivingLic[playerid] == 0 || HasGunLic[playerid] == 0 || HasFlyingLic[playerid] == 0) format(lic, sizeof(lic), "** Your Licenses - [Driving]: Not Passed || [Gun]: Not Passed || [Flying]: Not Passed"); else if(HasDrivingLic[playerid] == 1 || HasGunLic[playerid] == 0 || HasFlyingLic[playerid] == 0) format(lic, sizeof(lic), "** Your Licenses - [Driving]: Passed || [Gun]: Not Passed || [Flying]: Not Passed"); else if(HasDrivingLic[playerid] == 0 || HasGunLic[playerid] == 1 || HasFlyingLic[playerid] == 0) format(lic, sizeof(lic), "** Your Licenses - [Driving]: Not Passed || [Gun]: Passed || [Flying]: Not Passed"); else if(HasDrivingLic[playerid] == 0 || HasGunLic[playerid] == 0 || HasFlyingLic[playerid] == 1) format(lic, sizeof(lic), "** Your Licenses - [Driving]: Not Passed || [Gun]: Not Passed || [Flying]: Passed"); else if(HasDrivingLic[playerid] == 1 || HasGunLic[playerid] == 1 || HasFlyingLic[playerid] == 1) format(lic, sizeof(lic), "** Your Licenses - [Driving]: Passed || [Gun]: Passed || [Flying]: Passed"); SendClientMessage(playerid, -1, lic); return 1; }