25.03.2014, 15:31
u can use like this --
not tried it yet but this may work
pawn Код:
new totalclass=0;
if(PlayerInfo[playerid][soldier] != "")totalclass++;
if(PlayerInfo[playerid][sniper] != "")totalclass++;
if(PlayerInfo[playerid][assault] != "")totalclass++;
/*so now in totalcalss variable the total number of calsses are loaded*/