05.03.2009, 18:13
Hello,
in the next part of my script i get 2 warnings:
These are the warnings:
2 Warnings.
The warnings point at this line:
And this line:
this are the pickups:
Does anyone know how to fix this problem??
thuron
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; }
Код:
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
The warnings point at this line:
Код:
if(pickupid == MainHallEnter)
Код:
if(pickupid == MainHallExit)
Код:
CreatePickup(1318,23,MainHallEnter); CreatePickup(1318,23,MainHallExit);
thuron