22.03.2012, 10:55
i have a very long Gamemode. can anybody give me tips to reduce the size and make it more beautiful for reading
thnxx 4 de helpp!!
thnxx 4 de helpp!!
if(TestVariable[playerid][Testing] == 1)
{
if(IsPlayerConnected(playerid))
{
//codes
}
}
else
{
//codes
}
if(TestVariable[playerid][Testing] == 1) {
if(IsPlayerConnected(playerd)) {
//codes
}
} else {
//codes
}
switch(MyVar)
{
case 1:
{
//Action
}
case 2:
{
//Action
}
case 3:
{
//Action
}
}
switch(MyVar) { case 1: { /*Action*/ } case 2: { /*Action*/ } case 3: { /*Action*/ } }