Jump to content
  • 0

Dupa ce folosesc comanda nu se trimite textul


Masodion

Question

Problema intalnita (descriere): Cand folosesc /createclan nu imi da nici un mesaj. (

You succesful created a new clan clan! Use /cname for set the name of clan and /ctag to set the clan tag. Also you can change the clan color using /ccolor.


Ero(area / rile) / warning-(ul / urile): ---
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:createclan(playerid, params[])
{
		new i;
		new  string[256];
		if(playerVariables[playerid][pPremiumPoints] >= 50)
		{
			if(playerVariables[playerid][pClan] == 0)
			{
				playerVariables[playerid][pPremiumPoints] -= 50;
				format(string, sizeof(string), "You succesful created a new clan clan! Use /cname for set the name of clan and /ctag to set the clan tag. Also you can change the clan color using /ccolor.");
				SendClientMessage(playerid, COLOR_WHITE, string);
				playerVariables[playerid][pClanRank] = 7;

				new Cache: resultoccc = mysql_query(handle,  "INSERT INTO `clans` (`clanName`) VALUES('New Clan')");

		    	i = cache_insert_id();
		   	 	cache_delete(resultoccc);

				playerVariables[playerid][pClan] = i;

				format(clanVariables[i][cClanRankName1], 32, "(1) Newbie");
				format(clanVariables[i][cClanRankName2], 32, "(2) Member");
				format(clanVariables[i][cClanRankName3], 32, "(3) Advanced");
				format(clanVariables[i][cClanRankName4], 32, "(4) Expert");
				format(clanVariables[i][cClanRankName5], 32, "(5) Legend");
				format(clanVariables[i][cClanRankName6], 32, "(6) Clan Mananger");
				format(clanVariables[i][cClanRankName7], 32, "(7) Clan Owner");

			}
			else return SCM(playerid,COLOR_WHITE,"You already are in a clan! Use /quitclan first");
		}
		return 1;
}


Imagini / Video (optional): Nu cred ca aveti nevoie.
Ati incercat sa rezolvati singur?: Am incercat sa pun SendClientMessage, si nu merge.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
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.