Jump to content

[ REZOLVAT ] Ajutor!


LondoN eXtream

Recommended Posts

Am facut un plugin dar da eroare la compilare. M-am uitat prin ce am scris, dar nu am gasit eroarea! Daca o vede cineva sa lase reply.

/* /*
/* AMXMODX Plugin
/*        By AL3X MC
/* /*

#include <amxmodx>
#include <amxmisc>

#definite MAX_GROUPS 10

new g_groupNames[MAX_GROUPS] [] = {
"- = = [ DetinaToR ] = = -",
"- = = [ OwNeR ] = = -",
"- = = [ Co -OwNeR ] = = -",
"- = = [ GoD ] = = -",
"- = = [ SeMi -GoD ] = = -",
"- = = [ AdMiNisTraToR ] = = -",
"- = = [ MoDeRaToR ] = = -",
"- = = [ HelPeR ] = = -",
"- = = [ V.I.P ] = = -",
"- = = [ SloT ] = = -"
}


new g_groupFlags[MAX_GROUPS] [] = {
"abcdefghijklmnopqrstu",
"bcdefghijklmnopqrstu",
"bcdefghijkmnopqrst",
"bcdefghijkmnopqrs",
"bcdefghijmnopq",
"bcdefghij",
"bcdefg",
"bcefg",
"abi",
"bi"


new g_groupFlagsValue[MAX_GROUPS]


public plugin_init () {

     register_plugin("Admin Who","1.0","AL3X MC")

     register_concmd("amx_who", "AMXX_WHO", 0)
     register_concmd("admin_who", "AMXX_WHO", 0)

     for(new i = 0; i < MAX_GROUPS; i++) {
             g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
             }
}

public AMXX_WHO (id) {
       
      new players[32], inum, player, name[32], i, a
      get_players(players, inum)
      console_print(id, " CS.RANGFORT.RO ")
      for(i= 0; i < MAX_GROUPS; i++) {
              console_print(id, "-----[%d]%s-----", i+1, g_groupNames[i])
              for(a = 0; a < inum; ++a) {
                   player = players[a]
                   get_user_name(player, name, 31)
                   if (get_user_flags(player) == g_groupFlagsValue[i]) {
                                console_print(idm "%s", name)
                                }
                   }
              }
console_print(id, " CS.RANGFORT.RO ")
   return PLUGIN_HANDLED
}

          
Edited by AL3X MC
Link to comment
Share on other sites

Aceeasi problema ca la pluginul trecut  (client settings) 

error 001: expected token: "*/", but found "-end of file-"
error 012: no entry point (no public functions)

Uitate pe TUTORIALE daca vrei sa il faci in notepad de la 0.

Si ca sa te ajut ca pe viitor sa numai postezi aiurea iti voi pune la dispozitie un "programel" special pentru ce ai vrut tu sa faci mai sus,mai pe scurt iti face el scriptul tu doar setezi flagurile si numele.

 

Descriere: 

 Acest soft va ajuta sa creati mai rapid pluginul amx_who.amxx. Pentru cei care nu stiti, acest pluginul amx_who raspunde la comanda amx_who cand un jucator/admin o tasteaza in consola si afiseaza toate persoanele care au admin pe serverul respectiv.
Dupa ce introduceti numele cat si accesele adminilor, apasati pe Salveaza pentru salvarea sursei in format .sma si la urma apasati pe Compilare pentru a va crea fisierul .amxx . Ambele fisiere le gasiti in folderul in care l-ati ales pentru salvare. La aceasta versiune va puteti alege comanda pentru care sa vi se afiseze administratorii:  amx_who sau admin_who

Download: http://www.mediafire.com/download/r4atvrda6bayarw/Amx_Who+Plugin+Generator+v1.1.zip

 

Succes.Poti da tc daca numai ai alte intrebari.

Edited by ursu
  • Like 1
Link to comment
Share on other sites

Eu nu ma refeream la erroarea de la compilare. Ci la cea din .sma (care provoaca

error 001: expected token: "*/", but found "-end of file-"
error 012: no entry point (no public functions)

)

Eu nu folosesc programe pentru scriptarea de pluginuri...le fac manual.

EDIT: Acest plugin are ceva in plus fata de "Programelul tau", are un cod optimizat!

Edited by AL3X MC
Link to comment
Share on other sites

 

/*
 AMXMODX Plugin
       By AL3X MC
*/
 
 
#include <amxmodx>
#include <amxmisc>
 
#define MAX_GROUPS 10
 
new g_groupNames[MAX_GROUPS] [] = {
"- = = [ DetinaToR ] = = -",
"- = = [ OwNeR ] = = -",
"- = = [ Co -OwNeR ] = = -",
"- = = [ GoD ] = = -",
"- = = [ SeMi -GoD ] = = -",
"- = = [ AdMiNisTraToR ] = = -",
"- = = [ MoDeRaToR ] = = -",
"- = = [ HelPeR ] = = -",
"- = = [ V.I.P ] = = -",
"- = = [ SloT ] = = -"
}
 
 
new g_groupFlags[MAX_GROUPS] [] = {
"abcdefghijklmnopqrstu",
"bcdefghijklmnopqrstu",
"bcdefghijkmnopqrst",
"bcdefghijkmnopqrs",
"bcdefghijmnopq",
"bcdefghij",
"bcdefg",
"bcefg",
"abi",
"bi"
}
 
new g_groupFlagsValue[MAX_GROUPS]
 
 
public plugin_init () {
 
     register_plugin("Admin Who","1.0","AL3X MC")
 
     register_concmd("amx_who", "AMXX_WHO", 0)
     register_concmd("admin_who", "AMXX_WHO", 0)
 
     for(new i = 0; i < MAX_GROUPS; i++) {
             g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
             }
}
 
public AMXX_WHO (id) {
       
      new players[32], inum, player, name[32], i, a
      get_players(players, inum)
      console_print(id, " CS.RANGFORT.RO ")
      for(i= 0; i < MAX_GROUPS; i++) {
              console_print(id, "-----[%d]%s-----", i+1, g_groupNames[i])
              for(a = 0; a < inum; ++a) {
                   player = players[a]
                   get_user_name(player, name, 31)
                   if (get_user_flags(player) == g_groupFlagsValue[i]) {
                                console_print(id, "%s", name)
                                }
                   }
              }
console_print(id, " CS.RANGFORT.RO ")
   return PLUGIN_HANDLED
}
 
       
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...