[Duda] Zenon City GM.
#1

Buenos dнas.

Bien, tengo un problema con el gamemode de Zenon City, ayer estaba scripteando y todo salнa perfecto, le he aсadido bastantes cosas y le he quitado, pero sale perfecto, ni un error. Bueno abrн el servidor, entrй y salн a configurar mбs cosas, lo configurй y me tiraba 2 Warnings.


C:\Users\TOSHIBA\Pictures\Felipe M\USB F\Zenon City Role Play\gamemodes\ZenonCity.net.pwn(14536) : warning 202: number of arguments does not match definition
C:\Users\TOSHIBA\Pictures\Felipe M\USB F\Zenon City Role Play\gamemodes\ZenonCity.net.pwn(2146 : warning 202: number of arguments does not match definition
C:\Users\TOSHIBA\Pictures\Felipe M\USB F\Zenon City Role Play\gamemodes\ZenonCity.net.pwn(2180 : error 025: function heading differs from prototype
C:\Users\TOSHIBA\Pictures\Felipe M\USB F\Zenon City Role Play\gamemodes\ZenonCity.net.pwn(21808 -- 21820) : error 021: symbol already defined: "zcmd"
C:\Users\TOSHIBA\Pictures\Felipe M\USB F\Zenon City Role Play\gamemodes\ZenonCity.net.pwn(21819) : error 025: function heading differs from prototype
C:\Users\TOSHIBA\Pictures\Felipe M\USB F\Zenon City Role Play\gamemodes\ZenonCity.net.pwn(21819 -- 21835) : fatal error 107: too many error messages on one line

Pero las lineas que me marca no las he tocado.. asн que pensй tal vez no sea errores mнos.. Asн que descargй de nuevo el GameMode y lo extraje y sin tocar nada, lo compilй Y ME TIRO LOS MISMOS ERRORES! Entonces que podrнa ser? Plugins? Actualizar? Ayuda. De todas maneras dejo las lineas. Nunca me habнa sucedido esto y llevo bastante tiempo usando Zenon City. Ohh incluso ayer me tiraba que debнa actualizar el YSI, lo actualicй y cuando lo abro, vuelve a cargar y vuelve a cargar el Samp-Server.exe

pawn Код:
function OnPlayerRegister(playerid, password[])
{
    if(IsPlayerConnected(playerid))
    {
        new INI:File = INI_Open(UserPath(playerid));
        INI_SetTag(File,"data");
        INI_WriteInt(File,"Password",udb_hash(password));
        INI_Close(File);
        TotalRegister++;
        SendClientMessageEx(playerid, COLOR_YELLOW, "Cuenta registrada, se ha iniciado sesiуn automбticamente.");
        OnPlayerLogin(playerid);
    }
    return 1;
}
pawn Код:
case DLOGIN:
        {
            if(response == 1)
            {
                if(udb_hash(inputtext) == Info[playerid][pKey])
                {
                    InsideMainMenu[playerid] = false;
                    INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
                    KillTimer(LoginTimer[playerid]);
                    OnPlayerLogin(playerid);
                }
pawn Код:
zcmd(rendirse, playerid, params[])
    {
        if(PlayerDrunk[playerid] > 9) return SendClientMessageEx(playerid, COLOR_GRAD2, "[ERROR]: No puedes usar este comando ahora.");
        if(GetPVarInt(playerid, "IsFrozen") == 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "[ERROR]: No puedes hacer esto porque estбs congelado.");
        if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && GetPVarInt(playerid, "Injured") == 0)
        {
            SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
            return 1;
        }
        else return SendClientMessageEx(playerid, COLOR_GRAD2, "[ERROR]: No puedes usar este comando ahora.");
    }
    zcmd(sentarse, playerid, params[])
    {
        new anim;
        if(Info[playerid][pEstado] != 0 || IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playerid, COLOR_GREY, "No puedes hacer esto ahora!");
        if(sscanf(params, "d", anim)) return SendClientMessageEx(playerid,COLOR_WHITE,"USA: /sentarse [1-5]");
        switch(anim){
            case 1: LoopingAnim(playerid,"BEACH","bather",4.0,1,0,0,0,0);
            case 2: LoopingAnim(playerid,"BEACH","Lay_Bac_Loop",4.0,1,0,0,0,0);
            case 3: LoopingAnim(playerid,"BEACH","ParkSit_W_loop",4.0,1,0,0,0,0);
            case 4: LoopingAnim(playerid,"BEACH","SitnWait_loop_W",4.0,1,0,0,0,0);
            case 5: LoopingAnim(playerid,"BEACH","SitnWait_loop_W",4.0,1,0,0,0,0);
            case 6: LoopingAnim(playerid,"BEACH", "ParkSit_M_loop", 4.0,1,0,0,0,0);
            default: return SendClientMessageEx(playerid,COLOR_WHITE,"USA: /sentarse [1-5]");
        }
        return 1;
    }
    zcmd(orinar, playerid, params[]){
        if(Info[playerid][pEstado] != 0 || IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playerid, COLOR_GREY, "   No puedes hacer esto ahora!");
        if(GetPVarInt(playerid, "Injured") == 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "[ERROR]: No puedes usar este comando ahora.");
        SetPlayerSpecialAction(playerid, 68);
        return 1;
    }
Reply
#2

warning 202: number of arguments does not match definition: este error da cuando haces algo como esto por ejemplo: SetPlayerColor(playerid,0x00FF00AA,1); o SetPlayerPos(playerid,0.0000,0.0000,0.0000,0.0000) ;

error 021: symbol already defined: "zcmd" nos dice que zcmd ya esta definido por ejemplo:

new string[128];
new string[128];


forward Hola();
public Hola(){}
public Hola(){}

algo asн nos darнa error
Reply
#3

Quote:
Originally Posted by Parka
Посмотреть сообщение
warning 202: number of arguments does not match definition: este error da cuando haces algo como esto por ejemplo: SetPlayerColor(playerid,0x00FF00AA,1); o SetPlayerPos(playerid,0.0000,0.0000,0.0000,0.0000) ;

error 021: symbol already defined: "zcmd" nos dice que zcmd ya esta definido por ejemplo:

new string[128];
new string[128];


forward Hola();
public Hola(){}
public Hola(){}

algo asн nos darнa error
Pero lo que sucede es que no editй nada, el GM estб sin tocar.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)