Jump to content
  • 0

Problema compilare COMANDA..


Question

Posted

Am facut o comanda RCON si-mi arata asa.

uitati linia

pinfo[giveplayerid1][BKSpree] = amount2;
si ERORILE.
filterscripts\LuxAdmin.pwn(17447) : warning 213: tag mismatch
\filterscripts\LuxAdmin.pwn(17447) : error 032: array index out of bounds (variable "pinfo")

7 answers to this question

Recommended Posts

Posted

Asta-i comanda

CMD:setspree(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        new string[128];
        //----------------------------------------------------------------------
        if(sscanf(params, "ud", giveplayerid1, amount2)) return
        SendClientMessage(playerid, orange, "Usage : /setspree [playerid] [Spree]") &&
        SendClientMessage(playerid, LIGHTBLUE2, "Function: Will set the Spree of a specified player!");
        //----------------------------------------------------------------------
        else if(giveplayerid1 == INVALID_PLAYER_ID) return
        SendClientMessage(playerid, red, "ERROR: Player not connected!");
        //----------------------------------------------------------------------
        else
        {
            SendCommandToAdmins(playerid, "SetSpree");
            format(string, 128, "Administrator \"%s\" has setted your Spree to %d", PlayerName2(playerid), amount2);
            SendClientMessage(giveplayerid1, blue, string);
            format(string, 128, "You have succesfully setted %s Spree to %d!", PlayerName2(giveplayerid1), amount2);
            SendClientMessage(playerid, 0x00BBF6AA, string);
            format(string, 128, "*** Administrator %s has Setted %s the ammount of Spree to %d!", PlayerName2(playerid), PlayerName2(giveplayerid1), amount2);
            SaveIn("AdminLog", string);
            pinfo[giveplayerid1][BKSpree] = amount2;
        }
        return 1;
    }
    else return SendClientMessage(playerid, red, "ERROR: Only RCON Admins can use that command!");
}

Si-mi arata erorile de mai SUS.

Posted
AccInfo[giveplayerid1][BKSpree] = amount2;

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.