Szerző Téma: Sadmin v0.2  (Megtekintve 9853 alkalommal)

Nem elérhető Sheet

  • 1508
  • Támogató
    • Profil megtekintése
Sadmin v0.2
« Válasz #30 Dátum: 2011. Január 14. - 14:46:03 »
0 Show voters
Kész a v0.2 nemsok újítás. csak 4 darab.
- AntiPing warn szintre fejlesztve!
            - Adminszolgálat hozzáadva! /aduty
            - /setweather, idõjárás állítására.
            - Használaton kívüli jármá helyreálítása. /rac

Sadmin v0.2
« Válasz #31 Dátum: 2011. Január 14. - 14:54:35 »
0 Show voters
Öhöm. Link?  ::|

Nem elérhető Sheet

  • 1508
  • Támogató
    • Profil megtekintése
Sadmin v0.2
« Válasz #32 Dátum: 2011. Január 14. - 14:55:38 »
0 Show voters
Fõposzt :D

Sadmin v0.2
« Válasz #33 Dátum: 2011. Január 14. - 18:43:47 »
0 Show voters
JAJ de hülye vok,az itt lévõ elsõ postot néztem,most látom h van 3 oldal.  :D :D :D

Nem elérhető Sheet

  • 1508
  • Támogató
    • Profil megtekintése
Sadmin v0.2
« Válasz #34 Dátum: 2011. Január 14. - 18:46:56 »
0 Show voters
Idézetet írta: ChuckNorris date=1295027027\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"4522\" data-ipsquote-contentclass=\"forums_Topic
JAJ de hülye vok,az itt lévõ elsõ postot néztem,most látom h van 3 oldal.  :D :D :D
 
Hát ja :D már régen csináltam az alapot, gondoltam ha nem is sokkal de valamivel kiegészítem

Nem elérhető ►ѕтa

  • 2016
  • Newbie
    • Profil megtekintése
Sadmin v0.2
« Válasz #35 Dátum: 2011. Február 23. - 21:22:18 »
0 Show voters
0.3nál a másodikat szedd ki, mert az elsõ jobb szerintem, köszi.

Sadmin v0.2
« Válasz #36 Dátum: 2011. Március 16. - 21:05:14 »
0 Show voters
azt a dudba includét hol tom megszerezzni ????
egyébként szép admin rendszer grat

Nem elérhető SoAP

  • 182
    • Profil megtekintése
Sadmin v0.2
« Válasz #37 Dátum: 2011. Március 16. - 23:10:49 »
0 Show voters
Használd a kockanép legjobb barátját: google
Amúgy tehetne már bele vmi újjat sheet. :D

Nem elérhető InAceX

  • 501
    • Profil megtekintése
Sadmin v0.2
« Válasz #38 Dátum: 2011. Március 17. - 14:30:56 »
0 Show voters
Idézetet írta: Energysweet date=1300305914\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"4522\" data-ipsquote-contentclass=\"forums_Topic
azt a dudba includét hol tom megszerezzni ????
egyébként szép admin rendszer grat
 
Ez benne van a .rar-ban csak dubd néven.

Nem elérhető Buba

  • 540
    • Profil megtekintése
Sadmin v0.2
« Válasz #39 Dátum: 2011. Március 17. - 17:39:35 »
0 Show voters
Valaki dobna nekem egy dubda(vagy vmi ilyesmi) plugint ? Meg ha már azt akkor sscanf-et is pls :D
Am. én is strtok -ot szoktam használni, de mostanában rászoktam a zcmd-re :D

Nem elérhető Mambo

  • 4239
    • Profil megtekintése
Sadmin v0.2
« Válasz #40 Dátum: 2011. Március 17. - 18:21:49 »
0 Show voters
Idézetet írta: Buba date=1300379975\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"4522\" data-ipsquote-contentclass=\"forums_Topic
Valaki dobna nekem egy dubda(vagy vmi ilyesmi) plugint ? Meg ha már azt akkor sscanf-et is pls :D
Am. én is strtok -ot szoktam használni, de mostanában rászoktam a zcmd-re :D
 
dubda? :DDDDDDDDDDDDDDDDDD
talán dudb. és abból csak inc van.
http://www.y-less.com/YSI/sscanf.zip

Sadmin v0.2
« Válasz #41 Dátum: 2011. Március 17. - 18:27:41 »
0 Show voters
a v0.4-ben szívesen látnék valami újítást [sscanf, zcmd, sii, y_ini, cini, fini, vagy ilyesmi :D]

Nem elérhető ►ѕтa

  • 2016
  • Newbie
    • Profil megtekintése
Sadmin v0.2
« Válasz #42 Dátum: 2011. Március 17. - 18:40:47 »
0 Show voters
Látszik hogy nem nézted meg :D
ZCMD+SSCANF megvan.

Sadmin v0.2
« Válasz #43 Dátum: 2011. Április 07. - 14:53:20 »
0 Show voters
Ezmiez?
Letöltöm, include-okat beteszem a helyükre, filterscripteket is, mindent megcsinálok, átírom a szerverconfig fájlt, megnyitom a pawnot, semmit nem csináltam vele még csak nézem h le lehet e forditani és:
undefined symbol \"ReturnUser\"
oké. definiálom, és must be assigned to an array
Mi történhetett?
Nem irtam át semmit, betettem az include-okat a filterscripteket, átirrtam a cfg,t.
A szerveren fut, de nem tudok  igy semmit bõvíteni v átirni, mivel hiába írom át ha le akarom forditani error van....
 :(
Valaki segitsen pls...

Nem elérhető DrAkE

  • 2078
    • Profil megtekintése
Sadmin v0.2
« Válasz #44 Dátum: 2011. Április 07. - 15:00:02 »
0 Show voters
Tudod az undefinied symbolos problémákat nem változokkal (new-ekkel), vagy esetleg definiálással (#define)-vel kellene megoldani hanem keresgélni a neten.
Illeszd be ezt a módodba:
 
ReturnUser(text[], playerid = INVALID_PLAYER_ID)
{
        new pos = 0;
        while (text[pos] < 0x21) // Strip out leading spaces
        {
                if (text[pos] == 0) return INVALID_PLAYER_ID; // No passed text
                pos++;
        }
        new userid = INVALID_PLAYER_ID;
        if (IsNumeric(text[pos])) // Check whole passed string
        {
                // If they have a numeric name you have a problem (although names are checked on id failure)
                userid = strval(text[pos]);
                if (userid >=0 && userid < MAX_PLAYERS)
                {
                        if(!IsPlayerConnected(userid))
                        {
                                /*if (playerid != INVALID_PLAYER_ID)
                                {
                                        SendClientMessage(playerid, 0xFF0000AA, \"User not connected\");
                                }*/
                                userid = INVALID_PLAYER_ID;
                        }
                        else
                        {
                                return userid; // A player was found
                        }
                }
                /*else
                {
                        if (playerid != INVALID_PLAYER_ID)
                        {
                                SendClientMessage(playerid, 0xFF0000AA, \"Invalid user ID\");
                        }
                        userid = INVALID_PLAYER_ID;
                }
                return userid;*/
                // Removed for fallthrough code
        }
        // They entered [part of] a name or the id search failed (check names just incase)
        new len = strlen(text[pos]);
        new count = 0;
        new name[MAX_PLAYER_NAME];
        for (new i = 0; i < MAX_PLAYERS; i++)
        {
                if (IsPlayerConnected(i))
                {
                        GetPlayerName(i, name, sizeof (name));
                        if (strcmp(name, text[pos], true, len) == 0) // Check segment of name
                        {
                                if (len == strlen(name)) // Exact match
                                {
                                        return i; // Return the exact player on an exact match
                                        // Otherwise if there are two players:
                                        // Me and MeYou any time you entered Me it would find both
                                        // And never be able to return just Me\'s id
                                }
                                else // Partial match
                                {
                                        count++;
                                        userid = i;
                                }
                        }
                }
        }
        if (count != 1)
        {
                if (playerid != INVALID_PLAYER_ID)
                {
                        if (count)
                        {
                                SendClientMessage(playerid, 0xFF0000AA, \"Multiple users found, please narrow earch\");
                        }
                        else
                        {
                                SendClientMessage(playerid, 0xFF0000AA, \"No matching user found\");
                        }
                }
                userid = INVALID_PLAYER_ID;
        }
        return userid; // INVALID_USER_ID for bad return
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal