One Warning -.-
#1

Warning:
Код:
C:\Documents and Settings\Administrator\Desktop\Cyber Roleplay0.3c RC4\gamemodes\CYBER.pwn(43777) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Line:
Код:
if(newkeys & KEY_FIRE)
What the problem?
Reply
#2

Код:
if (newkeys & KEY_FIRE)
Try this
Reply
#3

Quote:
Originally Posted by Crime Life ROLEPLAY
Посмотреть сообщение
Код:
if (newkeys & KEY_FIRE)
Try this
No fucking difference. Unreachable code means he placed a code in a wrong line; like under the wrong bracket, for example. We need your whole command / function to fix it, than.
Reply
#4

An example of this would be something like
pawn Код:
{
     Function 1;
     return 1;
     Function 2;
}
You would get this error because Function 2 would never be executed (aka "unreachable") because you returned a value already. Look for something like this, where you return a value but then try to execute something else within the same bracket.
This, however, is acceptable:
pawn Код:
{
     {
          Function 1;
          return 1;
     }
     Function 2;
}
Or just post your code
Reply
#5

Код:
if(newkeys == KEY_FIRE)
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)