Jump to content
  • 0

Problema comanda /rcmds


3xTaSY

Question

Deci, am un script, care arata un dialog cu comenzile pt. RCON. Doar Adminii RCON o pot folosi. Dar cand o compilez, nu-mi merge.

[pawn]CMD:rcmds(playerid, params[])

{

    new rcmds[1150];

    //--------------------------------------------------------------------------

if(IsPlayerAdmin(playerid))

{

    //----------------------------------------------------------------------

strcat(rcmds, "{FF0000}/SetKills {FF9900}» {AFAFAF} Seteaza Kills (Doar pentru tine)!\n\

  {FF0000}/SetDeaths {FF9900}» {AFAFAF} Seteaza Deaths (Doar pentru tine)!\n\

  {FF0000}/SetSpree {FF9900}» {AFAFAF} Seteaza Killing Spree(Doar pentru tine)!\n\

  {FF0000}/SetBestKills {FF9900}» {AFAFAF} Seteaza Best Killing Spree(Doar pentru tine)!\n\

  {FF0000}/SetHours {FF9900}» {AFAFAF} Setezi orele (Doar pentru tine)!\n\

  {FF0000}/SetRespect {FF9900}» {AFAFAF} Seteaza + la Respect!\n\

  {FF0000}/SetMRespect {FF9900}» {AFAFAF} Seteaza - la Respect!\n\

  {FF0000}/SetVWarn {FF9900}» {AFAFAF} Seteaza Warn la VIP.\n\

  \n");

strcat(rcmds, "{FF0000}/SetStunt {FF9900}» {AFAFAF} Seteaza Stunt Points\n\

  {FF0000}/SetRace {FF9900}» {AFAFAF} seteaza Race Points.\n\

  {FF0000}/SetDrift {FF9900}» {AFAFAF} Seteaza Drift Points.\n\

  {FF0000}/Setc4 {FF9900}» {AFAFAF} Seteaza bombele c4.\n\

  {FF0000}/SetLevel {FF9900}» {AFAFAF} Seteaza nivelul Admin-ului.\n\

                      {FF0000}/SetRVIP {FF9900}» {AFAFAF} Seteaza nivelul VIP-ului.\n\

  {FF0000}/SetCoins {FF9900}» {AFAFAF} Seteaza Coins.\n\

      {FF0000}/GiveallCoins {FF9900}» {AFAFAF} Setezi coins la toti playerii!\n\

  \n");

ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "{0066CC}X{FFFF00}S{FF0000}D{AFAFAF} - RCON Commands", rcmds, "OK", "");

return 1;

}

else return SendClientMessage(playerid, red, "ERROR: Only RCON Admins can view this dialog!");

}[/pawn]

Si erorile:

C:\Users\- - -\Desktop\eXtreme Stunt Devil\filterscripts\rcon_cmds.pwn(30) : error 075: input line too long (after substitutions)
C:\Users\- - -\Desktop\eXtreme Stunt Devil\filterscripts\rcon_cmds.pwn(31) : error 037: invalid string (possibly non-terminated string)
C:\Users\- - -\Desktop\eXtreme Stunt Devil\filterscripts\rcon_cmds.pwn(31) : error 017: undefined symbol "FF0000"
C:\Users\- - -\Desktop\eXtreme Stunt Devil\filterscripts\rcon_cmds.pwn(31) : warning 217: loose indentation
C:\Users\- - -\Desktop\eXtreme Stunt Devil\filterscripts\rcon_cmds.pwn(31) : error 029: invalid expression, assumed zero
C:\Users\- - -\Desktop\eXtreme Stunt Devil\filterscripts\rcon_cmds.pwn(31) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

Link to comment
Share on other sites

16 answers to this question

Recommended Posts

Am incerat, dar am esuat.

[pawn]CMD:rcmds(playerid, params[])

{

    new rcmds[1150];

    //--------------------------------------------------------------------------

if(IsPlayerAdmin(playerid))

{

    //----------------------------------------------------------------------

strcat(rcmds, "{FF0000}/SetKills {FF9900}» {AFAFAF} Seteaza Kills (Doar pentru tine)!\n\

  {FF0000}/SetDeaths {FF9900}» {AFAFAF} Seteaza Deaths (Doar pentru tine)!\n\

  {FF0000}/SetSpree {FF9900}» {AFAFAF} Seteaza Killing Spree(Doar pentru tine)!\n\

  {FF0000}/SetBestKills {FF9900}» {AFAFAF} Seteaza Best Killing Spree(Doar pentru tine)!\n\

  {FF0000}/SetHours {FF9900}» {AFAFAF} Setezi orele (Doar pentru tine)!"\n\

    strcat(rcmds, "{FF0000}/SetRespect {FF9900}» {AFAFAF} Seteaza + la Respect!\n\

  {FF0000}/SetMRespect {FF9900}» {AFAFAF} Seteaza - la Respect!\n\

  {FF0000}/SetVWarn {FF9900}» {AFAFAF} Seteaza Warn la VIP\n");

strcat(rcmds, "{FF0000}/SetStunt {FF9900}» {AFAFAF} Seteaza Stunt Points\n\

  {FF0000}/SetRace {FF9900}» {AFAFAF} seteaza Race Points.\n\

  {FF0000}/SetDrift {FF9900}» {AFAFAF} Seteaza Drift Points.\n\

  {FF0000}/Setc4 {FF9900}» {AFAFAF} Seteaza bombele c4.\n\

  {FF0000}/SetLevel {FF9900}» {AFAFAF} Seteaza nivelul Admin-ului.\n\

                      {FF0000}/SetRVIP {FF9900}» {AFAFAF} Seteaza nivelul VIP-ului.\n\

  {FF0000}/SetCoins {FF9900}» {AFAFAF} Seteaza Coins.\n\

      {FF0000}/GiveallCoins {FF9900}» {AFAFAF} Setezi coins la toti playerii!\n\

  \n");

ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "{0066CC}X{FFFF00}S{FF0000}D{AFAFAF} - RCON Commands", rcmds, "OK", "");

return 1;

}

else return SendClientMessage(playerid, red, "ERROR: Only RCON Admins can view this dialog!");

}[/pawn]

Link to comment
Share on other sites

CMD:rcmds(playerid, params[])
{
    new rcmds[1150];
    //--------------------------------------------------------------------------
	if(IsPlayerAdmin(playerid))
	{
	    //----------------------------------------------------------------------
		strcat(rcmds, "{FF0000}/SetKills {FF9900}» {AFAFAF} Seteaza Kills (Doar pentru tine)!\n\
					   {FF0000}/SetDeaths {FF9900}» {AFAFAF} Seteaza Deaths (Doar pentru tine)!\n\
					   {FF0000}/SetSpree {FF9900}» {AFAFAF} Seteaza Killing Spree(Doar pentru tine)!\n\
					   {FF0000}/SetBestKills {FF9900}» {AFAFAF} Seteaza Best Killing Spree(Doar pentru tine)!\n\
					   {FF0000}/SetHours {FF9900}» {AFAFAF} Setezi orele (Doar pentru tine)!\n");
	    strcat(rcmds, "{FF0000}/SetRespect {FF9900}» {AFAFAF} Seteaza + la Respect!\n\
					   {FF0000}/SetMRespect {FF9900}» {AFAFAF} Seteaza - la Respect!\n\
					   {FF0000}/SetVWarn {FF9900}» {AFAFAF} Seteaza Warn la VIP\n");
		strcat(rcmds, "{FF0000}/SetStunt {FF9900}» {AFAFAF} Seteaza Stunt Points\n\
					   {FF0000}/SetRace {FF9900}» {AFAFAF} seteaza Race Points.\n\
					   {FF0000}/SetDrift {FF9900}» {AFAFAF} Seteaza Drift Points.\n\
					   {FF0000}/Setc4 {FF9900}» {AFAFAF} Seteaza bombele c4.\n\
					   {FF0000}/SetLevel {FF9900}» {AFAFAF} Seteaza nivelul Admin-ului.\n\
                       {FF0000}/SetRVIP {FF9900}» {AFAFAF} Seteaza nivelul VIP-ului.\n\
					   {FF0000}/SetCoins {FF9900}» {AFAFAF} Seteaza Coins.\n\
				       {FF0000}/GiveallCoins {FF9900}» {AFAFAF} Setezi coins la toti playerii!\n\
	 				   \n");
		ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "{0066CC}X{FFFF00}S{FF0000}D{AFAFAF} - RCON Commands", rcmds, "OK", "");
		return 1;
	}
	else return SendClientMessage(playerid, red, "ERROR: Only RCON Admins can view this dialog!");
}

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

Tot 5 erori primesc.

C:\Users\Bogdan\Desktop\eXtreme Stunt Devil v5\filterscripts\rcon_cmds.pwn(39) : error 075: input line too long (after substitutions)
C:\Users\Bogdan\Desktop\eXtreme Stunt Devil v5\filterscripts\rcon_cmds.pwn(40) : error 037: invalid string (possibly non-terminated string)
C:\Users\Bogdan\Desktop\eXtreme Stunt Devil v5\filterscripts\rcon_cmds.pwn(40) : error 017: undefined symbol "FF0000"
C:\Users\Bogdan\Desktop\eXtreme Stunt Devil v5\filterscripts\rcon_cmds.pwn(40) : warning 217: loose indentation
C:\Users\Bogdan\Desktop\eXtreme Stunt Devil v5\filterscripts\rcon_cmds.pwn(40) : error 029: invalid expression, assumed zero
C:\Users\Bogdan\Desktop\eXtreme Stunt Devil v5\filterscripts\rcon_cmds.pwn(40) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

EDIT: Uite partea de sus a scriptului.

[pawn]#include <a_samp>

#include <zcmd>

#include <sscanf>

#define FILTERSCRIPT

#if defined FILTERSCRIPT

#define red 0xFF0000AA

#define gray                                                        0xAFAFAFAA

#define orange                                                      0xFF9900AA[/pawn]

Link to comment
Share on other sites

[pawn]CMD:rcmds(playerid, params[])

{

    new rcmds[1800];

    //--------------------------------------------------------------------------

if(IsPlayerAdmin(playerid))

{

    //----------------------------------------------------------------------

strcat(rcmds, "{FF0000}/SetKills {FF9900}» {AFAFAF} Seteaza Kills (Doar pentru tine)!\n");

strcat(rcmds, "{FF0000}/SetDeaths {FF9900}» {AFAFAF} Seteaza Deaths (Doar pentru tine)!\n");

strcat(rcmds, "{FF0000}/SetSpree {FF9900}» {AFAFAF} Seteaza Killing Spree(Doar pentru tine)!\n");

strcat(rcmds, "{FF0000}/SetBestKills {FF9900}» {AFAFAF} Seteaza Best Killing Spree(Doar pentru tine)!\n");

    strcat(rcmds, "{FF0000}/SetHours {FF9900}» {AFAFAF} Setezi orele (Doar pentru tine)!\n");

    strcat(rcmds, "{FF0000}/SetRespect {FF9900}» {AFAFAF} Seteaza + la Respect!\n");

    strcat(rcmds, "{FF0000}/SetMRespect {FF9900}» {AFAFAF} Seteaza - la Respect!\n");

    strcat(rcmds, "{FF0000}/SetVWarn {FF9900}» {AFAFAF} Seteaza Warn la VIP.\n");

strcat(rcmds, "{FF0000}/SetStunt {FF9900}» {AFAFAF} Seteaza Stunt Points\n");

strcat(rcmds, "{FF0000}/SetRace {FF9900}» {AFAFAF} seteaza Race Points.\n");

  strcat(rcmds, "{FF0000}/SetDrift {FF9900}» {AFAFAF} Seteaza Drift Points.\n");

strcat(rcmds, "{FF0000}/Setc4 {FF9900}» {AFAFAF} Seteaza bombele c4.\n");

strcat(rcmds, "{FF0000}/SetLevel {FF9900}» {AFAFAF} Seteaza nivelul Admin-ului.\n");

strcat(rcmds, "{FF0000}/SetRVIP {FF9900}» {AFAFAF} Seteaza nivelul VIP-ului.\n");

strcat(rcmds, "{FF0000}/SetCoins {FF9900}» {AFAFAF} Seteaza Coins.\n");

strcat(rcmds, "{FF0000}/GiveallCoins {FF9900}» {AFAFAF} Setezi coins la toti playerii!\n");

ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "{0066CC}X{FFFF00}S{FF0000}D{AFAFAF} - RCON Commands", rcmds, "OK", "");

}

else

{

SendClientMessage(playerid, red, "ERROR: Only RCON Admins can view this dialog!");

}

return 1;

}

[/pawn]

incearca asta

Link to comment
Share on other sites

[pawn] else if(classidi[playerid] == 102)

    {

if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)

{

if(PlayerInfo[playerid][pRank] == 1)

    {

PlayerInfo[playerid][pChar] = 144;

SetPlayerSpawnInfo(playerid);

GameTextForPlayer(playerid," ",1,1);

}

else

{

format(string, sizeof(string), "~r~ Chose other skin ! You are member rank %d", PlayerInfo[playerid][pRank]);

GameTextForPlayer(playerid,string,3500,1);

return 0;

}

}

else

{

format(string, sizeof(string), "~r~ Chose other skin ! You are  %s", ttext);

GameTextForPlayer(playerid,string,3500,1);

return 0;

}

}[/pawn]

E bon :> ?

<a href="http://www.game-state.eu/94.60.40.50:7777/"><img src="http://www.game-state.eu/94.60.40.50:7777/n-560x95_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

Normal , este scriptu' meu ca eu i lam dat lu extasy si nu are comenzile ce scrie acolo , ala e un fel de "cmds" doar sa vezi ce comenzi sunt pentru rcon :) in rest nimic altceva

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

 

Link to comment
Share on other sites

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.