Umm help please
#1

How do I fix this
Код:
error 017: undefined symbol "ReturnUser"
This is the line anyone know?
Код:
	para1 = ReturnUser(tmp);
Reply
#2

ReturnUser is some kind of custom function. You must have never defined it.
Reply
#3

Quote:
Originally Posted by Baked-Banana
ReturnUser is some kind of custom function. You must have never defined it.
Ya but how do I define it?
Reply
#4

Quote:
Originally Posted by Baked-Banana
You must have never defined it.
Reply
#5

Quote:
Originally Posted by Johnny <~~
Quote:
Originally Posted by Baked-Banana
You must have never defined it.
NO REALLY? I COULDN'T READ BAKED-BANANA'S TEXT! OH NO! THANKS FOR HELPING >_>

=)

Search on ****** :P?
Reply
#6

Код:
ReturnUser(text[])
{
	new pos = 0;
	while (text[pos] < 0x21)
	{
		if (text[pos] == 0) return INVALID_PLAYER_ID;
		pos++;
	}
	new userid = INVALID_PLAYER_ID;
	if (IsNumeric(text[pos]))
	{
		userid = strval(text[pos]);
		if (userid >=0 && userid < MAX_PLAYERS)
		{
			if(!IsPlayerConnected(userid))
			{
				userid = INVALID_PLAYER_ID;
			}
			else
			{
				return userid;
			}
		}
	}
	new giveid;
	new GetPlayer[20];
	for (giveid=0; giveid<=MAX_PLAYERS; giveid++)
	{
	    if (IsPlayerConnected(giveid))
	    {
			GetPlayerName(giveid,GetPlayer,16);
			new space = (strfind(GetPlayer, text));
			if (space != -1)
			{
				return giveid;
			}
	    }
    }
    return userid;
}
Put this at the end of your script, out of any callback.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)