public OnPlayerDisconnect(playerid, reason)
{
new n[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid,n,sizeof(n));
format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);
PInfo[playerid][Logged] = 0;
if(dini_Exists(file)) //error its here to the end
{
dini_IntSet(file,"Logged",0);
return 1;
}
return 1;
}
warning 217: loose indentation
public OnPlayerDisconnect(playerid, reason)
{
new n[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid,n,sizeof(n));
format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);
PInfo[playerid][Logged] = 0;
if(dini_Exists(file)) //error its here to the end
{
dini_IntSet(file,"Logged",0);
return 1;
}
return 1;
}
public Something(Another something)
{
if(IsPlayerConnected(Another something))
{
//Somehting
This will give loose indentation warning.
}
if(IsPlayerConnected(Another something))
{
//Something
This won't
}
return something;
}
public OnPlayerDisconnect(playerid, reason)
{
new n[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid,n,sizeof(n));
format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);
PInfo[playerid][Logged] = 0;
if(dini_Exists(file)) //error its here to the end
{
dini_IntSet(file,"Logged",0);
return 1;
}
return 1;
}
#pragma tabsize 0
|
or you could
Код:
#pragma tabsize 0 |