Raised This Month: $ Target: $400
 0% 

Getting there, sort of


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 04-30-2004 , 06:05  
Reply With Quote #2

Code:
read_data(1,team,1) if (team[0]=='C')      ct_score = read_data(2) else if (team[0]=='T')      terrorist_score = read_data(2) return PLUGIN_CONTINUE }

1) he reads 1 byte from parameter 1 of the message. Param1 is the team: CT or T probably
2) he compares the read byte to C and T. If it is C, he assigns the param2 (that is the score) to CT score global variable, if it is T, he assigns the param2 to the T score global variable.

read_data with one parameter reads the msg param as an int, with 3 parameters it reads the msg param as a string...
__________________
hello, i am pm
PM 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 14:58.


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