03.09.2016, 21:11
Quote:
Just nooo, don't use else if. Use switch().
You could do something like: Код:
switch() { case 10..13: return true; case 20..28: return true; case default: return false; } Код:
Skins[311] = {1, 1, 0, 0, 1, 1, ...}; IsPlayerMale(playerid) { if(Skins[GetPlayerSkin(playerid)] == 0) return 1; return 0; } IsPlayerFemale(playerid) { if(Skins[GetPlayerSkin(playerid)] == 1) return 1; return 0; } |