Umm help please - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Umm help please (
/showthread.php?tid=145996)
Umm help please -
kujox32 - 05.05.2010
How do I fix this
Код:
error 017: undefined symbol "ReturnUser"
This is the line anyone know?
Код:
para1 = ReturnUser(tmp);
Re: Umm help please -
Backwardsman97 - 05.05.2010
ReturnUser is some kind of custom function. You must have never defined it.
Re: Umm help please -
kujox32 - 05.05.2010
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?
Re: Umm help please -
johnnyc - 05.05.2010
Quote:
Originally Posted by Baked-Banana
You must have never defined it.
|
Re: Umm help please -
rbN. - 05.05.2010
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?
Re: Umm help please -
Killa_ - 05.05.2010
Код:
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.