[Ajuda] com CODE
#3

Sуh pra minimizar um pouco:

pawn Код:
if(GetPlayerWantedLevel(killerid) < 6)
{
    SetPlayerWantedLevel(killerid, (GetPlayerWantedLevel(killerid)+1));
}
Subistituindo:
pawn Код:
if(GetPlayerWantedLevel(killerid) == 0){SetPlayerWantedLevel(killerid, 1);}
else if(GetPlayerWantedLevel(killerid) == 1){SetPlayerWantedLevel(killerid, 2);}
else if(GetPlayerWantedLevel(killerid) == 2){SetPlayerWantedLevel(killerid, 3);}
else if(GetPlayerWantedLevel(killerid) == 3){SetPlayerWantedLevel(killerid, 4);}
else if(GetPlayerWantedLevel(killerid) == 4){SetPlayerWantedLevel(killerid, 5);}
else if(GetPlayerWantedLevel(killerid) == 5){SetPlayerWantedLevel(killerid, 6);}
}
й a mesma coisa sу q fica mais limpo.
Reply


Messages In This Thread
[Ajuda] com CODE - by [GET]Vidaloka - 15.01.2011, 01:58
Re: [Ajuda] com CODE - by [FeK]Knife - 15.01.2011, 02:17
Re: [Ajuda] com CODE - by vinewood - 15.01.2011, 02:33
Re: [Ajuda] com CODE - by [GET]Vidaloka - 15.01.2011, 03:52

Forum Jump:


Users browsing this thread: 1 Guest(s)