Raised This Month: $ Target: $400
 0% 

Wierd respawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Elusive138
Senior Member
Join Date: Dec 2010
Old 01-05-2011 , 13:00   Re: Wierd respawn
Reply With Quote #5

Quote:
Originally Posted by Len View Post
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_RoundRespawnid)
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(idCS_TEAM_CT
was taken out... I'm too tired to think about why

Last edited by Elusive138; 01-05-2011 at 13:17.
Elusive138 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode