WARNING 206
#1

Hello,
in the next part of my script i get 2 warnings:

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == MainHallEnter)
{
  GameTextForPlayer(playerid, "Type /enter to enter the main hall.", 3000, 3);
return 1;
  }
if(pickupid == MainHallExit)
{
  GameTextForPlayer(playerid, "Type /exit to exit the main hall.", 3000, 3);
return 1;
}
return 0;
}
These are the warnings:
Код:
C:\Users\thuron\Desktop\SIR server\gamemodes\SIRRP.pwn(513) : warning 206: redundant test: constant expression is non-zero
C:\Users\thuron\Desktop\SIR server\gamemodes\SIRRP.pwn(518) : warning 206: redundant test: constant expression is non-zero
Pawn compiler 3.2.3664   Copyright © 1997-2006, ITB CompuPhase
2 Warnings.

The warnings point at this line:
Код:
if(pickupid == MainHallEnter)
And this line:
Код:
if(pickupid == MainHallExit)
this are the pickups:
Код:
	CreatePickup(1318,23,MainHallEnter);
	CreatePickup(1318,23,MainHallExit);
Does anyone know how to fix this problem??

thuron
Reply


Messages In This Thread
WARNING 206 - by thuron - 05.03.2009, 18:13
Re: WARNING 206 - by ғαιιοцт - 05.03.2009, 18:15
Re: WARNING 206 - by Nubotron - 05.03.2009, 18:22
Re: WARNING 206 - by ғαιιοцт - 05.03.2009, 18:24
Re: WARNING 206 - by Snyper18 - 05.03.2009, 18:25
Re: WARNING 206 - by ғαιιοцт - 05.03.2009, 18:26
Re: WARNING 206 - by thuron - 05.03.2009, 18:29
Re: WARNING 206 - by ғαιιοцт - 05.03.2009, 18:30
Re: WARNING 206 - by thuron - 05.03.2009, 18:31
Re: WARNING 206 - by ғαιιοцт - 05.03.2009, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)