saving +rep
#2

Use 'char' in array (i.e. new string[128 char]).
Reorders your code, i.e. use less bracket. Change:
pawn Код:
for(new i = 0; i != MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(playerid))
    {
        if(Player_Info[playerid][pHouse] == 1)
        {
             Player_Info[playerid][pHouse] = 0;
         }
     }    
}
with:
pawn Код:
for(new i = 0; i != MAX_PLAYERS; i++)
    if(IsPlayerConnected(playerid) && Player_Info[playerid][pHouse] == 1)
        Player_Info[playerid][pHouse] = 0;
Read tutorials about improving your code
Reply


Messages In This Thread
saving +rep - by iBots - 16.04.2015, 17:06
Re: saving +rep - by J4Rr3x - 16.04.2015, 17:45
Re: saving +rep - by Evocator - 16.04.2015, 19:54

Forum Jump:


Users browsing this thread: 1 Guest(s)