SA-MP Forums Archive
Not Work ! - 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: Not Work ! (/showthread.php?tid=622509)



Not Work ! - TYDS - 23.11.2016


Код:
if(Aduty[playerid] == 1)
	{
		new string[180];
		format(string, sizeof(string),"{FF00FF}[Admin]{FFFFFF} %s:%s",GetPlayerNameEx(playerid), string);
		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
	}
i put in onplayertext the problem is in the picture some one can fix ?


Re: Not Work ! - Konstantinos - 23.11.2016

https://sampwiki.blast.hk/wiki/OnPlayerText

Returning 0 at the end of the callback will prevent the default chat from showing.


Re: Not Work ! - TYDS - 23.11.2016

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/OnPlayerText

Returning 0 at the end of the callback will prevent the default chat from showing.
now have this error it's not show character




Re: Not Work ! - Konstantinos - 23.11.2016

You didn't mention it, you told us to look at the picture but that was another problem anyway.

Use text instead string after GetPlayerNameEx function (in format).


Re: Not Work ! - TYDS - 23.11.2016

any one


Re: Not Work ! - Yaa - 23.11.2016

PHP код:
if(Aduty[playerid] == 1)
    {
        
format(stringsizeof(string),"{FF00FF}[Admin]{FFFFFF} %s:%s"GetPlayerNameEx(playerid), text);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    } 
By @Konstantinos