[HELP] symbol already defined: "ReturnUser" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] symbol already defined: "ReturnUser" (
/showthread.php?tid=455262)
[HELP] symbol already defined: "ReturnUser" -
huynhxuanhieu - 01.08.2013
I Have This Error :
Код:
error 021: symbol already defined: "ReturnUser"
LINE :
Код:
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;
}
Help me please !
Re: [HELP] symbol already defined: "ReturnUser" -
Scenario - 01.08.2013
"symbol
already defined" I wonder what that could mean...
Search that error and you shall see!