Raised This Month: $ Target: $400
 0% 

Little question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 08-25-2005 , 10:57   Little question
Reply With Quote #1

What is the meaning of this?

Code:
/home/groups/amxmodx/tmp/phptYeMJV.sma(48) : warning 213: tag mismatch
/home/groups/amxmodx/tmp/phptYeMJV.sma(52) : warning 213: tag mismatch
/home/groups/amxmodx/tmp/phptYeMJV.sma(63) : warning 213: tag mismatch

3 Warnings.
__________________
hello, i am pm
PM is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-25-2005 , 11:06  
Reply With Quote #2

Code? ...
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 08-25-2005 , 11:17  
Reply With Quote #3

Its a plugin i am making just for some fun and im trying to learn it

Code:
#include <amxmodx> #include <fun> #include <cstrike> #include <amxmisc> new PLUGIN[]="PGravity" new AUTHOR[]="B0oGeYm4n" new VERSION[]="1.00" public plugin_init() {      register_plugin(PLUGIN, VERSION, AUTHOR)      register_concmd("amx_pgravity", "cmd_pgrav", ADMIN_SLAY, "<target> <gravity>") } public cmd_hp(id, level, cid) {      if (!cmd_access(id, level, cid, 3))         return PLUGIN_HANDLED      new Arg1[24]      new Arg2[4]            read_argv(1, Arg1, 23)      read_argv(2, Arg2, 3)            new Gravity = str_to_num(Arg2)            if (Arg1[0] == '@')      {           new Team = 0           if (equali(Arg1[1], "CT"))           {                Team = 2           } else if (equali(Arg1[1], "T")) {                Team = 1           }           new players[32], num           get_players(players, num)           new i           for (i=0; i<num; i++)           {                if (!Team)                {                     set_user_gravity(players[i], Gravity)                } else {                     if (get_user_team(players[i]) == Team)                     {                          set_user_gravity(players[i], Gravity)                     }                }           }      } else {           new player = cmd_target(id, Arg1, 1)           if (!player)           {                console_print(id, "The player could not be found", Arg1)                return PLUGIN_HANDLED           } else {                set_user_gravity(player, Gravity)           }      }      return PLUGIN_HANDLED }
__________________
hello, i am pm
PM is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 08-25-2005 , 11:37  
Reply With Quote #4

It means that it's expecting one type of variable and you pass it a different type. In your case, you're passing an integer (as the gravity) instead of a float.

Instead of:
Code:
new Gravity = str_to_num(Arg2)
Use this:
Code:
new Gravity = floatstr(Arg2)
Brad is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-25-2005 , 12:13  
Reply With Quote #5

Code:
new Float:Gravity = floatstr(Arg2)
*
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 08-25-2005 , 14:14  
Reply With Quote #6

<head hung in shame>

Yeah, what v3x said.
Brad is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-25-2005 , 14:57  
Reply With Quote #7

also
Code:
     register_concmd("amx_pgravity", "cmd_pgrav", ADMIN_SLAY, "<target> <gravity>") } public cmd_hp(id, level, cid)

should be

Code:
     register_concmd("amx_pgravity", "cmd_pgrav", ADMIN_SLAY, "<target> <gravity>") } public cmd_pgrav(id, level, cid)
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 08-26-2005 , 03:30  
Reply With Quote #8

Tnx guys
__________________
hello, i am pm
PM 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 14:20.


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