A little problem;
#1

Код:
if(newkeys & KEY_SECONDARY_ATTACK)
	{
    	if(IsPlayerInRangeOfPoint(playerid, 2.0, 1999.0267,-1993.7751,17.0041))
		{
            if(GetPlayerSkin(playerid)!=284 | 283) return SendClientMessage(playerid, COLOR_RED,"Error: {1E90FF}Nisi saobracajac.");
			ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "{1E90FF}Policija:", "Health\nArmour\nArmour + Kevlar\nPendrek\nSmoke Bomb\nDesert Eagle\nShotgun\nMP5\nM4a1\nSniper", "Ok!", "Cancel");
  		}
	}
the code;
Код:
if(GetPlayerSkin(playerid)!=284 | 283) return SendClientMessage(playerid, COLOR_RED,"Error: {1E90FF}Nisi saobracajac.");
If I'm in 284 or 283 skin, it still says error, but if I remove one and just let like only one skin(284) for example; it works;
how should I change "!=284 | 283) to make to both things work the dialog of weapons?
Reply
#2

Код:
if(GetPlayerSkin(playerid)!=284 || GetPlayerSkin(playerid)!=283) return SendClientMessage(playerid, COLOR_RED,"Error: {1E90FF}Nisi saobracajac.");
Reply
#3

It did not give any error when compiling, but it still says Error: Nisi policajac which means you're not a cop but w/e, it doesn't let me take weapons
Reply
#4

Sorry, use this
Код:
if(GetPlayerSkin(playerid)!=284 && GetPlayerSkin(playerid)!=283) return SendClientMessage(playerid, COLOR_RED,"Error: {1E90FF}Nisi saobracajac.");
Reply
#5

Thank you.
Now I will know in the future what would be the problem and how it can be solved.
Reputation added. Thank you again
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)