IRC Error, in script
#1

Код:
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!!
Reply
#2

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

So, Where do I get the ReturnUser Function?
Reply
#4

Show us the code where you get the ReturnUser error.
Reply
#5

Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)