Posts: 632
Threads: 24
Joined: Aug 2011
Quote:
Originally Posted by GGW
ok i change it to this
Код:
if (strcmp("/w", cmdtext, true, 10) == 0)
{
new string[250];
if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE:/whisper [message]");
SetPlayerChatBubble(playerid,string,COLOR_YELLOW,35,10000);
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
new pName[24];
GetPlayerName(playerid,pName,sizeof(pName));
new string2[250];
format(string2,sizeof(string2),"%s(%d):%s",pName,playerid,string);
for(new i=0;i<=MAX_PLAYERS;i++)
{
if(IsPlayerInRangeOfPoint(i,15.0,x,y,z)) return SendClientMessage(playerid,COLOR_YELLOW,string2);
}
return 1;
}
to make it work with me and it don't have any errors but when i try it it says what to do to make it work ?
|
Remove the #include zcmd, because ZCMD is not compatible with strcmp.