PAWNO (225) Error
#1

Hey. I don't know if this is the correct forum to ask about this in, but here we go..
I have these /enter and /exit commands for my server. But when I compile PAWNO I get a single error and I simply can't find the problem:

Script

Код:
}
  if (!strcmp("/Enter", cmdtext, true) && PlayerToPoint(1.5 ,playerid,-2070.6096,2179.8987,6.0000))
  {
	SetPlayerInterior(playerid, 10);
	SetPlayerPos(playerid,246.40,110.84,1003.22);
	CreatePickup(1239,2,-2070.6096,2179.8987,6.0000);
	return 1;
  }
  if(!strcmp("/Exit", cmdtext, true) && PlayerToPoint(1.5 ,playerid,246.40,110.84,1003.22))
  {
	SetPlayerInterior(playerid, 0);
	SetPlayerPos(playerid,-2070.6096,2179.8987,6.0000);
  }
  return 0;
}
Error
Код:
C:\Users\Bastian\Documents\Samp_server\gamemodes\Test.pwn(335) : warning 225: unreachable code
Line 335
Код:
 if (!strcmp("/Enter", cmdtext, true) && PlayerToPoint(1.5 ,playerid,-2070.6096,2179.8987,6.0000))
Reply
#2

Look at the lines above it (about 10 lines). I can almost guarantee you'll find a return statement at a higher "nested" level. Either enclose it in the applicable statement, get rid of it, or post your code here and we'll use our discretion
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)