Raised This Month: $ Target: $400
 0% 

read_data(...)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Evaldas
Member
Join Date: Jul 2005
Location: Lithuania
Old 01-07-2006 , 11:32   read_data(...)
Reply With Quote #1

Code:
public check_shield(id)     {     new user = read_data(0);     new shield_status = read_data(1);         if (shield_status == 64)         {         client_print(user, print_center, "maxspeed 125, gravity 1.5")         set_user_maxspeed(user, 125.0)         set_user_gravity(user, 1.5)     }     else if (shield_status == 0)         {         client_print(user, print_center, "maxspeed 250, gravity 1.0")         set_user_maxspeed(user, 250.0)         set_user_gravity(user, 1.25)     }     else     {         return PLUGIN_CONTINUE     } }

How do programer know, that read_data(1) == 64 is shield. I mean, is there any manual or something where I could read about ?
__________________
Evaldas 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 16:07.


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