Thread: About me
View Single Post
DjMax
Junior Member
Join Date: Oct 2008
Old 07-28-2009 , 15:47   Re: About me
Reply With Quote #19

This plugin is created by me !
The original sma has events in Romanian and not english,i did it with anakin_cstrike
For who know romanian ...
In a plugin from a forum(plugin pack)
Nume: AboutMe - Versiune: 1.0 - Autor: DjMax
And ...
"Salut..imi puteti spune ce am gresit aici ?
Code:
#include <amxmodx>
#include <amxmisc>
Code:
public plugin_init()
{
 register_plugin("AboutMe","1.0","DjMax");
 
 register_clcmd("say /aboutme","info_cmd");
 register_clcmd("say_team /aboutme","info_cmd");
}
public info_cmd(id)
{
 new name[32], ip[32], auth[32];
 get_user_name(id, name, 31);
 get_user_ip(id, ip, 31);
 get_user_authid(id, ip, 31); 
 
 new hp, armor, frags, deaths, ping;
 hp = get_user_health(id);
 armor = get_user_armor(id);
 frags = get_user_frags(id);
 deaths = get_user_deaths(id);
 ping = get_user_ping(id) ;
 
 client_print(id, print_chat,"Nick: %s. IP: %s. AuthID: %s", name, ip, auth);
 client_print(id, print_chat,"Health: %i, Armor: %i, Frags: %i, Deaths: %i, Ping: %i", hp, armor, frags, deaths, ping);
 
 
 
 return PLUGIN_HANDLED;
 
 
}

Eroare:
Code:
/home/groups/amxmodx/tmp3/textng4MNM.sma(30) : error 001: expected token: "}", but found "-end of file-"
Code:
1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textng4MNM.amx (compile failed).
"
DjMax is offline