01.02.2013, 00:16
I'm not sure what the deal is. I'm trying to compile our script for 0.3x and only ONE error comes up:
Now the line that it's talking about:
I didn't have this issue in 0.3e. No errors. No warnings. Script compiles perfectly
pawn Код:
../include/gl_common.inc(194) : error 021: symbol already defined: "ReturnUser"
pawn Код:
#define RETURN_USER_FAILURE -1
#define RETURN_USER_MULTIPLE -2
stock ReturnUser(text[])
{//Line 194 is right here
new pos = 0;
new userid = RETURN_USER_FAILURE;
while(text[pos] < 0x21) { // Strip out leading spaces
if(text[pos] == 0) return RETURN_USER_FAILURE; // No passed text
pos++;
}
if(isNumeric(text[pos])) { // Check whole passed string
userid = strval(text[pos]);
if(userid >=0 && userid < MAX_PLAYERS)
{
if(IsPlayerConnected(userid)) return userid;
return RETURN_USER_FAILURE;
}
}