SA-MP Forums Archive
Same message appears twice - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Same message appears twice (/showthread.php?tid=658151)



Same message appears twice - Dimkata - 25.08.2018

Hello. I have a problem where the same message appears twice when I login.
https://imgur.com/CWZHzwr

The message is "INFO: Vasiot akaunt ima Donator Rank 5"

Here is the code on login

Код:
		if(PlayerInfo[playerid][pAdmin] >= 1)
		{
			F6STATS[playerid] = 1;
           ShowPlayerDialog(playerid, 137, DIALOG_STYLE_INPUT,"Admin Panel","Vnesete go Pinot na Admin/GM Panelot!","Vnesi","Izlezi");
        }
       	if(PlayerInfo[playerid][pGameMaster] >= 1)
		{
			F6STATS[playerid] = 1;
           ShowPlayerDialog(playerid, 138, DIALOG_STYLE_INPUT,"GameMaster Panel","Vnesete go Pinot na Admin/GM Panelot!","Vnesi","Izlezi");
        }
		new dra[128];
		if(PlayerInfo[playerid][pDonateRank] == 1) { dra = "1"; }
		else if(PlayerInfo[playerid][pDonateRank] == 2) { dra = "2"; }
		else if(PlayerInfo[playerid][pDonateRank] == 3) { dra = "3"; }
		else if(PlayerInfo[playerid][pDonateRank] == 4) { dra = "4"; }
		else if(PlayerInfo[playerid][pDonateRank] == 5) { dra = "5"; }
		else { dra = "Very Strong User"; }
		if(PlayerInfo[playerid][pDonateRank] > 0)
		{
			format(string2, sizeof(string2), "{FF0000}INFO:{FFFFFF}Vasiot akaunt ima Donator Rank %s", dra);
			SendClientMessage(playerid,COLOR_WHITE,string2);
		}
		SCMF(playerid, -1, "{e51616}_____________________________________________________________________________");
		SCMF(playerid, -1, "{e51616}Dobredojdovte gospodine na SharkGaming Macedonia v3.4.7");
		SCMF(playerid, -1, "{FFFFFF}Ime i Prezime: {e51616}%s",GetName(playerid));
		SCMF(playerid, -1, "{FFFFFF}Level: {e51616}%d | EXP: {FFFFFF}%d",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp]);
		SCMF(playerid, -1, "{FFFFFF}Godini: {e51616}%d",PlayerInfo[playerid][pAge]);
		SCMF(playerid, -1, "{e51616}_____________________________________________________________________________");
        SendClientMessage(playerid, -1,string2);



Re: Same message appears twice - Shinja - 25.08.2018

Delete the last line; it send the message again

Код:
SendClientMessage(playerid, -1,string2);



Re: Same message appears twice - Dimkata - 25.08.2018

Quote:
Originally Posted by Shinja
Посмотреть сообщение
Delete the last line; it send the message again

Код:
SendClientMessage(playerid, -1,string2);
Thank you )