Quote:
Originally Posted by Len
im looking for a explanation drekes
edit: and does that make a custom function and what is the meaning of ;? I'm guessing it means PLUGIN_HANDLED?
|
; = end of line
Quote:
|
Originally Posted by http://www.compuphase.com/pawn/pawnfeatures.htm
In pawn, semicolons to end a line are optional. It is common practice to write no more than one instruction per line, but if one does, he or she must still use the semicolon to separate two instructions on a line.
|
PLUGIN_HANDLED is a return value (I think it was defined as 1).
Just from a quick look drekes has replaced your label with a function and your gotos with calling the function... but seems to have forgotten to add a return afterwards? Anyway, wouldn't it be easier to just replace the gotos with
PHP Code:
ExecuteHamB(Ham_CS_RoundRespawn, id)
return PLUGIN_HANDLED
It's a single line function with no other purpose, with what drekes did 
EDIT: Also, the spawn after
PHP Code:
else if (team_balance[0] > team_balance[1]) cs_set_user_team(id, CS_TEAM_CT)
was taken out... I'm too tired to think about why