Ayuda.
#1

Bueno, tengo el GM de ZC, y al intentar agregarle un sistema de administrador en servicio, tengo los siguientes errores:

Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\asdzc.pwn(25952) : error 001: expected token: ";", but found "new"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\asdzc.pwn(25956) : error 001: expected token: ";", but found "-identifier-"
pawn Код:
zcmd(adminduty, playerid, params[]){
        if (Info[playerid][pAdminZC] < 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "ЎNo autorizado!")
        new string[64];
        if(AdminDuty[playerid] == 0){
            AdminDuty[playerid] = 1;    HidePM[playerid] = 0;
            SetPlayerArmour(playerid, 999); SetHP(playerid, 999)
            SetPlayerSkin(playerid, 217);
            if (Info[playerid][pSex] == 2){
            SetPlayerSkin(playerid, 211);}
            SetPlayerChatBubble(playerid, "Administrador en servicio", COLOR_PURPLE, 35.0, 5000);
            BroadCast(COLOR_WHITE, "--- Administrador en servicio ---");
            format(string, sizeof(string), "%s estб conectado. Puedes solicitarlo (/w %d)", GetPlayerNameEx(playerid), playerid); BroadCast(0xFFFFA4FF,string);
            return BroadCast(COLOR_WHITE, "--- ------------------------ ---");}
        else{
            AdminDuty[playerid] = 0;    HidePM[playerid] = 1;
            SetPlayerArmour(playerid, 0);   SetHP(playerid, 100);
            SetPlayerColor(playerid,TEAM_HIT_COLOR);
            SetPlayerChatBubble(playerid, "", COLOR_PURPLE, 35.0, 5000);
            BroadCast(COLOR_WHITE, "--- Administrador fuera de servicio ---");
            format(string, sizeof(string), "%s estб fuera de servicio, no atenderб mбs a los usuarios", GetPlayerNameEx(playerid), playerid); BroadCast(0xBF0000FF,string);
            return BroadCast(COLOR_WHITE, "--- ------------------------ ---");}
    }
Reply
#2

Encontre un par de ellos, si sigue con errores dime.
pawn Код:
zcmd(adminduty, playerid, params[])
{
    if (Info[playerid][pAdminZC] < 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "ЎNo autorizado!");
    new string[64];
    if(AdminDuty[playerid] == 0)
    {
        AdminDuty[playerid] = 1;
        HidePM[playerid] = 0;
        SetPlayerArmour(playerid, 999);
        SetHP(playerid, 999);
        SetPlayerSkin(playerid, 217);
        if (Info[playerid][pSex] == 2)
        {
            SetPlayerSkin(playerid, 211);
        }
        SetPlayerChatBubble(playerid, "Administrador en servicio", COLOR_PURPLE, 35.0, 5000);
        BroadCast(COLOR_WHITE, "--- Administrador en servicio ---");
        format(string, sizeof(string), "%s estб conectado. Puedes solicitarlo (/w %d)", GetPlayerNameEx(playerid), playerid);
        BroadCast(0xFFFFA4FF,string);
        BroadCast(COLOR_WHITE, "--- ------------------------ ---");
    } else {
        AdminDuty[playerid] = 0;
        HidePM[playerid] = 1;
        SetPlayerArmour(playerid, 0);
        SetHP(playerid, 100);
        SetPlayerColor(playerid,TEAM_HIT_COLOR);
        SetPlayerChatBubble(playerid, "", COLOR_PURPLE, 35.0, 5000);
        BroadCast(COLOR_WHITE, "--- Administrador fuera de servicio ---");
        format(string, sizeof(string), "%s estб fuera de servicio, no atenderб mбs a los usuarios", GetPlayerNameEx(playerid), playerid);
        BroadCast(0xBF0000FF,string);
        BroadCast(COLOR_WHITE, "--- ------------------------ ---");
    }
    return 1;
}
Reply
#3

Gracias, lo testearй, pero ya no tengo errores, luego pongo la respuesta.
Reply
#4

Encontre otro error dx - No es un error, mas bien un fail.

fijate donde dice, administrador en servicio dice : /w para solicitarlo. El /w en zenon es solo entre admins, pon mejor /re o /duda. Saludos (:
Reply
#5

No, tranquilo, ya configurй el /w para que lo puedan usar de usuarios a administradores.
Reply
#6

Quote:
Originally Posted by DeadSkyTkb
Посмотреть сообщение
No, tranquilo, ya configurй el /w para que lo puedan usar de usuarios a administradores.
Pues, pasa la config xD
No, encerio, tambien tengo el gm, serias tan amable ? :3
Reply
#7

pawn Код:
zcmd(w, playerid, params[])
    {
        if(!sscanf(params, "ds[128]", params[0], params[1]))
        {
            if(params[0] != INVALID_PLAYER_ID)
            {
                if(Info[playerid][pAdminZC] > 0 || Info[playerid][pAdminZC] == 0 && Info[params[0]][pAdminZC] > 0)
                {
                    if(HidePM[params[0]] == 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "Este administrador tiene los susurros bloqueados!");
                    new string[128];
                    format(string, sizeof(string), "Mensaje de %s (%d): %s", GetPlayerNameEx(playerid), playerid, params[1]);
                    SendClientMessageEx(params[0], 0xE9BC0AFF, string);
                    format(string, sizeof(string), "Susurras a %s (%d): %s", GetPlayerNameEx(params[0]), params[0] ,params[1]);
                    SendClientMessageEx(playerid,  0xE9BC0AFF, string);
                        for(new i = 0; i < MAX_PLAYERS; i++)
                        {
                            if(Info[i][pAdminZC] == 99999)
                            {
                                if(See_MP[i] == 1)
                                {
                                    format(string, sizeof(string), "[R: %s(%d) a  User %s(%d): {FFFFFF}%s]", GetPlayerNameEx(playerid), playerid, GetPlayerNameEx(params[0]), params[0], params[1]);
                                    SendClientMessageEx(i, 0xFF8000FF, string);
                                }
                            }
                        }
                }
                else SendClientMessageEx(playerid, COLOR_GRAD2, "ЎSusurros solo a administradores!");
            }
            else SendClientMessageEx(playerid, COLOR_GRAD2, "Jugador no conectado.");
        }
        else Message(playerid, COLOR_GRAD2, "Utilize: /w <PlayerID> <Texto>");
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)