SA-MP Forums Archive
How...??? - 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: How...??? (/showthread.php?tid=523623)



How...??? - TheRaGeLord - 03.07.2014

In The Code Given Below return is 0 then Why When I Typed Something In Server It Appears Like This:

TheRaGeLord: TheRaGeLord[0]: Hi

Код:
if(PlayerInfo[playerid][Level] >= 0) {
    new string[256]; GetPlayerName(playerid,string,sizeof(string));
    format(string,sizeof(string),"{FF0000}%s[%d]:{FFFFFF} %s",string ,playerid, text);
    SendPlayerMessageToAll(playerid,string);
    return 0;// return 0 !!!! otherwise you get a double chat message
	}



Re: How...??? - Stinged - 03.07.2014

You're sending a PlayerMessage not a ClientMessage.


Re: How...??? - TheRaGeLord - 03.07.2014

Ok Ty....Now Its Working Properly