11.06.2018, 23:47
I've looked at the code, it seems well organized, but one thing:
Why do you have so many if statments built like this? And not like this:
Код:
if (PRESSED(KEY_WALK)) { if (pInfo[playerid][pTeam] == TEAM_ZOMBIE) { if (pInfo[playerid][pClass] == MUTATEDZOMBIE) { } } }
Код:
if (PRESSED(KEY_WALK) && pInfo[playerid][pTeam] == TEAM_ZOMBIE && pInfo[playerid][pClass] == MUTATEDZOMBIE) { }