error 021: symbol already defined: "ReturnUser"
#1

i have delete it but my command it erorr
HTML Code:
C:\Users\vpns13\Desktop\[update] VIP\gamemodes\vnpla_LV.pwn(117123) : error 021: symbol already defined: "ReturnUser"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
my line
HTML Code:
ReturnUser(text[]) {

	new
		strPos,
		returnID = 0,
		bool: isnum = true;

	while(text[strPos]) {
		if(isnum) {
			if ('0' <= text[strPos] <= '9') returnID = (returnID * 10) + (text[strPos] - '0');
			else isnum = false;
		}
		strPos++;
	}
	if (isnum) {
		if(IsPlayerConnected(returnID)) return returnID;
	}
	else {

		new
			sz_playerName[MAX_PLAYER_NAME];

		foreach(new i: Player) {
			GetPlayerName(i, sz_playerName, MAX_PLAYER_NAME);
			if(!strcmp(sz_playerName, text, true, strPos)) return i;
		}
	}
	return INVALID_PLAYER_ID;
}
Reply
#2

don't tell me you have this
pawn Code:
#define ReturnUser
or this
pawn Code:
new ReturnUser
Reply
#3

You probably have the function twice. Remove the one from line 117123.
Reply
#4

remove one "ReturnUser"
Reply
#5

How to remote it i can't
Reply
#6

Quote:
Originally Posted by biduaxe
View Post
How to remote it i can't
Go to line 117123 and select this part (with the mouse - hold left click and move it down):
pawn Code:
ReturnUser(text[]) {

    new
        strPos,
        returnID = 0,
        bool: isnum = true;

    while(text[strPos]) {
        if(isnum) {
            if ('0' <= text[strPos] <= '9') returnID = (returnID * 10) + (text[strPos] - '0');
            else isnum = false;
        }
        strPos++;
    }
    if (isnum) {
        if(IsPlayerConnected(returnID)) return returnID;
    }
    else {

        new
            sz_playerName[MAX_PLAYER_NAME];

        foreach(new i: Player) {
            GetPlayerName(i, sz_playerName, MAX_PLAYER_NAME);
            if(!strcmp(sz_playerName, text, true, strPos)) return i;
        }
    }
    return INVALID_PLAYER_ID;
}
and press Backspace or Delete key.
Reply
#7

But my command like/b , /enter , /exit are erorr
Reply
#8

Hey are you vietnamese?...
Reply
#9

Yes i am from vietnam sr my bad englist
Reply
#10

Please help me
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)