Pawno error 225 (Unreachable code)
#1

Yup pawno error 225...
ERRORS:
Код:
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(485) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(496) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(507) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(518) : warning 225: unreachable code
C:\Users\-----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(529) : warning 225: unreachable code
C:\Users\-----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(540) : warning 225: unreachable code
C:\Users\-----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(551) : warning 225: unreachable code
C:\Users\-----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(562) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(573) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(584) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(595) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(606) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(617) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(628) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(639) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(650) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(661) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(672) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(683) : warning 225: unreachable code
C:\Users\-----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(694) : warning 225: unreachable code
C:\Users\-----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(705) : warning 225: unreachable code
C:\Users\-----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(716) : warning 225: unreachable code
C:\Users\-----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(727) : warning 225: unreachable code
C:\Users\-----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(738) : warning 225: unreachable code
C:\Users\-----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(749) : warning 225: unreachable code
C:\Users\-----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(760) : warning 225: unreachable code
C:\Users\-----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(771) : warning 225: unreachable code
C:\Users\----\Desktop\SERVER\SERVER\gamemodes\Gamemode.pwn(783) : warning 225: unreachable code
PAWNO PART ERRORS:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cartype = GetPlayerVehicleID(playerid);
	new State=GetPlayerState(playerid);
	
	if(strcmp(cmdtext, "/rules", true) == 0){
	ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Server Rules", "1-Do Not Ask For Admin!\n2-Do Not Spam Or Command Spam\n3-Hacks Are Strictly Not Allowed!!!\n4-Admins Decision Is Final And Is To Be Respected And Not To Be Discussed!\n5-Weapons Are Not Allowed As Well As DeathMatch!\nIf The Rules Mentioned Above Are Broken, You Will Get a jail/warn/kick/ban\nThank You For Reading The Rules!", "I Agree", "I Disagree");
	    return 1;
	    }
// ---------- TELEPORTS ----------
 	if(strcmp(cmdtext, "/ls", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,1480.4059,-1734.6334,13.3828);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1480.4059,-1734.6334,13.3828);
		SetVehicleZAngle(cartype,270.1219);}
		else
		{SetPlayerPos(playerid,1480.4059,-1734.6334,13.3828);}
		return 1;}

    if(strcmp(cmdtext, "/sf", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-1979.9708,883.9478,45.2031);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-1979.9708,883.9478,45.2031);
		SetVehicleZAngle(cartype,94.9668);}
		else
		{SetPlayerPos(playerid,-1979.9708,883.9478,45.2031);}
		return 1;}
		
	if(strcmp(cmdtext, "/lv", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,2039.5106,1546.2025,10.6719);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2039.5106,1546.2025,10.6719);
		SetVehicleZAngle(cartype,179.8342);}
		else
		{SetPlayerPos(playerid,2039.5106,1546.2025,10.6719);}
		return 1;}
		
	if(strcmp(cmdtext, "/drift1", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-307.1134,1566.0787,75.3594);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-307.1134,1566.0787,75.3594);
		SetVehicleZAngle(cartype,221.5314);}
		else
		{SetPlayerPos(playerid,-307.1134,1566.0787,75.3594);}
		return 1;}
		
	if(strcmp(cmdtext, "/drift2", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,2312.5615,1398.2843,42.8203);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2312.5615,1398.2843,42.8203);
		SetVehicleZAngle(cartype,358.1460);}
		else
		{SetPlayerPos(playerid,2312.5615,1398.2843,42.8203);}
		return 1;}
		
	if(strcmp(cmdtext, "/drift3", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-2521.5369,-611.2319,132.5625);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-2521.5369,-611.2319,132.5625);
		SetVehicleZAngle(cartype,262.2418);}
		else
		{SetPlayerPos(playerid,-2521.5369,-611.2319,132.5625);}
		return 1;}
		
	if(strcmp(cmdtext, "/chilliad", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-2325.2207,-1611.6285,483.7368);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-2325.2207,-1611.6285,483.7368);
		SetVehicleZAngle(cartype,208.0814);}
		else
		{SetPlayerPos(playerid,-2325.2207,-1611.6285,483.7368);}
		return 1;}
		
	if(strcmp(cmdtext, "/bayside", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-2261.7642,2292.8250,4.8202);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-2261.7642,2292.8250,4.8202);
		SetVehicleZAngle(cartype,8.0966);}
		else
		{SetPlayerPos(playerid,-2261.7642,2292.8250,4.8202);}
		return 1;}
		
	if(strcmp(cmdtext, "/home", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,1727.7756,-1855.0909,13.4141);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1727.7756,-1855.0909,13.4141);
		SetVehicleZAngle(cartype,270.4587);}
		else
		{SetPlayerPos(playerid,1727.7756,-1855.0909,13.4141);}
		return 1;}
		
	if(strcmp(cmdtext, "/sfap", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-1472.4641,-190.4857,14.1484);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-1472.4641,-190.4857,14.1484);
		SetVehicleZAngle(cartype,347.4164);}
		else
		{SetPlayerPos(playerid,-1472.4641,-190.4857,14.1484);}
		return 1;}
		
	if(strcmp(cmdtext, "/lsap", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,1988.4010,-2189.2180,13.5469);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1988.4010,-2189.2180,13.5469);
		SetVehicleZAngle(cartype,180.4610);}
		else
		{SetPlayerPos(playerid,1988.4010,-2189.2180,13.5469);}
		return 1;}
		
	if(strcmp(cmdtext, "/lvap", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,1321.1298,1286.3354,10.8203);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1321.1298,1286.3354,10.8203);
		SetVehicleZAngle(cartype,314.5923);}
		else
		{SetPlayerPos(playerid,1321.1298,1286.3354,10.8203);}
		return 1;}
		
	if(strcmp(cmdtext, "/aa", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,393.8787,2561.2952,16.5156);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,393.8787,2561.2952,16.5156);
		SetVehicleZAngle(cartype,149.5945);}
		else
		{SetPlayerPos(playerid,393.8787,2561.2952,16.5156);}
		return 1;}
		
	if(strcmp(cmdtext, "/steerlock1", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,2255.4973,2792.5337,10.8203);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2255.4973,2792.5337,10.8203);
		SetVehicleZAngle(cartype,268.1423);}
		else
		{SetPlayerPos(playerid,2255.4973,2792.5337,10.8203);}
		return 1;}
		
	if(strcmp(cmdtext, "/steerlock2", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,1448.8521,1423.8491,10.8203);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1448.8521,1423.8491,10.8203);
		SetVehicleZAngle(cartype,153.4846);}
		else
		{SetPlayerPos(playerid,1448.8521,1423.8491,10.8203);}
		return 1;}
		
	if(strcmp(cmdtext, "/steerlock3", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,1428.8042,1605.1031,10.8130);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1428.8042,1605.1031,10.8130);
		SetVehicleZAngle(cartype,42.8769);}
		else
		{SetPlayerPos(playerid,1428.8042,1605.1031,10.8130);}
		return 1;}
		
	if(strcmp(cmdtext, "/steerlock4", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-1977.4703,840.5991,45.2969);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-1977.4703,840.5991,45.2969);
		SetVehicleZAngle(cartype,314.5923);}
		else
		{SetPlayerPos(playerid,-1977.4703,840.5991,45.2969);}
		return 1;}
		
	if(strcmp(cmdtext, "/tune1", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-2703.1904,217.7544,4.1797);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-2703.1904,217.7544,4.1797);
		SetVehicleZAngle(cartype,89.9769);}
		else
		{SetPlayerPos(playerid,-2703.1904,217.7544,4.1797);}
		return 1;}
		
	if(strcmp(cmdtext, "/tune2", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,2644.3518,-2016.7961,13.5535);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2644.3518,-2016.7961,13.5535);
		SetVehicleZAngle(cartype,180.5078);}
		else
		{SetPlayerPos(playerid,2644.3518,-2016.7961,13.5535);}
		return 1;}
		
	if(strcmp(cmdtext, "/tune3", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,1041.7344,-1036.2516,31.7363);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1041.7344,-1036.2516,31.7363);
		SetVehicleZAngle(cartype,1.9295);}
		else
		{SetPlayerPos(playerid,1041.7344,-1036.2516,31.7363);}
		return 1;}
		
	if(strcmp(cmdtext, "/beach", true) == 0){
		SetPlayerInterior(playerid, 0);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,338.7800,-1800.3743,4.7014);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,338.7800,-1800.3743,4.7014);
		SetVehicleZAngle(cartype,109.3336);}
		else
		{SetPlayerPos(playerid,338.7800,-1800.3743,4.7014);}
		return 1;}
		
	if(strcmp(cmdtext, "/battlefield", true) == 0){
		SetPlayerInterior(playerid, 10);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-971.3673,1074.3146,1345.0107);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-971.3673,1074.3146,1345.0107);
		SetVehicleZAngle(cartype,139.3527);}
		else
		{SetPlayerPos(playerid,-971.3673,1074.3146,1345.0107);}
		return 1;}
		
	if(strcmp(cmdtext, "/libertycity", true) == 0){
		SetPlayerInterior(playerid, 1);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-741.3271,485.0895,1371.7137);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-741.3271,485.0895,1371.7137);
		SetVehicleZAngle(cartype,127.1326);}
		else
		{SetPlayerPos(playerid,-741.3271,485.0895,1371.7137);}
		return 1;}
		
	if(strcmp(cmdtext, "/bloodbowl", true) == 0){
		SetPlayerInterior(playerid, 15);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-1365.8674,987.6608,1023.9210);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-1365.8674,987.6608,1023.9210);
		SetVehicleZAngle(cartype,89.0369);}
		else
		{SetPlayerPos(playerid,-1365.8674,987.6608,1023.9210);}
		return 1;}
		
	if(strcmp(cmdtext, "/kickstart", true) == 0){
		SetPlayerInterior(playerid, 14);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-1465.268676,1557.868286,1052.531250);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-1465.268676,1557.868286,1052.531250);
		SetVehicleZAngle(cartype,89.0369);}
		else
		{SetPlayerPos(playerid,-1465.268676,1557.868286,1052.531250);}
		return 1;}
		
	if(strcmp(cmdtext, "/stadium", true) == 0){
		SetPlayerInterior(playerid, 1);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-1401.829956,107.051300,1032.273437);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-1401.829956,107.051300,1032.273437);
		SetVehicleZAngle(cartype,89.0369);}
		else
		{SetPlayerPos(playerid,-1401.829956,107.051300,1032.273437);}
		return 1;}
		
	if(strcmp(cmdtext, "/dirt", true) == 0){
		SetPlayerInterior(playerid, 4);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-1444.645507,-664.526000,1053.572998);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-1444.645507,-664.526000,1053.572998);
		SetVehicleZAngle(cartype,89.0369);}
		else
		{SetPlayerPos(playerid,-1444.645507,-664.526000,1053.572998);}
		return 1;}
		
	if(strcmp(cmdtext, "/8track", true) == 0){
		SetPlayerInterior(playerid, 7);
		{if(State!=PLAYER_STATE_DRIVER)
		{SetPlayerPos(playerid,-1399.5842,-179.1406,1043.3279);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-1399.5842,-179.1406,1043.3279);
		SetVehicleZAngle(cartype,186.2724);}
		else
		{SetPlayerPos(playerid,-1399.5842,-179.1406,1043.3279);}
		return 1;}
		
	//------------ FLIP Command ------------
	if (strcmp(cmdtext, "/flip", true)==0)
	{
	new VehicleID, Float:X, Float:Y, Float:Z;
 		GetPlayerPos(playerid, X, Y, Z);
 		VehicleID = GetPlayerVehicleID(playerid);
 		SetVehiclePos(VehicleID, X, Y, Z);
 		SetVehicleZAngle(VehicleID, 0);
  	return 1;
	}
	//------------ Healme -----------
    if (strcmp("/healme", cmdtext, true, 10) == 0)
	{   SetPlayerHealth(playerid, 100);
		return 1;
	}
	//------------ Kill -------------
	if (strcmp("/kill", cmdtext, true, 5) == 0)
	{   SetPlayerHealth(playerid, 0);
		return 1;
	}
	//--------- HELP --------
	if (strcmp("/help", cmdtext, true, 5) == 0)
	{   SendClientMessage(playerid, COLOR_YELLOW, "Welcome to Night Impact Private Server!");
	    SendClientMessage(playerid, COLOR_YELLOW, "Please read /cmds,/teles and /rules if your new to the server");
	    return 1;
	}
	
	//------------ Parachute ------------
	if(strcmp(cmdtext, "/parachute", true) == 0)
	{
	GivePlayerWeapon(playerid, 46, 1);
	SendClientMessage(playerid, 0x00BFFFFF, "Check this out... you got a parachute!");
	return 1;}


	//------------ Teles -----------
	if (strcmp(cmdtext, "/teles", true)==0)
	{
	ShowPlayerDialog(playerid, 10005, DIALOG_STYLE_MSGBOX, "Server Teleports:", "/drift1, /drift2, /drift3\n/steerlock1, /steerlock2, /steerlock3, /steerlock4\n/lsap, /lvap, /sfap, /aa\n/ls, /lv, /sf\n/chilliad, /bayside, /libertycity, /battlefield\n/tune, /tune1, /tune2, /tune3\n/beach, /home\n/bloodbowl, /kickstart, /stadium, /dirt, /8track", "Okay", "Cancel");
		return 1;
	}
	//------------ Cmds ----------
 	if (strcmp(cmdtext, "/cmds", true)==0)
	{
	ShowPlayerDialog(playerid, 10410, DIALOG_STYLE_MSGBOX, "Server Commands:", "/healme, /armor, /t 0-23, /w 0-40, /afk, /brb, /back\n /s, /r, /viplist, /linkcar, /richlist\n /car, /godcar, /god, /flip\n /admins, /rules, /teles, /goto\n /parachute, /tagcolor, /tcar (1-10)\n /credits, /help, /lockcar, /unlockcar\n /saveskin, /useskin, /dontuseskin", "Okay", "Cancel");
	    return 1;
	 }
	//------------ Credits -----------
	if (strcmp(cmdtext, "/credits", true)==0)
	{
	ShowPlayerDialog(playerid, 10410, DIALOG_STYLE_MSGBOX, "Server Credits:", "Server Owner: w00tEpicz\n\nServer Scripter: Mexix amd w00tEpicz\n\nLux Admin Modded By Mexix and w00tEpicz.", "Okay", "Cancel");
	    return 1;}
	    
	//------------ Armour -------------
	if (strcmp("/armor", cmdtext, true, 10) == 0)
	{
		SetPlayerArmour(playerid, 100);
  		SendClientMessage(playerid, COLOR_GREEN, "You have given yourself full Armor.");
		return 1;
	}
	
	//------------ Save/Load Position -------------
	
 	if(!strcmp("/s", cmdtext, true))
	{
        if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_GREEN, "You can't use this command while on class selection");
        else
        {
		new Float:x,Float:y,Float:z;
        GetPlayerPos(playerid,x,y,z);
        SetPVarFloat(playerid,"X",x);
        SetPVarFloat(playerid,"Y",y);
        SetPVarFloat(playerid,"Z",z);
        SendClientMessage(playerid,COLOR_GREEN, "Server:You have saved your position, if you want to load your position, use {FFFF00}/r");
        PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
		if(Posaved[playerid] == 0)
        {
		    Posaved[playerid] = 1;
		}
		}
		return 1;
	}

	if(!strcmp("/r", cmdtext, true))
	{
        if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_GREEN, "You can't use this command while on class selection");
        else
        {
		if(Posaved[playerid] == 1)
  {
		    SetPlayerPos(playerid, GetPVarFloat(playerid,"X"), GetPVarFloat(playerid,"Y"), GetPVarFloat(playerid,"Z"));
		    SendClientMessage(playerid,COLOR_GREEN, "Server:You have loaded your position");
            PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
		}
        else SendClientMessage(playerid,COLOR_LIGHTRED, "[ERROR]:You ont Have Loaded Position Yet, Try {33CCCC}/s");
		}
		return 1;
	}

Any help will be totally appreciated
Reply
#2

Thats not error, these are warnings
Reply
#3

check ur code carefully for a missing or an additional Brackets
Reply
#4

Quote:
Originally Posted by RyanPetersons
Посмотреть сообщение
Thats not error, these are warnings
So? They are just as important. There are only three warnings you can ignore (relatively) safely: symbol is never used (203), symbol is assigned a value that is never used (204) and loose indentation (217).


But seriously, who the hell can read that code? On one particular command I count 5 opening brackets but only 4 closing brackets. Proper indentation would make these mistakes clearly visible.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)