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

please help compile sma


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cojonesxx
Junior Member
Join Date: Apr 2011
Old 05-14-2015 , 18:42   please help compile sma
Reply With Quote #1

Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team /tmp/textXY6UVl.sma(3) : fatal error 100: cannot read from file: "ColorChat" Compilation aborted. 1 Error.

#include <amxmodx>
#include <amxmisc>
#include <ColorChat>

/********************************************* **************
* ACCESS *
* *
* [DUEÑO] - (A) bcdefghijklmnopqrstu *
* [SUPER ADMIN] - (T) cdefghijklmnopqrstu *
* [ADMINS] - (M) cdefghijkmnopqrstu *
* [-VIP-] - (C) cjeip *
* *
********************************************* **************/

public plugin_init() {
register_plugin("Admin-Check", "5.5", "ALBERTO")

register_clcmd("say /admin", "show_admins")
register_clcmd("say /admins", "show_admins")
register_clcmd("say /vip", "show_admins")
register_clcmd("say /vips", "show_admins")
register_clcmd("say_team /admin", "show_admins")
register_clcmd("say_team /admins", "show_admins")
register_clcmd("say_team /vip", "show_admins")
register_clcmd("say_team /vips", "show_admins")
register_clcmd("say /credit", "credits")
register_clcmd("say /credits", "credits")
}

public show_admins(id) {
new [DUEÑO][5], oCounter = 0
new [SUPER ADMIN][16], mCounter = 0
new [ADMINS][16], aCounter = 0
new [-VIP-][16], vCounter = 0
new MaxP[32], pCounter, player

get_players(MaxP, pCounter, "ch")

for (new i=0 ; i<pCounter ; i++)
{
player = MaxP[i]

if (access(player, ADMIN_IMMUNITY)) {
[DUEÑO][oCounter] = player
oCounter++
continue;
}

if (access(player, ADMIN_LEVEL_H)) {
[SUPER ADMIN][mCounter] = player
mCounter++
continue;
}

if (access(player, ADMIN_LEVEL_A)) {
[ADMINS][aCounter] = player
aCounter++
continue;
}

if (access(player, ADMIN_KICK)) {
[-VIP-][vCounter] = player
vCounter++
continue;
}
}
if (oCounter == 0) // Si no hay Administradores en línea
{
ColorChat(id,GREEN,"^3[^1 SERVER ^3] ^4[DUEÑO] Online: ^3No [DUEÑO] Online.")
}
else
{
new ronline[200]
new rname[32], i[DUEÑO]ID

for (new z=0 ; z<oCounter ; z++)
{
iOwnerID = [DUEÑO][z]
get_user_name(i[DUEÑO]ID, rname, 31)
add(ronline, charsmax(ronline), rname)

if (z != oCounter-1)
{
add(ronline, charsmax(ronline), ", ")
}

}
ColorChat(id,GREEN,"^3[^1 SERVER ^3] ^4[DUEÑO] Online: ^3%s.", ronline)
}

if (mCounter == 0) // [SUPER ADMIN] están en línea
{
ColorChat(id,GREEN,"^3[^1 SERVER ^3] ^4[SUPER ADMIN] Online: ^3No [SUPER ADMIN] Online.")
}
else
{
new monline[200]
new mname[32], i[SUPER ADMIN]ID

for (new z=0 ; z<mCounter ; z++)
{
i[SUPER ADMIN]ID = [SUPER ADMIN][z]
get_user_name(i[SUPER ADMIN]ID, mname, 31)
add(monline, charsmax(monline), mname)

if (z != mCounter-1)
{
add(monline, charsmax(monline), ", ")
}

}
ColorChat(id,GREEN,"^3[^1 SERVER ^3] ^4[SUPER ADMIN] Online: ^3%s.", monline)
}

if (aCounter == 0) // Si no hay [ADMINS] Online
{
ColorChat(id,GREEN,"^3[^1 SERVER ^3] ^4[ADMINS] Online: ^3No [ADMINS] Online.")
}
else
{
new aonline[200]
new aname[32], i[ADMINS]ID

for (new z=0 ; z<aCounter ; z++)
{
i[ADMINS]ID = [ADMINS][z]
get_user_name(i[ADMINS]ID, aname, 31)
add(aonline, charsmax(aonline), aname)

if (z != aCounter-1)
{
add(aonline, charsmax(aonline), ", ")
}


}
ColorChat(id,GREEN,"^3[^1 SERVER ^3] ^4[ADMINS] Online: ^3%s.", aonline)
}

if (vCounter == 0) // Si no hay [-VIP-] Online
{
ColorChat(id,GREEN,"^3[^1 SERVER ^3] ^4[-VIP-] Online: ^3No [-VIP-] Online.")
}
else
{
new vonline[200]
new vname[32], i[-VIP-]ID

for (new z=0 ; z<vCounter ; z++)
{
i[-VIP-]ID = [-VIP-][z]
get_user_name(i[-VIP-]ID, vname, 31)
add(vonline, charsmax(vonline), vname)

if (z != vCounter-1)
{
add(vonline, charsmax(vonline), ", ")
}

}
ColorChat(id,GREEN,"^3[^1 SERVER ^3] ^4[-VIP-] Online: ^3%s.", vonline)
}
}

public credits(id) {

ColorChat(id,GREEN,"^3[^1 SERVER ^3] ^4Admin-Check 5.5 EDITADO POR ^3ALBERTO ^4GRACIAS POR ESTAR EN EL SERVER Y USAR EL PLUGIN.")
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\ rtf1\ fbidis\ ansi\ ansicpg1252\ deff0{\ fonttbl{\ f0\ fnil\ fcharset0 Tahoma;}}n\ viewkind4\ uc1\ pard\ ltrpar\ lang1037\ f0\ fs16 n\ par }
*/
cojonesxx is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-14-2015 , 19:15   Re: please help compile sma
Reply With Quote #2

1.Wrong forum
2.Use [PHP] or [CODE] tags when posting codes.
3.Read the error, it's means you will need ColorChat.inc
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 05-14-2015 at 19:17.
wickedd 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 04:59.


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