Unban cmd help?
#3

Here is my OnPlayerCommandText

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(unban, 5, cmdtext);
    
    if(AccInfo[playerid][Jailed] == 1 && AccInfo[playerid][Level] < 1)
	return SendClientMessage(playerid,red,"ERROR: You cannot use commands in Jail!");

	new cmd[256];
	new string[128];
	new tmp[256];
	new idx;
	
	cmd = strtok(cmdtext, idx);
I get these errors:


Код:
C:\Users\Chris\Documents\Server\filterscripts\LuxAdmin.pwn(1762) : error 017: undefined symbol "CMDMessageToAdmins"
C:\Users\Chris\Documents\Gserv\filterscripts\LuxAdmin.pwn(1765) : error 017: undefined symbol "SaveToFile"
C:\Users\Chris\Documents\Gserv\filterscripts\LuxAdmin.pwn(1770) : warning 225: unreachable code
C:\Users\Chris\Documents\Gserv\filterscripts\LuxAdmin.pwn(1770) : warning 217: loose indentation
C:\Users\Chris\Documents\Gserv\filterscripts\LuxAdmin.pwn(1770) : error 029: invalid expression, assumed zero
C:\Users\Chris\Documents\Gserv\filterscripts\LuxAdmin.pwn(1770) : warning 215: expression has no effect
C:\Users\Chris\Documents\Gserv\filterscripts\LuxAdmin.pwn(1770) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Line 1762:
Код:
CMDMessageToAdmins(playerid,"UNBANNAME");
Line 1765:
Код:
SaveToFile("UnBanNameLog",string);
Line 1770:
Код:
} else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");
Reply


Messages In This Thread
Unban cmd help? - by Snipa - 08.11.2010, 23:41
Re: Unban cmd help? - by Ritchie999 - 09.11.2010, 00:08
Re: Unban cmd help? - by Snipa - 09.11.2010, 01:02
Re: Unban cmd help? - by Ritchie999 - 09.11.2010, 01:22
Re: Unban cmd help? - by Snipa - 09.11.2010, 02:08
Re: Unban cmd help? - by MrDeath537 - 09.11.2010, 04:32
Re: Unban cmd help? - by Ritchie999 - 09.11.2010, 21:25
Re: Unban cmd help? - by Snipa - 09.11.2010, 23:57
Re: Unban cmd help? - by Ritchie999 - 10.11.2010, 21:13

Forum Jump:


Users browsing this thread: 6 Guest(s)