Is that right?
#1

Код:
stock EventPicked()
{
    for(new i = 0;i < sizeof(EventVoteType); i++)
	{
    	if(i != (sizeof(EventVoteType) - 1))
    	{
        	if(EventVoteType[compareWithNext] < EventVoteType[i+1])
        	{
            	compareWithNext = i+1;
        	}
    	}
	}
	return EventVoteType[compareWithNext];
}
Am I using this code right - like this?

Код:
if(EventPicked() == EventVoteType[0])
		{
                         //yadayada
		}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)