/w command error +REP
#1

Hi guys, I hope you can help me with this one.

I have added a /w command to my script but it doesn't work.

Here is the command:

Код:
 	if(strcmp(cmdtext,"/w",true)==0)
	{
	    if(strlen(cmdtext) <= 3)
		{
		    SendClientMessage(playerid, 0xFF0000FF,"USAGE: /w (msg)");
		    return 1;
	    }
	    new string[128];
	    new output[150];
		new pname[24];
		GetPlayerName(playerid, pname, 24);
	    strmid(output,cmdtext,2,strlen(cmdtext));
	    format(string, sizeof(string), "(WHISPER): %s [%d] %s",pname,playerid,output);
	    printf("%s", string);
	    for(new i=0;i<MAX_PLAYERS;i++)
		{
		    if(IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid,i) < 20)
			{
			   format(string, sizeof(string), "(WHISPER): %s [%d] %s",pname,playerid,output);
			   SendClientMessage(i, 0xFFFF00FF,string);
		    }
	    }
	    return 1;
    }

And I get this error:

Код:
C:\Documents and Settings\Danny\My Documents\GTA SA Server\gamemodes\cnr.pwn(1491) : error 017: undefined symbol "GetDistanceBetweenPlayers"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Can you please try and help me. Please try to explain properly
Reply


Messages In This Thread
/w command error +REP - by Goldino - 20.11.2012, 16:33
Re: /w command error - by iggy1 - 20.11.2012, 16:34
Re: /w command error - by Goldino - 20.11.2012, 16:36
Re: /w command error - by iggy1 - 20.11.2012, 16:37
Re: /w command error +REP - by Mustafa6155 - 20.11.2012, 16:50
Re: /w command error +REP - by Goldino - 20.11.2012, 16:53
AW: /w command error +REP - by Skimmer - 20.11.2012, 16:59
Re: /w command error +REP - by Goldino - 20.11.2012, 17:01
Re: /w command error +REP - by James Bob - 20.11.2012, 18:08
AW: /w command error +REP - by Skimmer - 20.11.2012, 18:23

Forum Jump:


Users browsing this thread: 1 Guest(s)