Little help, please! :)
#1

I'm having a problem with setting these three things into a command, could anybody help me?
It would be great! =)

These three =
if(PlayerInfo[playerid][pFaction] == 10)
if(PlayerInfo[playerid][pFaction] == 0)
if(PlayerInfo[playerid][pFaction] == 6)

What i want :
I want these three to get mixed into one sentence so i can easily create new /commands could anybody help with that ? I beg you, please

What i want it to look like.
Код:
	if(strcmp(cmd, "/hey", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	  if(PlayerInfo[playerid][pFaction] == 10) if(PlayerInfo[playerid][pFaction] == 6) if(PlayerInfo[playerid][pFaction] == 0)
Reply
#2

pawn Код:
if(PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pFaction] == 0 || PlayerInfo[playerid][pFaction] == 6)
{
  // code.
}
Reply
#3

Thanks

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)