#1

When I use /w(hisper) it goes e.g [WHISPER]Testbot: hi, but when someone else uses it it will still do [WHISPER]Testbot: theremessage, it wont load there name, why?

PHP код:
CMD:whisper(playeridparams[])
{
    new 
string[250];
    if (
sscanf(params"s[250]"string))return SendClientMessage(playeridCOLOR_YELLOW"[COMMAND] {FFFFFF}Usage: /w(hisper) [message]");
    new 
Float:x,Float:y,Float:z;
    
GetPlayerPos(playerid,x,y,z);
    new 
string2[250];
     new 
name[MAX_PLAYER_NAME];
    new 
id;
    
GetPlayerName(id,name,sizeof(name));
    
format(string2sizeof(string2), "{D526D9}[WHISPER] {FFFFFF}%s(%i): %s"nameplayeridstring);
    for(new 
0<= MAX_PLAYERSi++)
    {
        if(
IsPlayerInRangeOfPoint(i15.0xyz))
        {
        
SendClientMessage(iCOLOR_WHITEstring2);
        }
    }
    return 
1;

Reply


Messages In This Thread
Bug - by Godly - 09.07.2016, 09:46
Re: Bug - by Kaliber - 09.07.2016, 09:52
Re: Bug - by SyS - 09.07.2016, 09:52
Re: Bug - by Godly - 09.07.2016, 09:59
Re: Bug - by Stinged - 09.07.2016, 10:14

Forum Jump:


Users browsing this thread: 1 Guest(s)