Proxdetector
#1

Hello Guys im having some troubles with proxdetector. Here is the code:

pawn Код:
public OnPlayerText(playerid, text[])
{
    format(string, sizeof(string), "%s says: %s", GetPlayerName(playerid), text);
    ProxDetector(20.0, playerid, string,COLOR_WHITE);
    return 1;
}
here is proxdetector

pawn Код:
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
The errors im getting is:
pawn Код:
: warning 219: local variable "string" shadows a variable at a preceding level
: error 010: invalid function or declaration
: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition
: error 004: function "ProxDetector" is not implemented
Anyone can help?
Reply
#2

Quote:
Originally Posted by Anthonyx3'
Посмотреть сообщение
Hello Guys im having some troubles with proxdetector. Here is the code:

pawn Код:
public OnPlayerText(playerid, text[])
{
    format(string, sizeof(string), "%s says: %s", GetPlayerName(playerid), text);
    ProxDetector(20.0, playerid, string,COLOR_WHITE);
    return 1;
}
here is proxdetector

pawn Код:
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
The errors im getting is:
pawn Код:
: warning 219: local variable "string" shadows a variable at a preceding level
: error 010: invalid function or declaration
: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition
: error 004: function "ProxDetector" is not implemented
Anyone can help?
pawn Код:
public OnPlayerText(playerid, text[])
{
    format(string, sizeof(string), "%s says: %s", GetPlayerName(playerid), text);
    ProxDetector(20.0,string,COLOR_WHITE);
    return 1;
}
This forum requires that you wait 120 seconds between posts. Please try again in 11 seconds.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)