PTP Vice President function!
#6

Quote:
Originally Posted by admigo
Посмотреть сообщение
Can you give code because i am beginner. I dont know anything about loops:S
This isn't the request section.

pawn Код:
stock GetViceID()
{
     new ID = -1;
     for(new i; i < MAX_PLAYERS; i++) //Foreach (Y)
     {
          if(IsPlayerConnected(i) && IsVice[i]) ID = i; break;
     }
     if(ID != -1) return ID;
     else printf("No vice id found.");
}
Reply


Messages In This Thread
PTP Vice President function! - by Admigo - 15.04.2011, 10:07
Re: PTP Vice President function! - by Kyle - 15.04.2011, 10:10
Re: PTP Vice President function! - by Admigo - 15.04.2011, 10:11
Re: PTP Vice President function! - by Kyle - 15.04.2011, 10:22
Re: PTP Vice President function! - by Admigo - 15.04.2011, 10:24
Re: PTP Vice President function! - by Cameltoe - 15.04.2011, 10:27
Re: PTP Vice President function! - by Admigo - 15.04.2011, 10:31
Re: PTP Vice President function! - by Cameltoe - 15.04.2011, 10:32
Re: PTP Vice President function! - by Admigo - 15.04.2011, 10:35
Re: PTP Vice President function! - by Cameltoe - 15.04.2011, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)