PDA

View Full Version : CMD??


N0FeaR
08/06/2012, 01:48 PM
Problem

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


CMD

}
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;

FalconX
08/06/2012, 01:50 PM
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