I need help to complete the code, please.
#2

you can do it by this
PHP код:
stock SendPlayerText(playeridmessagecolor)
{
    new 
string[128];
    case 
EROR_TEXTformat(stringsizeof(string), "Command incorrect.");
    case 
TEXT_INFOformat(stringsizeof(string), "This is Test.");
    case 
TEXT_GUNformat(stringsizeof(string), "This is Gun Test.");
    
SendClientMessage(playeridcolormessage);
    return 
1;

you can use it like this
SendPlayerText(playerid, EROR_TEXT, COLOR_BLUE);

or use this code

PHP код:
new  EROR_TEXTTEXT_INFOTEXT_GUN;
stock SendPlayerText(playeridmessagecolor)
{
    if(
message == EROR_TEXT)
    {
     
SendClientMessage(playeridcolor"Command incorrect.");
    }
    if(
message == TEXT_INFO)
    {
     
SendClientMessage(playeridcolor"This is Test.");
    }
    if(
message == TEXT_GUN)
    {
     
SendClientMessage(playeridcolor"This is Gun Test.");
    }
    return 
1;
}
//SendPlayerText(playerid, EROR_TEXT, COLOR_BLUE); 
Reply


Messages In This Thread
I need help to complete the code, please. - by RichKiez - 26.04.2018, 16:23
Re: I need help to complete the code, please. - by CrystalGamer - 26.04.2018, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)