Jump to content
  • 0

Question

Posted

am comada /announce si scriu /announce Salut apare doat alut in loc de Salut

CMD:announce(playerid, params[])
{
	if ( PlayerInfo[ playerid ][ Level ] < 10)
		return SendError( playerid, "Nu ai level 10 pentru a folosi aceasta comanda"),

	if ( sscanf(params, "u", params[ 0 ]))
		return SendUsage( playerid, "/announce <text>");

	GameTextForAll(params[ 0 ], 4000, 3 );
	return 1;
}

  • www.LcsNet.org
  • 91.233.106.13:7777
  • www.Joc-Miniclip.info

4 answers to this question

Recommended Posts

Posted

incearca asa [pawn]dcmd_announce(playerid, params[])

{

if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[ANNOUNCE])

{

new string[100];

format(string, sizeof(string), "Trebuie sa fi la nivelul de administrator % d pentru a folosi aceasta comanda!", gCommands[ANNOUNCE]);

return SendClientMessage(playerid, COLOUR_ORANGE, string);

}

else if(!strlen(params))

return SendClientMessage(playerid, COLOUR_ORANGE, "Foloseste: /announce [mesajul]");

else

return GameTextForAll(params, gSettings[ANNOUNCE_SECONDS] * 1000, 3);

}[/pawn]

tumblr_ll5sj3LUoZ1qgjpfvo1_250.gif
Posted

CMD:announce(playerid, params[])
{
        new AText[ 128 ];
	if ( PlayerInfo[ playerid ][ Level ] < 10)
		return SendError( playerid, "Nu ai level 10 pentru a folosi aceasta comanda"),

	if ( sscanf(params, "s[128]", AText ))
		return SendUsage( playerid, "/announce <text>");

	GameTextForAll( AText, 4000, 3 );
	return 1;
}

Ai gresit parametrul la sscanf. Trebuie s. s vine de la string! ;)

Fara reclama in semnatura!

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.