SA-MP Forums Archive
IRC Error, in script - 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: IRC Error, in script (/showthread.php?tid=489777)



IRC Error, in script - CountryTrooper441 - 24.01.2014

Код:
C:\Users\Jeff\Desktop\samp2\samp\gamemodes\SF.pwn(911) : error 021: symbol already defined: "isNumeric"
C:\Users\Jeff\Desktop\samp2\samp\gamemodes\SF.pwn(5633) : error 017: undefined symbol "ReturnUser"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Can anyone help me? Like I said.. If you help me I will +rep you, Thanks!!


Re: IRC Error, in script - Scottas - 24.01.2014

You have defined isNumeric function twice, and you don't have ReturnUser function.


Re: IRC Error, in script - CountryTrooper441 - 24.01.2014

So, Where do I get the ReturnUser Function?


Re: IRC Error, in script - Shetch - 24.01.2014

Show us the code where you get the ReturnUser error.


Re: IRC Error, in script - CountryTrooper441 - 24.01.2014

Код:
IRCCMD:money(botid, channel[], user[], host[], params[])
{
    if (IRC_IsHalfop(botid, channel, user))
	{
	new giveid,msg1[100];
	if(isnull(params)) return IRC_GroupSay(gGroupID, channel,"3Usage: !money <PlayerName/PlayerID>");
    giveid = ReturnUser(params);
	if(!IsPlayerConnected(giveid))return IRC_GroupSay(gGroupID, channel,"4*** Error: Invalid player ID.");
	format(msg1,100,"10Money from %s (ID: %d): $%d",pNick(giveid),giveid,GetPlayerMoney(giveid));
	IRC_GroupSay(gGroupID,IRC_CHANNEL,msg1);
	}
	return 1;
}