SendClientMessage.
#5

Quote:
Originally Posted by aymane123
Посмотреть сообщение
Hmm i need an explain for this please and thanks.
Quote:
Originally Posted by Eoussama
Посмотреть сообщение
EDIT: sorry for that, didn't reload the page

Try this:
PHP код:
//Method 1:
CMD:score(playerid

    new 
string[23];
    
format(string,sizeof(string),"You Score Is : %d.",GetPlayerScore(playerid)); //The '%d' cpoesifire will be replaces by whoever the GetPlayerScore Function returns, which obviousely going to be the player's score,
    
SendClientMessage(playerid,COLOR_GREEN,string); //This will display the message above in green to the player who typed the commands
    
return 1;

//Method 2:
CMD:score(playerid

    new 
string[23], score GetPlayerScore(playerid);
    
format(string,sizeof(string),"You Score Is : %d.",score); //The '%d' cpoesifire will be replaces by whoever the GetPlayerScore Function returns, which obviousely going to be the player's score,
    
SendClientMessage(playerid,COLOR_GREEN,string); //This will display the message above in green to the player who typed the commands
    
return 1;

Reply


Messages In This Thread
SendClientMessage. - by aymane123 - 24.01.2017, 16:58
Re: SendClientMessage. - by saffierr - 24.01.2017, 17:01
Re: SendClientMessage. - by Eoussama - 24.01.2017, 17:01
Re: SendClientMessage. - by aymane123 - 24.01.2017, 17:02
Re: SendClientMessage. - by Eoussama - 24.01.2017, 17:04
Re: SendClientMessage. - by saffierr - 24.01.2017, 17:05
Re: SendClientMessage. - by aymane123 - 24.01.2017, 17:07

Forum Jump:


Users browsing this thread: 1 Guest(s)