PHP Code:
public resultsOfVote(tid){
gbVote=false;
new giVotesOn=count(VOTE_ON);
new giVotesOff=count(VOTE_OFF);
ColorChat(0,GREEN, "[FreeRun]^x01 %L %L(%d) vs %L(%d)",LANG_SERVER,"FREERUN_RESULTS",LANG_SERVER,"YES",giVotesOn,LANG_SERVER,"NO", giVotesOff);
if( giVotesOn == giVotesOff ){
ColorChat(0,GREEN, "[FreeRun]^x01 %L",LANG_SERVER,"FREERUN_TIE");
return;
}
makeFreeRun((giVotesOn > giVotesOff));
ColorChat(0,GREEN, "[FreeRun]^x01 %L ^x03%L",LANG_SERVER,"FREERUN_WINOPTION",LANG_SERVER, gbFreeRun?"YES":"NO");
}
makeFreeRun(bool:bFR=true){
gbFreeRun=bFR;
reset();
giRounds=0;
giTime=get_systime();
if(gbFreeRun){
set_hudmessage(0, 255, 255, 0.02, -1.0);
show_hudmessage(0, "FreeRun!");
if (is_user_alive( tid ) && cs_get_user_team( tid ) == CS_TEAM_T )
{
new iPlayers[ 32 ], iNum;
get_players( iPlayers, iNum, "ae", "CT" );
for( new i = 0; i < iNum; i++ )
{
StripWeapons( iPlayers[ i ] );
}
}
}
}
Now "tid" undefined symbol....