Raised This Month: $ Target: $400
 0% 

What is the problem?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
elpouletorange
Senior Member
Join Date: Oct 2007
Old 10-19-2007 , 09:54   What is the problem?
Reply With Quote #1

There is a problem when i compile it with webcompiler:

PHP Code:
public frag_heal_user(id)
{
    
set_user_health (idget_user_health(id) + get_user_frags(id) * 10);
    
set_user_frags (id0);
}
 
public 
plugin_init()
{
     
register_plugin("Frag_Heal""1.0""elpouletorange")
     
register_clcmd("say /fragheal""frag_heal_user")


Last edited by elpouletorange; 10-19-2007 at 17:54.
elpouletorange is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-19-2007 , 10:00   Re: What is the problem?
Reply With Quote #2

set_user_health (id, get_user_health(id) + get_user_frags(id) * 10);
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-19-2007 , 10:02   Re: What is the problem?
Reply With Quote #3

To write in a box, use the small tag

[ s m a l l ]new var //Your code here[ / s m a l l ]

Same without spaces :

Code:
new var //Your code here
ConnorMcLeod is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 10-19-2007 , 10:04   Re: What is the problem?
Reply With Quote #4


[pawn]text[/pawn]
[small]text[/small]

[php]text[/php]

[code]text[/code]

@connorr
Have you heard about [noparse][/noparse]?

Last edited by [ --<-@ ] Black Rose; 10-19-2007 at 18:07.
[ --<-@ ] Black Rose is offline
elpouletorange
Senior Member
Join Date: Oct 2007
Old 10-19-2007 , 17:55   Re: What is the problem?
Reply With Quote #5

I got an error again in line 3 ... is it possible my include are not good or something like that ?
elpouletorange is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 10-19-2007 , 18:05   Re: What is the problem?
Reply With Quote #6

If that is your full script you need to add
Code:
#include <amxmodx> #include <fun>
[ --<-@ ] Black Rose is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-19-2007 , 18:07   Re: What is the problem?
Reply With Quote #7

So basically to sum up everyone's stuff, you should have:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "M249-M4A1"

public plugin_init()
{
    
register_plugin("Frag_Heal""1.0""elpouletorange")
    
register_clcmd("say /fragheal""frag_heal_user")
}  

public 
frag_heal_user(id)
{
    
set_user_health (idget_user_health(id) + get_user_frags(id) * 10);
    
set_user_frags (id0);

__________________
M249-M4A1 is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 10-19-2007 , 18:09   Re: What is the problem?
Reply With Quote #8

Not really...
1. amxmisc isn't used.
2. defines aren't used.
[ --<-@ ] Black Rose is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-19-2007 , 20:18   Re: What is the problem?
Reply With Quote #9

Quote:
Originally Posted by [ --<-@ ] Black Rose View Post
Not really...
1. amxmisc isn't used.
2. defines aren't used.
You're right. I pasted the code into AMXX Studio and it had all that default crap on there.
__________________
M249-M4A1 is offline
Old 10-19-2007, 18:18
elpouletorange
This message has been deleted by elpouletorange.
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 01:15.


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