(530) : warning 225: unreachable code
#1

Hey,

I've mapped something using SA-MP editor and I put the code in my test server, but if I run the test-server and I go to the place I mapped it does not show the mapping. Also, when I compile the script it says shows the following warning:

(530) : warning 225: unreachable code

From line 530 the mapping starts, so I wonder what's wrong.

The mapping:

PHP код:
LINE 530RemoveBuildingForPlayer(playerid33391297.2813173.578119.46090.25);
RemoveBuildingForPlayer(playerid33401308.3984168.140619.40630.25);
RemoveBuildingForPlayer(playerid33411281.2266158.093819.34380.25);
RemoveBuildingForPlayer(playerid33431295.9844158.742219.38280.25);
RemoveBuildingForPlayer(playerid33431305.0391184.914119.34380.25);
RemoveBuildingForPlayer(playerid33451298.6094194.265619.32810.25);
RemoveBuildingForPlayer(playerid33451305.2656152.773419.29690.25);
RemoveBuildingForPlayer(playerid33441299.7109138.734419.34380.25);
RemoveBuildingForPlayer(playerid33441313.9688179.843819.35940.25);
RemoveBuildingForPlayer(playerid35941265.5703153.382819.46090.25);
RemoveBuildingForPlayer(playerid7691267.9141146.820319.19530.25);
RemoveBuildingForPlayer(playerid31701281.2266158.093819.34380.25);
RemoveBuildingForPlayer(playerid35941280.9297147.312520.00780.25);
RemoveBuildingForPlayer(playerid31681295.9844158.742219.38280.25);
RemoveBuildingForPlayer(playerid31711299.7109138.734419.34380.25);
RemoveBuildingForPlayer(playerid31721305.2656152.773419.29690.25);
RemoveBuildingForPlayer(playerid13081301.2578147.382818.82030.25);
RemoveBuildingForPlayer(playerid7801301.5938154.507819.32810.25);
RemoveBuildingForPlayer(playerid35941271.3125163.390619.43750.25);
RemoveBuildingForPlayer(playerid12941264.5469172.218823.00780.25);
RemoveBuildingForPlayer(playerid13081281.5156165.531318.82030.25);
RemoveBuildingForPlayer(playerid14401297.0703179.226619.94530.25);
RemoveBuildingForPlayer(playerid14401293.5547163.882819.94530.25);
RemoveBuildingForPlayer(playerid31681305.0391184.914119.34380.25);
RemoveBuildingForPlayer(playerid31691297.2813173.578119.46090.25);
RemoveBuildingForPlayer(playerid7751301.2734164.265619.35160.25);
RemoveBuildingForPlayer(playerid7641303.6328173.398418.93750.25);
RemoveBuildingForPlayer(playerid31711313.9688179.843819.35940.25);
RemoveBuildingForPlayer(playerid31671308.3984168.140619.40630.25);
RemoveBuildingForPlayer(playerid13081308.2656174.289118.82030.25);
RemoveBuildingForPlayer(playerid14401313.3203167.031319.94530.25);
RemoveBuildingForPlayer(playerid7091358.1484166.523419.46090.25);
RemoveBuildingForPlayer(playerid31721298.6094194.265619.32810.25);
RemoveBuildingForPlayer(playerid13081274.1875191.460918.82030.25);
RemoveBuildingForPlayer(playerid14381276.1172190.226618.60940.25);
RemoveBuildingForPlayer(playerid6171324.7266187.351617.78130.25);
RemoveBuildingForPlayer(playerid14401318.3828196.054719.60940.25);
RemoveBuildingForPlayer(playerid7051290.4766198.679718.76560.25);
RemoveBuildingForPlayer(playerid134411338.0625198.734430.02340.25);
CreateObject(36071306.41516168.4824525.58073,   0.000000.0000069.86023);
CreateObject(161511310.16003134.0597719.82454,   0.000000.00000333.26828);
CreateObject(14321304.92847132.4687819.59503,   0.000000.000000.00000);
CreateObject(14321306.75659137.7992719.49764,   0.000000.000000.00000);
CreateObject(14321303.53137137.6843619.49949,   0.000000.000000.00000);
CreateObject(14321305.59802135.1932519.58012,   0.000000.000000.00000);
CreateObject(14321302.54041134.5308819.54607,   0.000000.000000.00000);
CreateObject(17751314.34595140.6454820.30334,   0.000000.00000252.74940);
CreateObject(98331282.91980174.5224521.36313,   0.000000.00000356.52475);
CreateObject(6521299.50269149.8702919.41948,   0.000000.000000.00000);
CreateObject(6521309.96191183.7475119.43826,   0.000000.000000.00000);
{
return 
1;
}

I hope you can help me and I would really appreciate it.
Reply
#2

PHP код:
public OnGameModeInit()
{
    
// some code
    
    
CreateObject(36071306.41516168.4824525.58073,   0.000000.0000069.86023);
    
CreateObject(161511310.16003134.0597719.82454,   0.000000.00000333.26828);
    
CreateObject(14321304.92847132.4687819.59503,   0.000000.000000.00000);
    
CreateObject(14321306.75659137.7992719.49764,   0.000000.000000.00000);
    
CreateObject(14321303.53137137.6843619.49949,   0.000000.000000.00000);
    
CreateObject(14321305.59802135.1932519.58012,   0.000000.000000.00000);
    
CreateObject(14321302.54041134.5308819.54607,   0.000000.000000.00000);
    
CreateObject(17751314.34595140.6454820.30334,   0.000000.00000252.74940);
    
CreateObject(98331282.91980174.5224521.36313,   0.000000.00000356.52475);
    
CreateObject(6521299.50269149.8702919.41948,   0.000000.000000.00000);
    
CreateObject(6521309.96191183.7475119.43826,   0.000000.000000.00000);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
// some code
    
    
RemoveBuildingForPlayer(playerid33391297.2813173.578119.46090.25);
    
RemoveBuildingForPlayer(playerid33401308.3984168.140619.40630.25);
    
RemoveBuildingForPlayer(playerid33411281.2266158.093819.34380.25);
    
RemoveBuildingForPlayer(playerid33431295.9844158.742219.38280.25);
    
RemoveBuildingForPlayer(playerid33431305.0391184.914119.34380.25);
    
RemoveBuildingForPlayer(playerid33451298.6094194.265619.32810.25);
    
RemoveBuildingForPlayer(playerid33451305.2656152.773419.29690.25);
    
RemoveBuildingForPlayer(playerid33441299.7109138.734419.34380.25);
    
RemoveBuildingForPlayer(playerid33441313.9688179.843819.35940.25);
    
RemoveBuildingForPlayer(playerid35941265.5703153.382819.46090.25);
    
RemoveBuildingForPlayer(playerid7691267.9141146.820319.19530.25);
    
RemoveBuildingForPlayer(playerid31701281.2266158.093819.34380.25);
    
RemoveBuildingForPlayer(playerid35941280.9297147.312520.00780.25);
    
RemoveBuildingForPlayer(playerid31681295.9844158.742219.38280.25);
    
RemoveBuildingForPlayer(playerid31711299.7109138.734419.34380.25);
    
RemoveBuildingForPlayer(playerid31721305.2656152.773419.29690.25);
    
RemoveBuildingForPlayer(playerid13081301.2578147.382818.82030.25);
    
RemoveBuildingForPlayer(playerid7801301.5938154.507819.32810.25);
    
RemoveBuildingForPlayer(playerid35941271.3125163.390619.43750.25);
    
RemoveBuildingForPlayer(playerid12941264.5469172.218823.00780.25);
    
RemoveBuildingForPlayer(playerid13081281.5156165.531318.82030.25);
    
RemoveBuildingForPlayer(playerid14401297.0703179.226619.94530.25);
    
RemoveBuildingForPlayer(playerid14401293.5547163.882819.94530.25);
    
RemoveBuildingForPlayer(playerid31681305.0391184.914119.34380.25);
    
RemoveBuildingForPlayer(playerid31691297.2813173.578119.46090.25);
    
RemoveBuildingForPlayer(playerid7751301.2734164.265619.35160.25);
    
RemoveBuildingForPlayer(playerid7641303.6328173.398418.93750.25);
    
RemoveBuildingForPlayer(playerid31711313.9688179.843819.35940.25);
    
RemoveBuildingForPlayer(playerid31671308.3984168.140619.40630.25);
    
RemoveBuildingForPlayer(playerid13081308.2656174.289118.82030.25);
    
RemoveBuildingForPlayer(playerid14401313.3203167.031319.94530.25);
    
RemoveBuildingForPlayer(playerid7091358.1484166.523419.46090.25);
    
RemoveBuildingForPlayer(playerid31721298.6094194.265619.32810.25);
    
RemoveBuildingForPlayer(playerid13081274.1875191.460918.82030.25);
    
RemoveBuildingForPlayer(playerid14381276.1172190.226618.60940.25);
    
RemoveBuildingForPlayer(playerid6171324.7266187.351617.78130.25);
    
RemoveBuildingForPlayer(playerid14401318.3828196.054719.60940.25);
    
RemoveBuildingForPlayer(playerid7051290.4766198.679718.76560.25);
    
RemoveBuildingForPlayer(playerid134411338.0625198.734430.02340.25);
    return 
1;

Reply
#3

PHP код:
C:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(528) : warning 225unreachable code
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(528) : error 029invalid expressionassumed zero
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(547) : error 021symbol already defined"OnPlayerConnect"
C:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(550) : error 021symbol already defined"RemoveBuildingForPlayer"
C:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(589) : error 010invalid function or declaration 
Those are the errors I got by using the script the guy sent above ^^.
Reply
#4

Show me a line :3 Or show a screenshot of your code. Perhaps, you not correctly do something.
Reply
#5

The game-mode i'm editting is Grandlarc (the one you get when you download private server)

http://prntscr.com/9e4uxz

http://prntscr.com/9e4v1z
Reply
#6

Код:
error 021: symbol already defined: "OnPlayerConnect"
Make sure u only have one OnPlayerConnect
Reply
#7

Got these errors since I deleted the other OnPlayerConnect in the script

PHP код:
C:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(500) : warning 225unreachable code
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(500) : error 029invalid expressionassumed zero
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(522) : error 021symbol already defined"RemoveBuildingForPlayer"
C:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(561) : error 010invalid function or declaration 
Reply
#8

I succeeded without error! http://imgur.com/oIZBnNJ
Reply
#9

PHP код:
C:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(5) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(6) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(7) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(8) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(9) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(10) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(11) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(12) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(13) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(14) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(15) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(16) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(23) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(24) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(25) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(26) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(27) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(28) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(29) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(30) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(31) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(32) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(33) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(34) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(35) : error 010invalid function or declaration
C
:\Users\Gebruiker\Desktop\server\gamemodes\grandlarc.pwn(36) : error 010invalid function or declaration

Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


26 Errors

Wtf is wrong with my script lol?
Reply
#10

Show your script!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)