24.05.2009, 13:51
I just get two errors when i try to add /b.
Here is the script.
And at the bottom of the script:
The errors:
error 017: undefined symbol "GetDistanceBetweenPlayers"
error 017: undefined symbol "i"
Here is the script.
Код:
if(!strcmp(cmdtext, "/b", true))
{
if(GetDistanceBetweenPlayers(playerid, i) <= 20)
{
if(cmdtext[2] == 32 || cmdtext[3] != EOS)
{
new str[128];
format(str, 128, "%s: %s", Name(playerid), cmdtext[3]);
SendClientMessage(i, COLOR_WHITE, str);
}
}
}
return true;
}
Код:
Name(i)
{
new n[24];
GetPlayerName(i, n, 24);
return n;
}
error 017: undefined symbol "GetDistanceBetweenPlayers"
error 017: undefined symbol "i"


