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=189710)

cstrike37 07-10-2012 05:22

tag mismatch
 
how do i fix this?
Code:


/tmp/textB9TCOn.sma(24) : warning 213: tag mismatch

Code:

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
   
    RegisterHam(Ham_Spawn, "player", "FwdHamPlayerSpawn", 1)
}

public FwdHamPlayerSpawn(id)
{
        new model[32]
        cs_get_user_model(id, model, charsmax(model))
        if (equal(model, "sas"))
        set_user_health(id, 120)
        set_user_maxspeed(id, 400)
        return HAM_IGNORED 
}

thanks

HLM 07-10-2012 05:25

Re: tag mismatch
 
Float: set_user_maxspeed ( index, [ Float:speed = - 1.0 ] )

PHP Code:

    set_user_maxspeed(id400.0

whenever I run into a tag mismatch, I look the function up and make sure all of my variables (if any) are set properly

http://www.amxmodx.org/funcwiki.php?go=func&id=123

cstrike37 07-10-2012 05:32

Re: tag mismatch
 
alright thanks alot :)
fixed it now


All times are GMT -4. The time now is 15:21.

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