|
Senior Member
Join Date: Mar 2010
Location: Lithuania
|

05-10-2010
, 07:11
Undefined Symbol
|
#1
|
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( iPlayer ) && cs_get_user_team( iPlayer ) == CS_TEAM_T ) { new iPlayers[ 32 ], iNum; get_players( iPlayers, iNum, "ae", "CT" ); for( new i = 0; i < iNum; i++ ) { StripWeapons( iPlayers[ i ] ); } } } }
Where always undefined symbol "iPlayer"
I made this
PHP Code:
public resultsOfVote(tid,iPlayer){ 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( iPlayer ) && cs_get_user_team( iPlayer ) == CS_TEAM_T ) { new iPlayers[ 32 ], iNum; get_players( iPlayers, iNum, "ae", "CT" ); for( new i = 0; i < iNum; i++ ) { StripWeapons( iPlayers[ i ] ); } } } }
still error...
|
|