#1

Код:
C:\Users\Viddo\Desktop\LARP 4.0\LARP 4.0 D\gamemodes\larp.pwn(67619) : warning 225: unreachable code
Код:
	            new x_nr[24];
				x_nr = strtok(cmdtext, idx);
				if(!strlen(x_nr)) {
Код:
C:\Users\Viddo\Desktop\LARP 4.0\LARP 4.0 D\gamemodes\larp.pwn(61710) : error 008: must be a constant expression; assumed zero
Код:
			else if{strcmp(x_nr,"8",true) == 0)
Reply
#2

Quote:
Originally Posted by viddo
Посмотреть сообщение
Код:
C:\Users\Viddo\Desktop\LARP 4.0\LARP 4.0 D\gamemodes\larp.pwn(67619) : warning 225: unreachable code
There's a return that exits your function and makes a part of your code unreachable, like:
pawn Код:
public function() {
     ...code... // this can be reached
     return 1;
     ...code... // this can't be reached
}
Try to find that unnecessary return.


Quote:
Originally Posted by viddo
Посмотреть сообщение
Код:
else if{strcmp(x_nr,"8",true) == 0)
After 'else if' change the '{' to '('.
Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)