stock CountLockers()
{
new Lcount;
for(new x=1; x < MAX_LOCKERS_POINT;x++)
{
new path[100];
for(new lockerid = 1; lockerid < MAX_LOCKERS_POINT; lockerid++)
{
format(path,sizeof(path),"/Factions/Locker%d.ini", lockerid);
if(fexist(path))
{
LockersPointCreated[lockerid] = 1;
return 1;
}
else
{
LockersPointCreated[lockerid] = 0;
return 1;
}
}
}
return Lcount;
}
return Lcount;
stock CountLockers() {
new Lcount;
for(new x=1; x < MAX_LOCKERS_POINT;x++) {
new path[100];
for(new lockerid = 1; lockerid < MAX_LOCKERS_POINT; lockerid++) {
format(path,sizeof(path),"/Factions/Locker%d.ini", lockerid);
if(fexist(path)) {
LockersPointCreated[lockerid] = 1;
return 1;
} else {
LockersPointCreated[lockerid] = 0;
return 1;
}
}
}
return Lcount;
}
stock CountLockers()
{
new Lcount;
for(new x=1; x < MAX_LOCKERS_POINT;x++)
{
new path[100];
for(new lockerid = 1; lockerid < MAX_LOCKERS_POINT; lockerid++)
{
format(path,sizeof(path),"/Factions/Locker%d.ini", lockerid);
if(fexist(path))
{
LockersPointCreated[lockerid] = 1;
return 1;
}
else
{
LockersPointCreated[lockerid] = 0;
return 1;
}
}
}
return Lcount;
}
|
Код:
stock CountLockers() {
new Lcount;
for(new x=1; x < MAX_LOCKERS_POINT;x++) {
new path[100];
for(new lockerid = 1; lockerid < MAX_LOCKERS_POINT; lockerid++) {
format(path,sizeof(path),"/Factions/Locker%d.ini", lockerid);
if(fexist(path)) {
LockersPointCreated[lockerid] = 1;
return 1;
} else {
LockersPointCreated[lockerid] = 0;
return 1;
}
}
}
return Lcount;
}
also, if you are bad with indentation, use #pragma tabsize 0, even if it's not recommended |
|
this is how it should look like
also, if you are bad with indentation, use #pragma tabsize 0, even if it's not recommended |
|
Don't EVER do this! And Seven_of_Nine, telling people to do it is by definition recommending it!
|
|
Use it instead :
http://dracoblue.net/tidy/pawn/ |
|
I've never even use #pragma tabsize 0, just wondered why it isnt recommended.
|
#pragma tabsize 0
|
Use it instead :
http://dracoblue.net/tidy/pawn/ |