Raised This Month: $ Target: $400
 0% 

help w/ plugin .


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
buklaokid
Member
Join Date: Jun 2008
Old 08-20-2010 , 22:16   help w/ plugin .
Reply With Quote #1

PHP Code:
copyBlock(ent)
{
    
//if entity is valid
    
if (is_valid_ent(ent))
    {
        new 
Float:vOrigin[3];
        new 
Float:vAngles[3];
        new 
Float:vSizeMin[3];
        new 
Float:vSizeMax[3];
        new 
Float:fMax;
        new 
blockType;
        new 
size;
        new 
axis;
        new 
szCreator[32];

        
get_user_name(idszCreator31);
        
replace_all(szCreator31" ""_");
        
        
//get blocktype and origin of currently grabbed block
        
blockType entity_get_int(entEV_INT_body);
        
entity_get_vector(entEV_VEC_originvOrigin);
        
entity_get_vector(entEV_VEC_anglesvAngles);
        
entity_get_vector(entEV_VEC_minsvSizeMin);
        
entity_get_vector(entEV_VEC_maxsvSizeMax);
        
        
//work out the block size
        
size SMALL;
        
fMax vSizeMax[0] + vSizeMax[1] + vSizeMax[2];
        if (
fMax 64.0size NORMAL;
        if (
fMax 128.0size LARGE;
        
        
//work out the axis orientation
        
for (new 03; ++i)
        {
            if (
vSizeMax[i] == 4.0)
            {
                
axis i;
                break;
            }
        }
        
        
//create a block of the same type in the same location
        
return createBlock(0blockTypevOriginaxissizeszCreator);
    }
    
    return 
0;

All the errors are on the same line.

Quote:
error 017: undefined symbol "id"
warning 215: expression has no effect.
warning 215: expression has no effect.
error 001 token: ';" but found ">"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Last edited by buklaokid; 08-20-2010 at 22:25.
buklaokid 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 21:54.


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