AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Blockmaker Coding Problem (https://forums.alliedmods.net/showthread.php?t=92734)

Raymondddd 05-18-2009 22:30

Blockmaker Coding Problem
 
Hello! I was coding a block for a "DelayedBhop" Block and as i was compiling my final thing i got a bunch of errors i cant fix.

Code:

/home/groups/amxmodx/tmp3/textRXJAs3.sma(341) : error 001: expected token: "}", but found "-string-"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(475) : error 032: array index out of bounds (variable "gszBlockModels")
/home/groups/amxmodx/tmp3/textRXJAs3.sma(858) : error 017: undefined symbol "resetTimers"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(864) : error 017: undefined symbol "groupClear"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(918) : error 017: undefined symbol "taskSolidNot"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(923) : error 017: undefined symbol "taskSolidNot"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(932) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/textRXJAs3.sma(932) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/textRXJAs3.sma(932) : error 001: expected token: ";", but found "if"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(934) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/textRXJAs3.sma(941) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textRXJAs3.sma(944) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textRXJAs3.sma(944) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/textRXJAs3.sma(944) : error 004: function "server_frame" is not implemented
/home/groups/amxmodx/tmp3/textRXJAs3.sma(985) : error 017: undefined symbol "actionTeleport"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1001) : error 017: undefined symbol "actionTeleport"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1128) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1128) : error 004: function "client_PreThink" is not implemented
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1266) : error 017: undefined symbol "actionHeal"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1267) : error 017: undefined symbol "actionDamage"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1268) : error 017: undefined symbol "actionInvincible"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1269) : error 017: undefined symbol "actionStealth"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1270) : error 017: undefined symbol "actionTrampoline"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1271) : error 017: undefined symbol "actionSpeedBoost"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1272) : error 017: undefined symbol "actionDeath"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1273) : error 017: undefined symbol "actionNuke"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1274) : error 017: undefined symbol "actionLowGravity"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1275) : error 017: undefined symbol "actionCamouflage"
/home/groups/amxmodx/tmp3/textRXJAs3.sma(1276) : error 017: undefined symbol "actionFire"

Code:

    LINE 475
gszBlockModels[BM_DELAYEDBHOP] = gszBlockModelDelayedBhop;

Code:

LINE 858 TO 864 
  resetTimers(id);
}

public client_disconnect(id)
{
    //clear players group
    groupClear(id);

Code:

LINE 918 to 985
                            taskSolidNot(TASK_BHOPSOLIDNOT + ent);
                        }
                        else if (blockType == BM_BARRIER_T && team == CS_TEAM_CT)
                        {
                            //make block SOLID_NOT without any delay
                            taskSolidNot(TASK_BHOPSOLIDNOT + ent);
                        }
                        else if (blockType == BM_BHOP || blockType == BM_BHOP_NOSLOW)
                        {
                            //set bhop block to be SOLID_NOT after 0.1 seconds
                            set_task(0.1, "taskSolidNot", TASK_BHOPSOLIDNOT + ent);
                            {
                                //set bhop block to be SOLID_NOT after 3.0 seconds
                                set_task(3.0, "taskSolidNot", TASK_BHOPSOLIDNOT + ent);
                            }else if (blockType == BM_DELAYEDBHOP)
                               
                        }
                    }
                }
            }
        }
    }
   
    return PLUGIN_CONTINUE;
}

public server_frame()
{
    new ent;
    new Float:vOrigin[3];
    new bool:entNear = false;
    new tele;
    new entinsphere;
   
    //iterate through all players and remove slow down after jumping
    for (new i = 1; i <= 32; ++i)
    {
        if (is_user_alive(i))
        {
            if (gbOnIce[i] || gbNoSlowDown[i])
            {
                entity_set_float(i, EV_FL_fuser2, 0.0);
            }
        }
    }
   
    //find all teleport start entities in map and if a player is close to one, teleport the player
    while ((ent = find_ent_by_class(ent, gszTeleportStartClassname)))
    {
        new Float:vOrigin[3];
        entity_get_vector(ent, EV_VEC_origin, vOrigin);
       
        //teleport players and grenades within a sphere around the teleport start entity
        entinsphere = -1;
        while ((entinsphere = find_ent_in_sphere(entinsphere, vOrigin, 32.0)))
        {
            //get classname of entity
            new szClassname[32];
            entity_get_string(entinsphere, EV_SZ_classname, szClassname, 32);
           
            //if entity is a player
            if (entinsphere > 0 && entinsphere <= 32)
            {
                //only teleport player if they're alive
                if (is_user_alive(entinsphere))
                {
                    //teleport the player
                    actionTeleport(entinsphere, ent);

Code:

LINE 1001
                    actionTeleport(entinsphere, ent);

Code:

LINE 1128
 public client_PreThink(id)

Code:

LINE 1266 TO 1276

                        case BM_HEALER: actionHeal(id);
                        case BM_DAMAGE: actionDamage(id);
                        case BM_INVINCIBILITY: actionInvincible(id, false);
                        case BM_STEALTH: actionStealth(id, false);
                        case BM_TRAMPOLINE: actionTrampoline(id);
                        case BM_SPEEDBOOST: actionSpeedBoost(id);
                        case BM_DEATH: actionDeath(id);
                        case BM_NUKE: actionNuke(id, false);
                        case BM_LOWGRAVITY: actionLowGravity(id);
                        case BM_CAMOUFLAGE: actionCamouflage(id, false);
                        case BM_FIRE: actionFire(id, ent);

PLEASE HELP ME!!

micke1101 05-19-2009 04:06

Re: Blockmaker Coding Problem
 
Its easier if you attach the whole source code, those few lines dosent tell much.


All times are GMT -4. The time now is 01:27.

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