23.11.2010, 14:01
I dont want that, its too long for me
is there a way to shorten this code for example
only these 2 lines
pawn Code:
public blablabla
{
if(something == 999)
{
if(!IsPlayerInArea(...))
{
//code
}else{
//code
}
}else{
if(!IsPlayerInCube(...))
{
//code
}else{
//code
}
}
return 1;
}
pawn Code:
public blablabla
{
if(something == 999 && !IsPlayerInArea(...))
else if(!IsPlayerInCube(...))
{
//code
}else{
//code
}
return 1;
}
pawn Code:
if(something == 999 && !IsPlayerInArea(...))
else if(!IsPlayerInCube(...))