Help with Counting Strings
#2

u can use like this --
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*/
not tried it yet but this may work
Reply


Messages In This Thread
Help with Counting Strings - by Battlezone - 25.03.2014, 15:23
Re: Help with Counting Strings - by BroZeus - 25.03.2014, 15:31
Re: Help with Counting Strings - by Battlezone - 25.03.2014, 15:33
Re: Help with Counting Strings - by Konstantinos - 25.03.2014, 15:34
Re: Help with Counting Strings - by Battlezone - 25.03.2014, 15:36
Re: Help with Counting Strings - by BroZeus - 25.03.2014, 15:39
Re: Help with Counting Strings - by Battlezone - 25.03.2014, 15:41
Re: Help with Counting Strings - by newbienoob - 25.03.2014, 15:44
Re: Help with Counting Strings - by Konstantinos - 25.03.2014, 15:44
Re: Help with Counting Strings - by BroZeus - 25.03.2014, 15:45

Forum Jump:


Users browsing this thread: 2 Guest(s)