cargodmode desenable in derby ?
#3

You can only check for false or true if you set a bool: tag to a variable (which means you can only use 0 or 1 (but only as false or true) - binary compositions).

Like:
pawn Код:
new
    bool:myVariable;

stock myFunction(playerid)
{
  if(myVariable == true) return 1;
  else return 0;
}
But if you use it like this (your case):
pawn Код:
new
    myVariable;

stock myFunction(playerid)
{
  if(myVariable == true) return 1;
  else return 0;
}
You'll get the same warning (warning 213: tag mismatch) because your variable is just a normal variable.

Or like this:
pawn Код:
new
    bool:myVariable;

stock myFunction(playerid)
{
  if(myVariable == 1) return 1;
  else return 0;
}
Reply


Messages In This Thread
cargodmode desenable in derby ? - by a-day - 21.10.2009, 17:39
Re: cargodmode desenable in derby ? - by Andom - 21.10.2009, 17:57
Re: cargodmode desenable in derby ? - by Correlli - 21.10.2009, 18:35
Re: cargodmode desenable in derby ? - by a-day - 21.10.2009, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)