25.02.2009, 18:51
Hey guys, i have this piece of script:
Now i get this error:
Now the error lines are:
So i allways make the same mistake... can someone help me ?
-Wickedd
Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerInterior(playerid,14); SetPlayerPos(playerid,258.4893,-41.4008,1002.0234); SetPlayerFacingAngle(playerid, 270.0); SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234); SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234); // Leaders if (classid == 0) { GameTextForPlayer(playerid, "Police Chef", 1000, 6); } else if (classid == 1) { GameTextForPlayer(playerid, "Federal Agents - Leader", 1000, 6); } else if (classid == 2) { GameTextForPlayer(playerid, "La Costra Nostra - Leader", 1000, 6); } else if (classid == 3) { GameTextForPlayer(playerid, "Hitman - Leader", 1000, 6); } else if (classid == 4) { GameTextForPlayer(playerid, "Da Nang Boys - Leader", 1000, 6); } // Faction Members // Police else if (classid == 5, 6, 7, 8) { GameTextForPlayer(playerid, "Police", 1000, 4); } // Federal Agents else if (classid == 9, 10, 11, 12) { GameTextForPlayer(playerid, "Federal Agents", 1000, 4); } // La Costra Nostra else if (classid == 13, 14, 15, 16) { GameTextForPlayer(playerid, "La Costra Nostra Family", 1000, 4); } // Hitman else if (classid == 17, 18, 19, 20) { GameTextForPlayer(playerid, "Hitman", 1000, 4); } // Da Nang Boys else if (classid == 21, 22, 23) { GameTextForPlayer(playerid, "Da Nang Boys", 1000, 4); } return 1; }
Код:
RPGClasses.pwn(351) : warning 206: redundant test: constant expression is non-zero RPGClasses.pwn(358) : warning 206: redundant test: constant expression is non-zero RPGClasses.pwn(365) : warning 206: redundant test: constant expression is non-zero RPGClasses.pwn(373) : warning 206: redundant test: constant expression is non-zero RPGClasses.pwn(380) : warning 206: redundant test: constant expression is non-zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Warnings.
Код:
351 -> else if (classid == 5, 6, 7, 8) 358 -> else if (classid == 9, 10, 11, 12) 365 -> else if (classid == 13, 14, 15, 16) 373 -> else if (classid == 17, 18, 19, 20) 380 -> else if (classid == 21, 22, 23)
-Wickedd