AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Tag mismatch (https://forums.alliedmods.net/showthread.php?t=20014)

Sir-LaggAlot 10-30-2005 13:49

Tag mismatch
 
How do i get rid of tag mismatch for this plugin?
Code:
public fade_kd() {     new temp[6]     read_argv(1,temp,5)     new id = str_to_num(temp)     if(gHasJumps[id] > 0 || gHasJumps[id] < 0) {         new origVel[3],newVel[3]         get_user_velocity(id,origVel)         new fadeUp = 0         if(vel3DMagnitude(origVel[0],origVel[1],0) < 100) fadeUp = get_cvar_num("fade_jump")         newVel[0] = origVel[0] / 2 * get_cvar_num("fade_speed")         newVel[1] = origVel[0] / 2 * get_cvar_num("fade_speed")         newVel[2] = get_cvar_num("fade_speed") * (100 + fadeUp)         set_user_velocity(id,newVel)         emit_sound(id,4,"shmod/fade_blink.wav",1.0,0.8,0,100)         if(gHasJumps[id] > 0) --gHasJumps[id]     } }

SSJ2GOKU 10-30-2005 13:51

i could check it but i need more code for solving the prob

Sir-LaggAlot 10-30-2005 13:53

1 Attachment(s)
here

SSJ2GOKU 10-30-2005 13:59

can you give me the superheromod include also ?

Sir-LaggAlot 10-30-2005 14:03

1 Attachment(s)
Right here bro :wink:

SSJ2GOKU 10-30-2005 14:07

k i fixed the tag mismatches you had, but it returned me 3 other mismatches :oops:

ill take a further look

btw heres the fix, you forgot the "Float:"

Code:
    if(gHasJumps[id] > 0 || gHasJumps[id] < 0) {         new Float:origVel[3]         new Float:newVel[3]         get_user_velocity(id,origVel)

Hawk552 10-30-2005 14:11

You shouldn't be asking for help with an AMX script. Ask at the AMX site.

SSJ2GOKU 10-30-2005 14:12

no wonder it gives meh errors from the includes :lol:

Sir-LaggAlot 10-30-2005 14:20

so... can u still help me? :D

SSJ2GOKU 10-30-2005 14:24

sry i cant find the mismatch after i fixed it

something in your if construction that fails (i dont find it :cry: )
Code:
if(vel3DMagnitude(origVel[0],origVel[1],0) < 100) fadeUp = get_cvar_num("fade_jump")


All times are GMT -4. The time now is 23:43.

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