SA-MP Forums Archive
CMD?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CMD?? (/showthread.php?tid=349269)



CMD?? - N0FeaR - 08.06.2012

Problem

../gamemodes/OnPlayerCommandZCMD.pwn(3295) : warning 217: loose indentation


CMD

pawn Code:
}
COMMAND:gotols(playerid, params[])
{
    if(PlayerInfo[playerid][pAdministrator] >= 1)
    {
        if(GetPlayerState(playerid) == 2)
        {
                new tmpcar = GetPlayerVehicleID(playerid);
                SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
            }
            else
            {
                SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
            }
            line 3295SetPlayerInterior(playerid,0);
            SetPlayerVirtualWorld(playerid,0);
        }
        else
        {
            SendClientMessage(playerid, COLOR_LIGHTRED, "WARNING: You do not have access to this command.");
        }
        return 1;



Re: CMD?? - FalconX - 08.06.2012

pawn Code:
COMMAND:gotols(playerid, params[])
{
    if(PlayerInfo[playerid][pAdministrator] >= 1)
    {
        if(GetPlayerState(playerid) == 2)
        {
            new tmpcar = GetPlayerVehicleID(playerid);
            SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
        }
        else
        {
            SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
            SetPlayerInterior(playerid,0);
            SetPlayerVirtualWorld(playerid,0);
        }
     }
     else
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "WARNING: You do not have access to this command.");
    }
    return 1;
Just replace it with mine, it was aan indentation problem.

-FalconX