17.06.2009, 15:16
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
Error
Line 335
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; }
Код:
C:\Users\Bastian\Documents\Samp_server\gamemodes\Test.pwn(335) : warning 225: unreachable code
Код:
if (!strcmp("/Enter", cmdtext, true) && PlayerToPoint(1.5 ,playerid,-2070.6096,2179.8987,6.0000))