Raised This Month: $51 Target: $400
 12% 

Compiler error problem.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DnBuLL
New Member
Join Date: Mar 2004
Old 04-13-2004 , 01:04   Compiler error problem.
Reply With Quote #1

I download kz-all-in-one from amxmod.net, all it had was the .sma, so I as I got AMX MOD X installed, i'm trying to compile the .sma into the compiler page of amxmodx.org, and It says the following

Read the errors above. Your plugin failed to compile. Make sure it is has the correct #includes

I'm really not really good with the codes, can anyone help me please ?

Here's half of the plugin to review it

Quote:
///////////////////////
#include <amxmod>
#include <amxmisc>
///////////////////////
new CheckOrigin[33][3]
new bool:checked[33]
new OldOrigin[33][3]
///////////////////////
public god(id)
{
if(get_cvar_num("sv_kreedz")==0)
{
return PLUGIN_HANDLED
}
if(is_user_alive(id)==1)
{
set_user_godmode(id,0)
client_print(id,print_chat,"[AMXX] Godmode enabled!")
}
return PLUGIN_HANDLED
}
public check(id)
{
if(get_cvar_num("sv_kreedz")==0)
{
return PLUGIN_HANDLED
}
if(is_user_alive(id)==1)
if(!checked[id])
checked[id] = true

get_user_origin(id, CheckOrigin[id])
CheckOrigin[id][2]-=10
client_print(id,print_chat,"[AMXX] Checkpoint saved!")
return PLUGIN_HANDLED
}
public gocheck(id)
{
if(get_cvar_num("sv_kreedz")==0)
{
return PLUGIN_HANDLED
}
if(!checked[id])
{
client_print(id,print_chat,"[AMXX] You must set an origin 1st using say /checkpoint")
return PLUGIN_HANDLED
}
new Origin[3];
get_user_origin(id,Origin);
for(new i=0;i<3;i++)
OldOrigin[id][i] = Origin[i]
set_user_origin(id, CheckOrigin[id])
client_print(id,print_chat,"[AMXX] You have been teleported to your checkpoint")
return PLUGIN_HANDLED
}
public stuck(id)
{
if(get_cvar_num("sv_kreedz")==0)
{
return PLUGIN_HANDLED
}
set_user_origin(id, OldOrigin[id])
client_print(id,print_chat,"[AMXX] You have been teleported to your last checkpoint to be unstuck")
return PLUGIN_HANDLED
}
public death_msg()
{
if(get_cvar_num("amx_respawn")==0)
{
return PLUGIN_CONTINUE
}
new vIndex = read_data(2)
user_spawn(vIndex)
return PLUGIN_CONTINUE
DnBuLL is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 04-13-2004 , 01:05  
Reply With Quote #2

Quote:
BAILOPAN: post the error, my eyes don't have a built in compiler.
could you link to the full plugin ill look at it..
__________________
QwertyAccess is offline
DnBuLL
New Member
Join Date: Mar 2004
Old 04-13-2004 , 01:09  
Reply With Quote #3

ahhhh, I saw there was a plugin on this forums for amx mod x, sorry about this post guys shouldn't look on the plugins section first.
DnBuLL is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 04-13-2004 , 01:10  
Reply With Quote #4

hmm no wonder this plugin looked familuar
__________________
QwertyAccess 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 08:03.


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