Raised This Month: $51 Target: $400
 12% 

[REQ] Finish the part of the code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BunnYboiii
Senior Member
Join Date: Jul 2011
Old 08-17-2011 , 08:27   [REQ] Finish the part of the code
Reply With Quote #1

Line 4284: error 017: undefinded symbol "id"

Line 4284: error 215: expression has no effect

Line 4284: error 215 expression has no effect

Line 4284: error 001: expected token: ";", but found ">"

Line 4284: fatal error 107: too many error message on one line.


PHP Code:
get_user_name(idszCreator31); 
PHP Code:
new szCreator[32];
get_user_name(idszCreator31);
replace_all(szCreator31" ""_"); 
I got to fix this.

Please, dont trash this because this is a huge problem for me. Ive tried with

#define id and #define szCreator, not working.
BunnYboiii is offline
Aykay
Senior Member
Join Date: Jul 2009
Location: Australia
Old 08-17-2011 , 08:43   Re: [REQ] Finish the part of the code
Reply With Quote #2

post the whole plugin or function
__________________

Aykay is offline
Send a message via MSN to Aykay
BunnYboiii
Senior Member
Join Date: Jul 2011
Old 08-17-2011 , 08:50   Re: [REQ] Finish the part of the code
Reply With Quote #3

PHP Code:
public client_PreThink(id)
{
    
//make sure player is connected
    
if (is_user_connected(id))
    {
        
//display type of block that player is aiming at
        
new entbody;
        
get_user_aiming(identbody320);
        
        if (
isBlock(ent) && (pev(idpev_button) & IN_USE && !(pev(idpev_oldbuttons) & IN_USE) ))
        {
            new 
blockType entity_get_int(entEV_INT_body);

            new 
szCreator[32];
            
pev(entpev_targetnameszCreator31);
            
replace_all(szCreator31"_"" ");
            
            
set_hudmessage(0255255g_text_xg_text_yg_hud_effectsg_hud_fx_time3.0g_hud_fade_in_timeg_hud_fade_out_timeg_hud_channel);
            
show_hudmessage(id"[Brutality-Gaming]^n Block: %s^nCreator: %s"g_block_names[blockType], szCreator);
        } 
PHP Code:
/***** BLOCKS *****/
createBlockAiming(const id, const blockType)
{
    if (
get_user_flags(id) & BM_ADMIN_LEVEL)
    {
        new 
origin[3];
        new 
Float:vOrigin[3];
        new 
szCreator[32];
        
        
get_user_name(idszCreator31);
        
replace_all(szCreator31" ""_");
        
        
get_user_origin(idorigin3);
        
IVecFVec(originvOrigin);
        
vOrigin[2] += g_block_size_max_z[2];
        
        
createBlock(idblockTypevOriginZg_block_size[id], szCreator);
    }

PHP Code:
createBlock(const id, const blockTypeFloat:vOrigin[3], const axis, const sizeszCreator[] = "Unknown"
PHP Code:
//set creator
        
set_pev(entpev_targetnameszCreator31); 
PHP Code:
new szCreator[32];
get_user_name(idszCreator31);
replace_all(szCreator31" ""_");

newBlock convertBlock(identconvertTofalseszCreator); 
PHP Code:
convertBlock(ident, const convertTo, const bool:bPreserveSizeszCreator[] = "Unknown"
PHP Code:
if (bPreserveSize)
        {
            new 
size SMALL;
            new 
Float:fMax vSizeMax[0] + vSizeMax[1] + vSizeMax[2];
            if (
fMax 36.0size POLE;
            if (
fMax 64.0size NORMAL;
            if (
fMax 128.0size LARGE;
            
            return 
createBlock(idconvertTovOriginaxissizeszCreator);
        }
        else
        {
            return 
createBlock(idconvertTovOriginaxisg_block_size[id], szCreator);
        }
    }
    
    return 
ent;

PHP Code:
copyBlock(ent)
{
    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" ""_"); 
PHP Code:
return createBlock(0blockTypevOriginaxissizeszCreator); 
PHP Code:
new szCreator[32];
            
            while (!
feof(f))
            {
                
szType "";
                
fgets(fszData128);
                
parse(szDataszType1sz116sz216sz316sz416sz516sz616sz716szCreator31); 
[php]case 'A': createBlock(0, BM_PLATFORM, vVec1, axis, size, szCreator);
PHP Code:
case 'B'createBlock(0BM_BHOP,        vVec1axissizeszCreator);
                        case 
'C'createBlock(0BM_DAMAGE,        vVec1axissizeszCreator);
                        case 
'D'createBlock(0BM_HEALER,        vVec1axissizeszCreator);
                        case 
'E'createBlock(0BM_INVINCIBILITYvVec1axissizeszCreator);
                        case 
'F'createBlock(0BM_STEALTH,        vVec1axissizeszCreator);
                        case 
'G'createBlock(0BM_TRAMPOLINE,    vVec1axissizeszCreator);
                        case 
'H'createBlock(0BM_SPEEDBOOST,    vVec1axissizeszCreator);
                        case 
'I'createBlock(0BM_NOFALLDAMAGE,  vVec1axissizeszCreator);
                        case 
'J'createBlock(0BM_ICE,        vVec1axissizeszCreator);
                        case 
'K'createBlock(0BM_DEATH,        vVec1axissizeszCreator);
                        case 
'L'createBlock(0BM_NUKE,        vVec1axissizeszCreator);
                        case 
'M'createBlock(0BM_CAMOUFLAGE,    vVec1axissizeszCreator);
                        case 
'N'createBlock(0BM_LOWGRAVITY,    vVec1axissizeszCreator);
                        case 
'O'createBlock(0BM_FIRE,        vVec1axissizeszCreator);
                        case 
'P'createBlock(0BM_SLAP,        vVec1axissizeszCreator);
                        case 
'Q'createBlock(0BM_RANDOM,       vVec1axissizeszCreator);
                        case 
'R'createBlock(0BM_HONEY,        vVec1axissizeszCreator);
                        case 
'S'createBlock(0BM_BARRIER_CT,    vVec1axissizeszCreator);
                        case 
'T'createBlock(0BM_BARRIER_T,     vVec1axissizeszCreator);
                        case 
'U'createBlock(0BM_BOOTSOFSPEED,  vVec1axissizeszCreator);
                        case 
'V'createBlock(0BM_GLASS,        vVec1axissizeszCreator);
                        case 
'W'createBlock(0BM_BHOP_NOSLOW,   vVec1axissizeszCreator);
                        case 
'X'createBlock(0BM_AUTO_BHOP,     vVec1axissizeszCreator);
                        case 
'Y'createBlock(0BM_DEAGLE,        vVec1axissizeszCreator);
                        case 
'Z'createBlock(0BM_NONADMIN,        vVec1axissizeszCreator);
                        case 
'1'createBlock(0BM_AWP,        vVec1axissizeszCreator);
                        case 
'2'createBlock(0BM_DELAYED,        vVec1axissizeszCreator);
                        case 
'3'createBlock(0BM_XP,        vVec1axissizeszCreator);
                        case 
'4'createBlock(0BM_MONEY,        vVec1axissizeszCreator);
                        case 
'5'createBlock(0BM_HIGHTRAMPOLINEvVec1axissizeszCreator);
                        case 
'6'createBlock(0BM_LOWTRAMPOLINEvVec1axissizeszCreator); 

Last edited by BunnYboiii; 08-17-2011 at 08:53.
BunnYboiii is offline
Reply



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 06:38.


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